Goerli Testnet

Contract

0x6C5a06AE6b773457480c12F12C2fB22627507A3A
Transaction Hash
Method
Block
From
To
Value
0x60a0604081921052022-12-24 12:03:48277 days 19 hrs ago1671883428IN
 Contract Creation
0 ETH0.000162970.03150001

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x263F8A...c16b3593
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
ERC721StorageLayer

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : ERC721StorageLayer.sol
// SPDX-License-Identifier: Unlicense
// Creator: 0xYeety/YEETY.eth - CTO, Virtue Labs

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/*********************************************************************************************************************/
/*       ___           ___                       ___       ___                 ___           ___           ___       */
/*      /\  \         /\__\          ___        /\__\     /\  \               /\  \         /\__\         /\  \      */
/*     /::\  \       /:/  /         /\  \      /:/  /    /::\  \              \:\  \       /:/  /        /::\  \     */
/*    /:/\:\  \     /:/  /          \:\  \    /:/  /    /:/\:\  \              \:\  \     /:/__/        /:/\:\  \    */
/*   /::\~\:\__\   /:/  /  ___      /::\__\  /:/  /    /:/  \:\__\             /::\  \   /::\  \ ___   /::\~\:\  \   */
/*  /:/\:\ \:|__| /:/__/  /\__\  __/:/\/__/ /:/__/    /:/__/ \:|__|           /:/\:\__\ /:/\:\  /\__\ /:/\:\ \:\__\  */
/*  \:\~\:\/:/  / \:\  \ /:/  / /\/:/  /    \:\  \    \:\  \ /:/  /          /:/  \/__/ \/__\:\/:/  / \:\~\:\ \/__/  */
/*   \:\ \::/  /   \:\  /:/  /  \::/__/      \:\  \    \:\  /:/  /          /:/  /           \::/  /   \:\ \:\__\    */
/*    \:\/:/  /     \:\/:/  /    \:\__\       \:\  \    \:\/:/  /           \/__/            /:/  /     \:\ \/__/    */
/*     \::/__/       \::/  /      \/__/        \:\__\    \::/__/                            /:/  /       \:\__\      */
/*      ~~            \/__/                     \/__/     ~~                                \/__/         \/__/      */
/*                                                                                                                   */
/*         ___           ___       ___           ___           ___           ___           ___           ___         */
/*        /\  \         /\__\     /\  \         /\  \         /\  \         /\  \         /\  \         /\__\        */
/*       /::\  \       /:/  /    /::\  \        \:\  \       /::\  \       /::\  \       /::\  \       /::|  |       */
/*      /:/\:\  \     /:/  /    /:/\:\  \        \:\  \     /:/\:\  \     /:/\:\  \     /:/\:\  \     /:|:|  |       */
/*     /::\~\:\  \   /:/  /    /::\~\:\  \       /::\  \   /::\~\:\  \   /:/  \:\  \   /::\~\:\  \   /:/|:|__|__     */
/*    /:/\:\ \:\__\ /:/__/    /:/\:\ \:\__\     /:/\:\__\ /:/\:\ \:\__\ /:/__/ \:\__\ /:/\:\ \:\__\ /:/ |::::\__\    */
/*    \/__\:\/:/  / \:\  \    \/__\:\/:/  /    /:/  \/__/ \/__\:\ \/__/ \:\  \ /:/  / \/_|::\/:/  / \/__/~~/:/  /    */
/*         \::/  /   \:\  \        \::/  /    /:/  /           \:\__\    \:\  /:/  /     |:|::/  /        /:/  /     */
/*          \/__/     \:\  \       /:/  /     \/__/             \/__/     \:\/:/  /      |:|\/__/        /:/  /      */
/*                     \:\__\     /:/  /                                   \::/  /       |:|  |         /:/  /       */
/*                      \/__/     \/__/                                     \/__/         \|__|         \/__/        */
/*********************************************************************************************************************/

contract ERC721StorageLayer is Ownable {
    using Address for address;
    using Strings for uint256;

    //////////

    mapping(uint256 => address) private registeredContracts;
    mapping(address => uint256) private contractNumberings;
    mapping(address => bool) private isRegistered;
    uint256 numRegistered;

    modifier onlyRegistered() {
        _isRegistered();
        _;
    }
    function _isRegistered() internal view virtual {
        require(isRegistered[msg.sender], "r");
    }

    mapping(address => string) private _contractNames;
    mapping(address => string) private _contractSymbols;
    bool public canSetNameAndSymbol = true;

    mapping(address => string) private _contractDescriptions;
    mapping(address => string) private _contractImages;

    //////////

    address public mintingContract;

    modifier onlyMintingContract() {
        _isMintingContract();
        _;
    }
    function _isMintingContract() internal view virtual {
        require(msg.sender == mintingContract, "m");
    }

    //////////

    uint256 currentIndex;
    mapping(uint256 => address) _ownerships;
    mapping(address => uint256) _balances;

    address public immutable burnAddress = 0x000000000000000000000000000000000000dEaD;
    mapping(address => uint256) private _burnCounts;

    //////////

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => mapping(address => bool))) private _operatorApprovals;

    ////////////////////

    function registerTopLevel(
        string memory name_,
        string memory symbol_,
        string memory description_,
        string memory image_
    ) public {
        require(numRegistered < 5, "mr");
        require(tx.origin == owner(), "a");

        registeredContracts[numRegistered] = msg.sender;
        contractNumberings[msg.sender] = numRegistered;

        _contractNames[msg.sender] = name_;
        _contractSymbols[msg.sender] = symbol_;
        _contractDescriptions[msg.sender] = description_;
        _contractImages[msg.sender] = image_;

        isRegistered[msg.sender] = true;
        numRegistered++;
    }

    function registerMintingContract() public {
        require(tx.origin == owner(), "a");
        mintingContract = msg.sender;
    }

    //////////

    function storage_totalSupply(address collection) public view returns (uint256) {
        require(isRegistered[collection], "r");
        return (currentIndex/5) - _burnCounts[collection];
    }

    function storage_tokenByIndex(
        address collection,
        uint256 index
    ) public view returns (uint256) {
        require(isRegistered[collection], "r");
        require(index < (currentIndex/5), "g");
        require(storage_ownerOf(collection, index) != burnAddress, "b");
        return index;
    }

    function storage_tokenOfOwnerByIndex(
        address collection,
        address owner,
        uint256 index
    ) public view returns (uint256) {
        require(isRegistered[collection], "r");
        require(index < storage_balanceOf(collection, owner), "b");
        uint256 numTokenIds = currentIndex;
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        uint256 j;
        uint256 offset = contractNumberings[collection];
        for (uint256 i = 0; i < numTokenIds/5; i++) {
            j = i*5 + offset;
            address ownership = _ownerships[j];
            if (ownership != address(0)) {
                currOwnershipAddr = ownership;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("u");
    }

    function storage_tokenOfOwnerByIndexStepped(
        address collection,
        address owner,
        uint256 index,
        uint256 lastToken,
        uint256 lastIndex
    ) public view returns (uint256) {
        require(isRegistered[collection], "r");
        require(index < storage_balanceOf(collection, owner), "b");
        uint256 numTokenIds = currentIndex;
        uint256 tokenIdsIdx = ((lastIndex == 0) ? 0 : (lastIndex + 1));
        address currOwnershipAddr = address(0);
        uint256 j;
        uint256 offset = contractNumberings[collection];
        for (uint256 i = ((lastToken == 0) ? 0 : (lastToken + 1)); i < numTokenIds/5; i++) {
            j = i*5 + offset;
            address ownership = _ownerships[j];
            if (ownership != address(0)) {
                currOwnershipAddr = ownership;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("u");
    }

    function storage_balanceOf(
        address collection,
        address owner
    ) public view returns (uint256) {
        require(isRegistered[collection], "r");
        require(owner != address(0) || owner != burnAddress, "0/burn");
        return (_balances[owner] >> (14*contractNumberings[collection]))%(1<<14);
    }

    function storage_ownerOf(
        address collection,
        uint256 tokenId
    ) public view returns (address) {
        require(isRegistered[collection], "r");
        require(tokenId < currentIndex/5, "t");

        uint256 offset = contractNumberings[collection];
        for (uint256 i = tokenId*5 + offset; i >= 0; i--) {
            address ownership = _ownerships[i];
            if (ownership != address(0)) {
                return ownership;
            }
        }

        revert("o");
    }

    function storage_name(address collection) public view returns (string memory) {
        require(isRegistered[collection], "r");
        return _contractNames[collection];
    }

    function storage_setName(address collection, string memory newName) public onlyOwner {
        require(isRegistered[collection] && canSetNameAndSymbol, "r/cs");
        _contractNames[collection] = newName;
    }

    function storage_symbol(address collection) public view returns (string memory) {
        require(isRegistered[collection] && canSetNameAndSymbol, "r/cs");
        return _contractSymbols[collection];
    }

    function storage_setSymbol(address collection, string memory newSymbol) public onlyOwner {
        require(isRegistered[collection], "r");
        _contractSymbols[collection] = newSymbol;
    }

    function flipCanSetNameAndSymbol() public onlyOwner {
        require(canSetNameAndSymbol, "cs");
        canSetNameAndSymbol = false;
    }

    function storage_setDescription(
        address collection,
        string memory newDescription
    ) public onlyOwner {
        require(isRegistered[collection], "r");
        _contractDescriptions[collection] = newDescription;
    }

    function storage_setImage(
        address collection,
        string memory newImage
    ) public onlyOwner {
        require(isRegistered[collection], "r");
        _contractImages[collection] = newImage;
    }

    function storage_approve(address msgSender, address to, uint256 tokenId) public onlyRegistered {
        address owner = ERC721StorageLayer.storage_ownerOf(msg.sender, tokenId);
        require(to != owner, "o");

        require(
            msgSender == owner || storage_isApprovedForAll(msg.sender, owner, msgSender),
            "a"
        );

        _approve(to, tokenId*5 + contractNumberings[msg.sender], owner);
    }

    function storage_getApproved(
        address collection,
        uint256 tokenId
    ) public view returns (address) {
        require(isRegistered[collection], "r");

        uint256 mappedTokenId = tokenId*5 + contractNumberings[collection];
        require(_exists(mappedTokenId, tokenId), "a");

        return _tokenApprovals[mappedTokenId];
    }

    function storage_setApprovalForAll(
        address msgSender,
        address operator,
        bool approved
    ) public onlyRegistered {
        require(operator != msgSender, "a");

        _operatorApprovals[msg.sender][msgSender][operator] = approved;
        ERC721TopLevelProto(msg.sender).emitApprovalForAll(msgSender, operator, approved);
    }

    function storage_globalSetApprovalForAll(
        address operator,
        bool approved
    ) public {
        require(operator != msg.sender, "a");

        for (uint256 i = 0; i < 5; i++) {
            address topLevelContract = registeredContracts[i];
            require(!(ERC721TopLevelProto(topLevelContract).operatorRestrictions(operator)), "r");
            _operatorApprovals[topLevelContract][msg.sender][operator] = approved;
            ERC721TopLevelProto(topLevelContract).emitApprovalForAll(msg.sender, operator, approved);
        }
    }

    function storage_isApprovedForAll(
        address collection,
        address owner,
        address operator
    ) public view returns (bool) {
        require(isRegistered[collection], "r");
        return _operatorApprovals[collection][owner][operator];
    }

    function storage_transferFrom(
        address msgSender,
        address from,
        address to,
        uint256 tokenId
    ) public onlyRegistered {
        _transfer(msgSender, from, to, tokenId*5 + contractNumberings[msg.sender]);
        ERC721TopLevelProto(msg.sender).emitTransfer(from, to, tokenId);
    }

    function storage_safeTransferFrom(
        address msgSender,
        address from,
        address to,
        uint256 tokenId
    ) public onlyRegistered {
        storage_safeTransferFrom(msgSender, from, to, tokenId, "");
    }

    function storage_safeTransferFrom(
        address msgSender,
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public onlyRegistered {
        _transfer(msgSender, from, to, tokenId*5 + contractNumberings[msg.sender]);
        ERC721TopLevelProto(msg.sender).emitTransfer(from, to, tokenId);
        require(
            _checkOnERC721Received(msgSender, from, to, tokenId, _data),
            "z"
        );
    }

    function storage_burnToken(address msgSender, uint256 tokenId) public onlyRegistered {
        _transfer(
            msgSender,
            storage_ownerOf(msg.sender, tokenId),
            burnAddress,
            tokenId*5 + contractNumberings[msg.sender]
        );
        _burnCounts[msg.sender] += 1;
        ERC721TopLevelProto(msg.sender).emitTransfer(msgSender, burnAddress, tokenId);
    }

    function storage_exists(
        address collection,
        uint256 tokenId
    ) public view returns (bool) {
        require(isRegistered[collection], "r");
        return _exists(tokenId*5 + contractNumberings[collection], tokenId);
    }

    function _exists(uint256 mappedTokenId, uint256 tokenId) private view returns (bool) {
        return (mappedTokenId < currentIndex && _ownerships[tokenId] != burnAddress);
    }

    function storage_safeMint(
        address msgSender,
        address to,
        uint256 quantity
    ) public onlyMintingContract {
        storage_safeMint(msgSender, to, quantity, "");
    }

    function storage_safeMint(
        address msgSender,
        address to,
        uint256 quantity,
        bytes memory _data
    ) public onlyMintingContract {
        storage_mint(to, quantity);
        require(_checkOnERC721Received(msgSender, address(0), to, (currentIndex/5) - 1, _data), "z");
    }

    function storage_mint(address to, uint256 quantity) private {
        uint256 startTokenId = currentIndex/5;
        require(to != address(0), "0");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(currentIndex, startTokenId), "a");

        uint256 balanceQtyAdd = 0;
        for (uint256 i = 0; i < 5; i++) {
            balanceQtyAdd += (quantity << (i*14));
        }
        _balances[to] = _balances[to] + balanceQtyAdd;
        _ownerships[currentIndex] = to;

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            for (uint256 j = 0; j < 5; j++) {
                ERC721TopLevelProto(registeredContracts[j]).emitTransfer(address(0), to, updatedIndex);
            }
            updatedIndex++;
        }

        currentIndex = updatedIndex*5;
    }

    function storage_contractURI(address collection) public view virtual returns (string memory) {
        require(isRegistered[collection], "r");
        return string(
            abi.encodePacked(
                "data:application/json;utf8,{\"name\":\"", storage_name(collection), "\",",
                "\"description\":\"", _contractDescriptions[collection], "\",",
                "\"image\":\"", _contractImages[collection], "\",",
                "\"external_link\":\"https://crudeborne.wtf\",",
                "\"seller_fee_basis_points\":500,\"fee_recipient\":\"",
                uint256(uint160(mintingContract)).toHexString(), "\"}"
            )
        );
    }

    //////////

    function _transfer(
        address msgSender,
        address from,
        address to,
        uint256 tokenId
    ) private {
        uint256 collectionTokenId = tokenId/5;
        address prevOwnership = storage_ownerOf(msg.sender, collectionTokenId);

        bool isApprovedOrOwner = (msgSender == prevOwnership ||
        storage_getApproved(msg.sender, collectionTokenId) == msgSender ||
        storage_isApprovedForAll(msg.sender, prevOwnership, msgSender));

        require(isApprovedOrOwner && prevOwnership == from, "a");
        require(prevOwnership == from, "o");
        require(to != address(0), "0");

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership);

        _balances[from] -= (1 << (contractNumberings[msg.sender]*14));
        _balances[to] += (1 << (contractNumberings[msg.sender]*14));
        _ownerships[tokenId] = to;

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId] == address(0)) {
            if (_exists(nextTokenId, nextTokenId/5)) {
                _ownerships[nextTokenId] = prevOwnership;
            }
        }
    }

    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        ERC721TopLevelProto(msg.sender).emitApproval(owner, to, tokenId/5);
    }

    function _checkOnERC721Received(
        address msgSender,
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(msgSender, from, tokenId, _data) returns (bytes4 retVal) {
                return retVal == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("z");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    //////////

    receive() external payable {
        (bool success, ) = payable(mintingContract).call{value: msg.value}("");
        require(success, "F");
    }

    function withdrawTokens(address tokenAddress) external onlyOwner {
        IERC20(tokenAddress).transfer(msg.sender, IERC20(tokenAddress).balanceOf(address(this)));
    }
}

////////////////////

abstract contract ERC721TopLevelProto {
    mapping(address => bool) public operatorRestrictions;
    function emitTransfer(address from, address to, uint256 tokenId) public virtual;
    function emitApproval(address owner, address approved, uint256 tokenId) public virtual;
    function emitApprovalForAll(address owner, address operator, bool approved) public virtual;
}

////////////////////////////////////////

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

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

File 5 of 7 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 7 : 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;
    }
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canSetNameAndSymbol","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipCanSetNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registerMintingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"description_","type":"string"},{"internalType":"string","name":"image_","type":"string"}],"name":"registerTopLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"storage_balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"storage_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"storage_globalSetApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"storage_isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"storage_name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"storage_safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"storage_safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"storage_safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"storage_setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"string","name":"newDescription","type":"string"}],"name":"storage_setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"string","name":"newImage","type":"string"}],"name":"storage_setImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"string","name":"newName","type":"string"}],"name":"storage_setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"string","name":"newSymbol","type":"string"}],"name":"storage_setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"storage_symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"storage_tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"storage_tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"lastToken","type":"uint256"},{"internalType":"uint256","name":"lastIndex","type":"uint256"}],"name":"storage_tokenOfOwnerByIndexStepped","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"storage_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"storage_transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106102085760003560e01c80638da5cb5b11610118578063bac5ccc3116100a0578063e03313741161006f578063e033137414610871578063e371236814610888578063e4999080146108b1578063f2fde38b146108ee578063fea6eb9e14610917576102de565b8063bac5ccc3146107a3578063c240d920146107e0578063cfcc7e7a14610809578063d2f6f67d14610846576102de565b8063a6015db4116100e7578063a6015db4146106c0578063a9d2f455146106e9578063acb608b314610726578063b2238c9d1461073d578063b4069dc814610766576102de565b80638da5cb5b146105f257806391bd54f51461061d578063962bf1f91461065a578063a1601ad314610697576102de565b80632d53a1221161019b578063622574671161016a57806362257467146105215780636bcfc62a1461054a57806370d5ae0514610587578063715018a6146105b25780637d706301146105c9576102de565b80632d53a1221461047b578063356bfa88146104a45780633dba0ac4146104cd57806349df728c146104f8576102de565b80631bd92142116101d75780631bd921421461039b5780631ce102c6146103c4578063204d849a1461040157806321b245831461043e576102de565b806301b03a72146102e35780630d060ae0146103205780631168132c1461034957806312f20cb514610372576102de565b366102de576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161025590614252565b60006040518083038185875af1925050503d8060008114610292576040519150601f19603f3d011682016040523d82523d6000602084013e610297565b606091505b50509050806102db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d2906142c4565b60405180910390fd5b50005b600080fd5b3480156102ef57600080fd5b5061030a6004803603810190610305919061438c565b610940565b6040516103179190614416565b60405180910390f35b34801561032c57600080fd5b5061034760048036038101906103429190614577565b610bf8565b005b34801561035557600080fd5b50610370600480360381019061036b919061460b565b610ce4565b005b34801561037e57600080fd5b506103996004803603810190610394919061465e565b610ea0565b005b3480156103a757600080fd5b506103c260048036038101906103bd91906146c5565b610eca565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190614718565b610ef2565b6040516103f891906147bc565b60405180910390f35b34801561040d57600080fd5b50610428600480360381019061042391906147de565b611067565b6040516104359190614416565b60405180910390f35b34801561044a57600080fd5b5061046560048036038101906104609190614718565b61125f565b60405161047291906147bc565b60405180910390f35b34801561048757600080fd5b506104a2600480360381019061049d91906146c5565b6113bc565b005b3480156104b057600080fd5b506104cb60048036038101906104c69190614577565b611528565b005b3480156104d957600080fd5b506104e2611614565b6040516104ef919061482d565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190614718565b611627565b005b34801561052d57600080fd5b506105486004803603810190610543919061465e565b611748565b005b34801561055657600080fd5b50610571600480360381019061056c9190614848565b611827565b60405161057e919061482d565b60405180910390f35b34801561059357600080fd5b5061059c61191d565b6040516105a99190614897565b60405180910390f35b3480156105be57600080fd5b506105c7611941565b005b3480156105d557600080fd5b506105f060048036038101906105eb9190614953565b611955565b005b3480156105fe57600080fd5b50610607611a81565b6040516106149190614897565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f9190614848565b611aaa565b6040516106519190614416565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c91906146c5565b611c29565b60405161068e9190614416565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b991906149ea565b611ea3565b005b3480156106cc57600080fd5b506106e760048036038101906106e29190614577565b6121bd565b005b3480156106f557600080fd5b50610710600480360381019061070b9190614ac1565b6122c1565b60405161071d919061482d565b60405180910390f35b34801561073257600080fd5b5061073b61241f565b005b34801561074957600080fd5b50610764600480360381019061075f9190614b14565b6124d7565b005b34801561077257600080fd5b5061078d60048036038101906107889190614718565b612556565b60405161079a91906147bc565b60405180910390f35b3480156107af57600080fd5b506107ca60048036038101906107c59190614718565b6126d5565b6040516107d79190614416565b60405180910390f35b3480156107ec57600080fd5b5061080760048036038101906108029190614577565b6127c3565b005b34801561081557600080fd5b50610830600480360381019061082b9190614848565b6128af565b60405161083d9190614897565b60405180910390f35b34801561085257600080fd5b5061085b612ac3565b6040516108689190614897565b60405180910390f35b34801561087d57600080fd5b50610886612ae9565b005b34801561089457600080fd5b506108af60048036038101906108aa9190614b97565b612b5d565b005b3480156108bd57600080fd5b506108d860048036038101906108d39190614848565b612e32565b6040516108e59190614897565b60405180910390f35b3480156108fa57600080fd5b5061091560048036038101906109109190614718565b612fa1565b005b34801561092357600080fd5b5061093e60048036038101906109399190614848565b613025565b005b6000600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c590614c23565b60405180910390fd5b6109d88686611067565b8410610a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1090614c8f565b60405180910390fd5b6000600b5490506000808414610a3b57600184610a369190614cde565b610a3e565b60005b905060008080600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000808914610aa157600189610a9c9190614cde565b610aa4565b60005b90505b600586610ab49190614d63565b811015610bb35781600582610ac99190614d94565b610ad39190614cde565b92506000600c600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b45578094505b8b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610b9f578a861415610b905781975050505050505050610bef565b8580610b9b90614dee565b9650505b508080610bab90614dee565b915050610aa7565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be690614e83565b60405180910390fd5b95945050505050565b610c006131a2565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8390614c23565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610cdf92919061417e565b505050565b610cec613220565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5290614eef565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff166355c45fbe8484846040518463ffffffff1660e01b8152600401610e6993929190614f0f565b600060405180830381600087803b158015610e8357600080fd5b505af1158015610e97573d6000803e3d6000fd5b50505050505050565b610ea8613220565b610ec48484848460405180602001604052806000815250611955565b50505050565b610ed26132ae565b610eed838383604051806020016040528060008152506124d7565b505050565b6060600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015610f595750600760009054906101000a900460ff165b610f98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8f90614f92565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054610fe290614fe1565b80601f016020809104026020016040519081016040528092919081815260200182805461100e90614fe1565b801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b50505050509050919050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166110f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ec90614c23565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158061117d57507f000000000000000000000000000000000000000000000000000000000000dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6111bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b39061505f565b60405180910390fd5b614000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e61120b9190614d94565b600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c611257919061507f565b905092915050565b6060600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166112ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e490614c23565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461133790614fe1565b80601f016020809104026020016040519081016040528092919081815260200182805461136390614fe1565b80156113b05780601f10611385576101008083540402835291602001916113b0565b820191906000526020600020905b81548152906001019060200180831161139357829003601f168201915b50505050509050919050565b6113c4613220565b60006113d033836128af565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611441576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611438906150fc565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061148257506114813382866122c1565b5b6114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890614eef565b60405180910390fd5b61152283600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005856115129190614d94565b61151c9190614cde565b83613340565b50505050565b6115306131a2565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166115bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b390614c23565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020908051906020019061160f92919061417e565b505050565b600760009054906101000a900460ff1681565b61162f6131a2565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116859190614897565b60206040518083038186803b15801561169d57600080fd5b505afa1580156116b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d59190615131565b6040518363ffffffff1660e01b81526004016116f292919061515e565b602060405180830381600087803b15801561170c57600080fd5b505af1158015611720573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611744919061519c565b5050565b611750613220565b6117b2848484600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005866117a39190614d94565b6117ad9190614cde565b613412565b3373ffffffffffffffffffffffffffffffffffffffff166323de66518484846040518463ffffffff1660e01b81526004016117ef939291906151c9565b600060405180830381600087803b15801561180957600080fd5b505af115801561181d573d6000803e3d6000fd5b5050505050505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166118b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ac90614c23565b60405180910390fd5b611915600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005846119059190614d94565b61190f9190614cde565b836138a4565b905092915050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b6119496131a2565b611953600061393e565b565b61195d613220565b6119bf858585600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005876119b09190614d94565b6119ba9190614cde565b613412565b3373ffffffffffffffffffffffffffffffffffffffff166323de66518585856040518463ffffffff1660e01b81526004016119fc939291906151c9565b600060405180830381600087803b158015611a1657600080fd5b505af1158015611a2a573d6000803e3d6000fd5b50505050611a3b8585858585613a02565b611a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a719061524c565b60405180910390fd5b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2f90614c23565b60405180910390fd5b6005600b54611b479190614d63565b8210611b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7f906152b8565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000dead73ffffffffffffffffffffffffffffffffffffffff16611bc984846128af565b73ffffffffffffffffffffffffffffffffffffffff161415611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790614c8f565b60405180910390fd5b81905092915050565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cae90614c23565b60405180910390fd5b611cc18484611067565b8210611d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf990614c8f565b60405180910390fd5b6000600b549050600080600080600260008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060005b600586611d619190614d63565b811015611e605781600582611d769190614d94565b611d809190614cde565b92506000600c600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611df2578094505b8973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611e4c5788861415611e3d5781975050505050505050611e9c565b8580611e4890614dee565b9650505b508080611e5890614dee565b915050611d54565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9390614e83565b60405180910390fd5b9392505050565b600560045410611ee8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edf90615324565b60405180910390fd5b611ef0611a81565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5490614eef565b60405180910390fd5b3360016000600454815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600454600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020908051906020019061204a92919061417e565b5082600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020908051906020019061209e92919061417e565b5081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090805190602001906120f292919061417e565b5080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020908051906020019061214692919061417e565b506001600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600460008154809291906121b290614dee565b919050555050505050565b6121c56131a2565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561222a5750600760009054906101000a900460ff165b612269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226090614f92565b60405180910390fd5b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090805190602001906122bc92919061417e565b505050565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661234f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234690614c23565b60405180910390fd5b601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690509392505050565b612427611a81565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248b90614eef565b60405180910390fd5b33600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6124df6132ae565b6124e98383613b93565b6125118460008560016005600b546125019190614d63565b61250b9190615344565b85613a02565b612550576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125479061524c565b60405180910390fd5b50505050565b6060600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166125e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125db90614c23565b60405180910390fd5b6125ed8261125f565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206126ac600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613e91565b6040516020016126bf94939291906156ce565b6040516020818303038152906040529050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612763576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275a90614c23565b60405180910390fd5b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005600b546127b29190614d63565b6127bc9190615344565b9050919050565b6127cb6131a2565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284e90614c23565b60405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090805190602001906128aa92919061417e565b505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661293d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293490614c23565b60405180910390fd5b6005600b5461294c9190614d63565b821061298d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612984906157bb565b60405180910390fd5b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000816005856129e19190614d94565b6129eb9190614cde565b90505b60008110612a81576000600c600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612a6d57809350505050612abd565b508080612a79906157db565b9150506129ee565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab4906150fc565b60405180910390fd5b92915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612af16131a2565b600760009054906101000a900460ff16612b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3790615851565b60405180910390fd5b6000600760006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc390614eef565b60405180910390fd5b60005b6005811015612e2d5760006001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663a899707c856040518263ffffffff1660e01b8152600401612c499190614897565b60206040518083038186803b158015612c6157600080fd5b505afa158015612c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c99919061519c565b15612cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd090614c23565b60405180910390fd5b82601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff166355c45fbe3386866040518463ffffffff1660e01b8152600401612de793929190614f0f565b600060405180830381600087803b158015612e0157600080fd5b505af1158015612e15573d6000803e3d6000fd5b50505050508080612e2590614dee565b915050612bcf565b505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb790614c23565b60405180910390fd5b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600584612f0f9190614d94565b612f199190614cde565b9050612f2581846138a4565b612f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5b90614eef565b60405180910390fd5b600f600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505092915050565b612fa96131a2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613019576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613010906158e3565b60405180910390fd5b6130228161393e565b50565b61302d613220565b6130b88261303b33846128af565b7f000000000000000000000000000000000000000000000000000000000000dead600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005866130a99190614d94565b6130b39190614cde565b613412565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131089190614cde565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166323de6651837f000000000000000000000000000000000000000000000000000000000000dead846040518463ffffffff1660e01b815260040161316c939291906151c9565b600060405180830381600087803b15801561318657600080fd5b505af115801561319a573d6000803e3d6000fd5b505050505050565b6131aa613f17565b73ffffffffffffffffffffffffffffffffffffffff166131c8611a81565b73ffffffffffffffffffffffffffffffffffffffff161461321e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132159061594f565b60405180910390fd5b565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166132ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a390614c23565b60405180910390fd5b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461333e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613335906159bb565b60405180910390fd5b565b82600f600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff16635687f2b882856005866133bd9190614d63565b6040518463ffffffff1660e01b81526004016133db939291906151c9565b600060405180830381600087803b1580156133f557600080fd5b505af1158015613409573d6000803e3d6000fd5b50505050505050565b60006005826134219190614d63565b9050600061342f33836128af565b905060008173ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614806134a157508673ffffffffffffffffffffffffffffffffffffffff166134893385612e32565b73ffffffffffffffffffffffffffffffffffffffff16145b806134b357506134b23383896122c1565b5b90508080156134ed57508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b61352c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352390614eef565b60405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461359a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613591906150fc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561360a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360190615a27565b60405180910390fd5b61361660008584613340565b600e600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546136629190614d94565b6001901b600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136b49190615344565b92505081905550600e600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546137079190614d94565b6001901b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546137599190614cde565b9250508190555084600c600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006001856137c19190614cde565b9050600073ffffffffffffffffffffffffffffffffffffffff16600c600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561389a576138418160058361383c9190614d63565b6138a4565b156138995782600c600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5050505050505050565b6000600b548310801561393657507f000000000000000000000000000000000000000000000000000000000000dead73ffffffffffffffffffffffffffffffffffffffff16600c600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000613a238473ffffffffffffffffffffffffffffffffffffffff16613f1f565b15613b85578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02878786866040518563ffffffff1660e01b8152600401613a679493929190615a9c565b602060405180830381600087803b158015613a8157600080fd5b505af1925050508015613ab257506040513d601f19601f82011682018060405250810190613aaf9190615b40565b60015b613b35573d8060008114613ae2576040519150601f19603f3d011682016040523d82523d6000602084013e613ae7565b606091505b50600081511415613b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b249061524c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613b8a565b600190505b95945050505050565b60006005600b54613ba49190614d63565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c0d90615a27565b60405180910390fd5b613c22600b54826138a4565b15613c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5990614eef565b60405180910390fd5b6000805b6005811015613c9f57600e81613c7c9190614d94565b84901b82613c8a9190614cde565b91508080613c9790614dee565b915050613c66565b5080600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613ceb9190614cde565b600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083600c6000600b54815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600082905060005b84811015613e765760005b6005811015613e54576001600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323de6651600089866040518463ffffffff1660e01b8152600401613e0f939291906151c9565b600060405180830381600087803b158015613e2957600080fd5b505af1158015613e3d573d6000803e3d6000fd5b505050508080613e4c90614dee565b915050613d95565b508180613e6090614dee565b9250508080613e6e90614dee565b915050613d8a565b50600581613e849190614d94565b600b819055505050505050565b60606000821415613ed9576040518060400160405280600481526020017f30783030000000000000000000000000000000000000000000000000000000008152509050613f12565b600082905060005b60008214613f03578080613ef490614dee565b915050600882901c9150613ee1565b613f0d8482613f42565b925050505b919050565b600033905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060006002836002613f559190614d94565b613f5f9190614cde565b67ffffffffffffffff811115613f7857613f7761444c565b5b6040519080825280601f01601f191660200182016040528015613faa5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613fe257613fe1615b6d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061404657614045615b6d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026140869190614d94565b6140909190614cde565b90505b6001811115614130577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106140d2576140d1615b6d565b5b1a60f81b8282815181106140e9576140e8615b6d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080614129906157db565b9050614093565b5060008414614174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161416b90615be8565b60405180910390fd5b8091505092915050565b82805461418a90614fe1565b90600052602060002090601f0160209004810192826141ac57600085556141f3565b82601f106141c557805160ff19168380011785556141f3565b828001600101855582156141f3579182015b828111156141f25782518255916020019190600101906141d7565b5b5090506142009190614204565b5090565b5b8082111561421d576000816000905550600101614205565b5090565b600081905092915050565b50565b600061423c600083614221565b91506142478261422c565b600082019050919050565b600061425d8261422f565b9150819050919050565b600082825260208201905092915050565b7f4600000000000000000000000000000000000000000000000000000000000000600082015250565b60006142ae600183614267565b91506142b982614278565b602082019050919050565b600060208201905081810360008301526142dd816142a1565b9050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614323826142f8565b9050919050565b61433381614318565b811461433e57600080fd5b50565b6000813590506143508161432a565b92915050565b6000819050919050565b61436981614356565b811461437457600080fd5b50565b60008135905061438681614360565b92915050565b600080600080600060a086880312156143a8576143a76142ee565b5b60006143b688828901614341565b95505060206143c788828901614341565b94505060406143d888828901614377565b93505060606143e988828901614377565b92505060806143fa88828901614377565b9150509295509295909350565b61441081614356565b82525050565b600060208201905061442b6000830184614407565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6144848261443b565b810181811067ffffffffffffffff821117156144a3576144a261444c565b5b80604052505050565b60006144b66142e4565b90506144c2828261447b565b919050565b600067ffffffffffffffff8211156144e2576144e161444c565b5b6144eb8261443b565b9050602081019050919050565b82818337600083830152505050565b600061451a614515846144c7565b6144ac565b90508281526020810184848401111561453657614535614436565b5b6145418482856144f8565b509392505050565b600082601f83011261455e5761455d614431565b5b813561456e848260208601614507565b91505092915050565b6000806040838503121561458e5761458d6142ee565b5b600061459c85828601614341565b925050602083013567ffffffffffffffff8111156145bd576145bc6142f3565b5b6145c985828601614549565b9150509250929050565b60008115159050919050565b6145e8816145d3565b81146145f357600080fd5b50565b600081359050614605816145df565b92915050565b600080600060608486031215614624576146236142ee565b5b600061463286828701614341565b935050602061464386828701614341565b9250506040614654868287016145f6565b9150509250925092565b60008060008060808587031215614678576146776142ee565b5b600061468687828801614341565b945050602061469787828801614341565b93505060406146a887828801614341565b92505060606146b987828801614377565b91505092959194509250565b6000806000606084860312156146de576146dd6142ee565b5b60006146ec86828701614341565b93505060206146fd86828701614341565b925050604061470e86828701614377565b9150509250925092565b60006020828403121561472e5761472d6142ee565b5b600061473c84828501614341565b91505092915050565b600081519050919050565b60005b8381101561476e578082015181840152602081019050614753565b8381111561477d576000848401525b50505050565b600061478e82614745565b6147988185614267565b93506147a8818560208601614750565b6147b18161443b565b840191505092915050565b600060208201905081810360008301526147d68184614783565b905092915050565b600080604083850312156147f5576147f46142ee565b5b600061480385828601614341565b925050602061481485828601614341565b9150509250929050565b614827816145d3565b82525050565b6000602082019050614842600083018461481e565b92915050565b6000806040838503121561485f5761485e6142ee565b5b600061486d85828601614341565b925050602061487e85828601614377565b9150509250929050565b61489181614318565b82525050565b60006020820190506148ac6000830184614888565b92915050565b600067ffffffffffffffff8211156148cd576148cc61444c565b5b6148d68261443b565b9050602081019050919050565b60006148f66148f1846148b2565b6144ac565b90508281526020810184848401111561491257614911614436565b5b61491d8482856144f8565b509392505050565b600082601f83011261493a57614939614431565b5b813561494a8482602086016148e3565b91505092915050565b600080600080600060a0868803121561496f5761496e6142ee565b5b600061497d88828901614341565b955050602061498e88828901614341565b945050604061499f88828901614341565b93505060606149b088828901614377565b925050608086013567ffffffffffffffff8111156149d1576149d06142f3565b5b6149dd88828901614925565b9150509295509295909350565b60008060008060808587031215614a0457614a036142ee565b5b600085013567ffffffffffffffff811115614a2257614a216142f3565b5b614a2e87828801614549565b945050602085013567ffffffffffffffff811115614a4f57614a4e6142f3565b5b614a5b87828801614549565b935050604085013567ffffffffffffffff811115614a7c57614a7b6142f3565b5b614a8887828801614549565b925050606085013567ffffffffffffffff811115614aa957614aa86142f3565b5b614ab587828801614549565b91505092959194509250565b600080600060608486031215614ada57614ad96142ee565b5b6000614ae886828701614341565b9350506020614af986828701614341565b9250506040614b0a86828701614341565b9150509250925092565b60008060008060808587031215614b2e57614b2d6142ee565b5b6000614b3c87828801614341565b9450506020614b4d87828801614341565b9350506040614b5e87828801614377565b925050606085013567ffffffffffffffff811115614b7f57614b7e6142f3565b5b614b8b87828801614925565b91505092959194509250565b60008060408385031215614bae57614bad6142ee565b5b6000614bbc85828601614341565b9250506020614bcd858286016145f6565b9150509250929050565b7f7200000000000000000000000000000000000000000000000000000000000000600082015250565b6000614c0d600183614267565b9150614c1882614bd7565b602082019050919050565b60006020820190508181036000830152614c3c81614c00565b9050919050565b7f6200000000000000000000000000000000000000000000000000000000000000600082015250565b6000614c79600183614267565b9150614c8482614c43565b602082019050919050565b60006020820190508181036000830152614ca881614c6c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614ce982614356565b9150614cf483614356565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d2957614d28614caf565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614d6e82614356565b9150614d7983614356565b925082614d8957614d88614d34565b5b828204905092915050565b6000614d9f82614356565b9150614daa83614356565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614de357614de2614caf565b5b828202905092915050565b6000614df982614356565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e2c57614e2b614caf565b5b600182019050919050565b7f7500000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e6d600183614267565b9150614e7882614e37565b602082019050919050565b60006020820190508181036000830152614e9c81614e60565b9050919050565b7f6100000000000000000000000000000000000000000000000000000000000000600082015250565b6000614ed9600183614267565b9150614ee482614ea3565b602082019050919050565b60006020820190508181036000830152614f0881614ecc565b9050919050565b6000606082019050614f246000830186614888565b614f316020830185614888565b614f3e604083018461481e565b949350505050565b7f722f637300000000000000000000000000000000000000000000000000000000600082015250565b6000614f7c600483614267565b9150614f8782614f46565b602082019050919050565b60006020820190508181036000830152614fab81614f6f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ff957607f821691505b6020821081141561500d5761500c614fb2565b5b50919050565b7f302f6275726e0000000000000000000000000000000000000000000000000000600082015250565b6000615049600683614267565b915061505482615013565b602082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b600061508a82614356565b915061509583614356565b9250826150a5576150a4614d34565b5b828206905092915050565b7f6f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006150e6600183614267565b91506150f1826150b0565b602082019050919050565b60006020820190508181036000830152615115816150d9565b9050919050565b60008151905061512b81614360565b92915050565b600060208284031215615147576151466142ee565b5b60006151558482850161511c565b91505092915050565b60006040820190506151736000830185614888565b6151806020830184614407565b9392505050565b600081519050615196816145df565b92915050565b6000602082840312156151b2576151b16142ee565b5b60006151c084828501615187565b91505092915050565b60006060820190506151de6000830186614888565b6151eb6020830185614888565b6151f86040830184614407565b949350505050565b7f7a00000000000000000000000000000000000000000000000000000000000000600082015250565b6000615236600183614267565b915061524182615200565b602082019050919050565b6000602082019050818103600083015261526581615229565b9050919050565b7f6700000000000000000000000000000000000000000000000000000000000000600082015250565b60006152a2600183614267565b91506152ad8261526c565b602082019050919050565b600060208201905081810360008301526152d181615295565b9050919050565b7f6d72000000000000000000000000000000000000000000000000000000000000600082015250565b600061530e600283614267565b9150615319826152d8565b602082019050919050565b6000602082019050818103600083015261533d81615301565b9050919050565b600061534f82614356565b915061535a83614356565b92508282101561536d5761536c614caf565b5b828203905092915050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d60008201527f65223a2200000000000000000000000000000000000000000000000000000000602082015250565b60006153df602483615378565b91506153ea82615383565b602482019050919050565b600061540082614745565b61540a8185615378565b935061541a818560208601614750565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b600061545c600283615378565b915061546782615426565b600282019050919050565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b60006154a8600f83615378565b91506154b382615472565b600f82019050919050565b60008190508160005260206000209050919050565b600081546154e081614fe1565b6154ea8186615378565b94506001821660008114615505576001811461551657615549565b60ff19831686528186019350615549565b61551f856154be565b60005b8381101561554157815481890152600182019150602081019050615522565b838801955050505b50505092915050565b7f22696d616765223a220000000000000000000000000000000000000000000000600082015250565b6000615588600983615378565b915061559382615552565b600982019050919050565b7f2265787465726e616c5f6c696e6b223a2268747470733a2f2f6372756465626f60008201527f726e652e777466222c0000000000000000000000000000000000000000000000602082015250565b60006155fa602983615378565b91506156058261559e565b602982019050919050565b7f2273656c6c65725f6665655f62617369735f706f696e7473223a3530302c226660008201527f65655f726563697069656e74223a220000000000000000000000000000000000602082015250565b600061566c602f83615378565b915061567782615610565b602f82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b60006156b8600283615378565b91506156c382615682565b600282019050919050565b60006156d9826153d2565b91506156e582876153f5565b91506156f08261544f565b91506156fb8261549b565b915061570782866154d3565b91506157128261544f565b915061571d8261557b565b915061572982856154d3565b91506157348261544f565b915061573f826155ed565b915061574a8261565f565b915061575682846153f5565b9150615761826156ab565b915081905095945050505050565b7f7400000000000000000000000000000000000000000000000000000000000000600082015250565b60006157a5600183614267565b91506157b08261576f565b602082019050919050565b600060208201905081810360008301526157d481615798565b9050919050565b60006157e682614356565b915060008214156157fa576157f9614caf565b5b600182039050919050565b7f6373000000000000000000000000000000000000000000000000000000000000600082015250565b600061583b600283614267565b915061584682615805565b602082019050919050565b6000602082019050818103600083015261586a8161582e565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158cd602683614267565b91506158d882615871565b604082019050919050565b600060208201905081810360008301526158fc816158c0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615939602083614267565b915061594482615903565b602082019050919050565b600060208201905081810360008301526159688161592c565b9050919050565b7f6d00000000000000000000000000000000000000000000000000000000000000600082015250565b60006159a5600183614267565b91506159b08261596f565b602082019050919050565b600060208201905081810360008301526159d481615998565b9050919050565b7f3000000000000000000000000000000000000000000000000000000000000000600082015250565b6000615a11600183614267565b9150615a1c826159db565b602082019050919050565b60006020820190508181036000830152615a4081615a04565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a6e82615a47565b615a788185615a52565b9350615a88818560208601614750565b615a918161443b565b840191505092915050565b6000608082019050615ab16000830187614888565b615abe6020830186614888565b615acb6040830185614407565b8181036060830152615add8184615a63565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b615b1d81615ae8565b8114615b2857600080fd5b50565b600081519050615b3a81615b14565b92915050565b600060208284031215615b5657615b556142ee565b5b6000615b6484828501615b2b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615bd2602083614267565b9150615bdd82615b9c565b602082019050919050565b60006020820190508181036000830152615c0181615bc5565b905091905056fea2646970667358221220990b1123423898faa529bb7887b5f4d7b8f460d5298228e605bcb12ecce059a464736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.