ETH Price: $3,550.40 (+0.59%)
Gas: 4 Gwei

Contract

0xCB572f4b1A72Bb58544E3753E90F15F3e4Ad83ac
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...188725952023-12-26 21:39:11172 days ago1703626751IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0004794819.73530528
Set Approval For...183950252023-10-21 0:10:23239 days ago1697847023IN
0xCB572f4b...3e4Ad83ac
0 ETH0.000451039.76098937
Set Approval For...183884592023-10-20 2:09:11240 days ago1697767751IN
0xCB572f4b...3e4Ad83ac
0 ETH0.00039268.49657271
Set Approval For...178496312023-08-05 15:22:11315 days ago1691248931IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0008079333.25377777
Set Approval For...171626612023-05-01 1:16:11412 days ago1682903771IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0019540742.2229413
Set Approval For...170828432023-04-19 19:53:59423 days ago1681934039IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0020272983.15409342
Set Approval For...170828422023-04-19 19:53:47423 days ago1681934027IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0020037482.47231221
Set Approval For...170128812023-04-09 19:45:35433 days ago1681069535IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0010986523.77632414
Set Approval For...170119492023-04-09 16:36:35433 days ago1681058195IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0011941425.84271196
Set Approval For...169917942023-04-06 20:04:35436 days ago1680811475IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0018030439.02016556
Set Approval For...168737072023-03-21 4:41:47453 days ago1679373707IN
0xCB572f4b...3e4Ad83ac
0 ETH0.000584312.64501825
Set Approval For...168221382023-03-13 22:48:47460 days ago1678747727IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0009718221.03162834
Set Approval For...164661302023-01-23 1:10:47510 days ago1674436247IN
0xCB572f4b...3e4Ad83ac
0 ETH0.000373115.35657131
Set Approval For...164661292023-01-23 1:10:35510 days ago1674436235IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0003852315.80118945
Set Approval For...164661282023-01-23 1:10:23510 days ago1674436223IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0003841615.75720491
Set Approval For...163288612023-01-03 21:11:35529 days ago1672780295IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0009368320.27421991
Set Approval For...163160162023-01-02 2:11:11531 days ago1672625471IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0007233115.65338181
Set Approval For...162802992022-12-28 2:35:11536 days ago1672194911IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0007264115.72061544
Set Approval For...162516452022-12-24 2:35:23540 days ago1671849323IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0002972612.23516978
Set Approval For...162132562022-12-18 18:05:11545 days ago1671386711IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0006378726.25416904
Set Approval For...161864492022-12-15 0:14:35549 days ago1671063275IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0006381713.8108829
Set Approval For...161821142022-12-14 9:43:35550 days ago1671011015IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0003646215.00766534
Set Approval For...161160192022-12-05 3:49:47559 days ago1670212187IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0005748512.41797445
Set Approval For...160861362022-11-30 23:40:35563 days ago1669851635IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0005534211.97674641
Set Approval For...160707432022-11-28 20:01:59565 days ago1669665719IN
0xCB572f4b...3e4Ad83ac
0 ETH0.0006231713.486268
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Condos

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : Condos.sol
// SPDX-License-Identifier: AGPL-3.0
// ©2022 Ponderware Ltd

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";

interface IMetadata {
    function CONDOS_TOKEN_URI() external pure returns (string memory condosTokenUri);
    function streetsAddress() external pure returns (address contractAddress);
}

interface IReverseResolver {
    function claim(address owner) external returns (bytes32);
}

interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
}

interface IERC721 {
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}


/*
 * @title CondoMini Streets
 * @author Ponderware Ltd
 * @dev CondoMini Condo ERC-1155 NFT
 */
contract Condos is ERC1155 {
    address public owner;

    IMetadata Metadata;

    bool initialized = false;
    uint8[280] public Items; // Supply of items

    struct Stock {
        uint256 available;
        uint16[] items;
        mapping(uint256 => uint256) indexes;
    }

    Stock[5] public StockedTypes;

    // Type | Name          | Variants | Quantity | Total
    // -----|---------------|----------|----------|-------
    //    0 | Base Condo    |       78 |      170 | 13,260
    //    1 | Premium Condo |       57 |       98 |  5,586
    //    2 | Base Gold     |       78 |        9 |    702
    //    3 | Premium Gold  |       57 |        6 |    342
    //    4 | Landmark      |       10 |       11 |    110
    //----------------------------------------------------
    //        Total                280              20,000

    uint256 public totalAvailableSupply = 0;

    constructor(address metadataAddress) ERC1155("") {
        owner = msg.sender;
        Metadata = IMetadata(metadataAddress);
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Not Owner");
        _;
    }

    modifier onlyStreets() {
        require(msg.sender == Metadata.streetsAddress() || msg.sender == owner, "Not admin");
        _;
    }

    modifier whenInitialized() {
        require(initialized == true, "Not initialized");
        _;
    }

    function initializeStock(uint256 stockIndex, uint256 itemCount, uint8 quantityPerItem) private {
        Stock storage stock = StockedTypes[stockIndex];
        unchecked {
            uint256 idOffset = 0;
            if (stockIndex == 1) {
                idOffset = 78;
            } else if (stockIndex == 2) {
                idOffset = 135;
            } else if (stockIndex == 3) {
                idOffset = 213;
            } else if (stockIndex == 4) {
                idOffset = 270;
            }
            stock.available = itemCount * quantityPerItem;
            totalAvailableSupply += stock.available;
            for (uint index = 0; index < itemCount; index++) {
                uint id = idOffset + index;
                stock.indexes[id] = stock.items.length;
                stock.items.push(uint16(id));
                Items[id] = quantityPerItem;
            }
        }
    }

    function initialize() public onlyOwner {
        require(initialized == false, "Already initialized");
        require(Metadata.streetsAddress() != address(0), "Invalid streets address");

        initializeStock(0, 78, 170);
        initializeStock(1, 57, 98);
        initializeStock(2, 78, 9);
        initializeStock(3, 57, 6);
        initializeStock(4, 10, 11);

        initialized = true;
    }

    function _handleStock(uint256 id) internal {
        require(Items[id] > 0, "No supply");
        unchecked {
            uint itemType = 0;
            if (id >= 270) {
                itemType = 4;
            } else if (id >= 213) {
                itemType = 3;
            } else if (id >= 135) {
                itemType = 2;
            } else if (id >= 78) {
                itemType = 1;
            }

            Stock storage stock = StockedTypes[itemType];
            Items[id]--; // decrement supply;
            if (Items[id] == 0) {
                uint stockIndex = stock.indexes[id];
                uint lastItem = stock.items[stock.items.length - 1];
                stock.indexes[lastItem] = stockIndex;
                stock.indexes[id] = 0;
                stock.items[stockIndex] = uint16(lastItem);
                stock.items.pop();
            }
            stock.available--;
            totalAvailableSupply--;
        }
    }

    function assembleRandomStreet(uint256 seed) external whenInitialized onlyStreets returns (uint16[5] memory ids) {
        require(totalAvailableSupply >= 5, "Insufficient supply");
        unchecked {
            for (uint256 i = 0; i < 5; i++) {
                uint256 stockNumber = seed % totalAvailableSupply;
                uint256 count = 0;
                for (uint256 t = 0; t < 5; t++) {
                    count += StockedTypes[t].available;
                    if (stockNumber <= count && StockedTypes[t].items.length > 0) {
                        uint256 itemIndex = (seed % StockedTypes[t].items.length);
                        uint256 id = StockedTypes[t].items[itemIndex];
                        ids[i] = uint16(id);
                        _handleStock(id);
                        break;
                    }
                }
                seed = uint256(keccak256(abi.encodePacked(seed, stockNumber)));
            }
        }
    }

    uint256[] private assemblyMintQuantities = [1, 1, 1, 1, 1];

    function assembleStreet(address from, uint256[] calldata ids) external whenInitialized onlyStreets {
        _burnBatch(from, ids, assemblyMintQuantities);
    }

    function breakupStreet(address to, uint256[] calldata ids) external whenInitialized onlyStreets {
        _mintBatch(to, ids, assemblyMintQuantities, "");
    }

    function uri(uint256) public view override returns (string memory) {
        return Metadata.CONDOS_TOKEN_URI();
    }

    /**
     * @dev Claim ENS reverse-resolver rights for this contract.
     * https://docs.ens.domains/contract-api-reference/reverseregistrar#claim-address
     */
    function setReverseResolver(address registrar) public onlyOwner {
        IReverseResolver(registrar).claim(msg.sender);
    }

    /**
     * @dev Rescue ERC20 assets sent directly to this contract.
     */
    function withdrawForeignERC20(address tokenContract) public onlyOwner {
        IERC20 token = IERC20(tokenContract);
        token.transfer(msg.sender, token.balanceOf(address(this)));
    }

    /**
     * @dev Rescue ERC721 assets sent directly to this contract.
     */
    function withdrawForeignERC721(address tokenContract, uint256 tokenId) public virtual onlyOwner {
        IERC721(tokenContract).safeTransferFrom(address(this), msg.sender, tokenId);
    }

    function withdrawEth() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function transferOwnership(address newOwner) public onlyOwner {
        owner = newOwner;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 6 of 9 : 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 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"metadataAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Items","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"StockedTypes","outputs":[{"internalType":"uint256","name":"available","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"assembleRandomStreet","outputs":[{"internalType":"uint16[5]","name":"ids","type":"uint16[5]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"assembleStreet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"breakupStreet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"registrar","type":"address"}],"name":"setReverseResolver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAvailableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"}],"name":"withdrawForeignERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawForeignERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6004805460ff60a01b191690556000601d556101206040526001608081815260a082905260c082905260e0829052610100919091526200004490601e906005620000dd565b503480156200005257600080fd5b5060405162002b7638038062002b768339810160408190526200007591620001c6565b6040805160208101909152600081526200008f81620000c4565b5060038054336001600160a01b031991821617909155600480549091166001600160a01b039290921691909117905562000235565b8051620000d990600290602084019062000132565b5050565b82805482825590600052602060002090810192821562000120579160200282015b8281111562000120578251829060ff16905591602001919060010190620000fe565b506200012e929150620001af565b5090565b8280546200014090620001f8565b90600052602060002090601f01602090048101928262000164576000855562000120565b82601f106200017f57805160ff191683800117855562000120565b8280016001018555821562000120579182015b828111156200012057825182559160200191906001019062000192565b5b808211156200012e5760008155600101620001b0565b600060208284031215620001d957600080fd5b81516001600160a01b0381168114620001f157600080fd5b9392505050565b600181811c908216806200020d57607f821691505b602082108114156200022f57634e487b7160e01b600052602260045260246000fd5b50919050565b61293180620002456000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806380bb521d116100b8578063a81158c71161007c578063a81158c7146102ae578063e985e9c5146102c1578063f242432a146102fd578063f2fde38b14610310578063f4cbc9c214610323578063f52ee6ff1461033657600080fd5b806380bb521d146102575780638129fc1c146102605780638da5cb5b14610268578063a0ef91df14610293578063a22cb4651461029b57600080fd5b80632eb2c2d6116100ff5780632eb2c2d6146101de578063481330b7146101f15780634e1273f4146102115780635c47199514610231578063642aad461461024457600080fd5b8062fdd58e1461013b57806301ffc9a7146101615780630ce06b68146101845780630e89341c1461019957806317b47cc4146101b9575b600080fd5b61014e610149366004611e63565b610349565b6040519081526020015b60405180910390f35b61017461016f366004611ea5565b6103df565b6040519015158152602001610158565b610197610192366004611e63565b610431565b005b6101ac6101a7366004611ec9565b6104c5565b6040516101589190611f3a565b6101cc6101c7366004611ec9565b610551565b60405160ff9091168152602001610158565b6101976101ec3660046120a9565b61057c565b6102046101ff366004611ec9565b6105c8565b6040516101589190612157565b61022461021f36600461218c565b61087e565b6040516101589190612294565b61019761023f3660046122a7565b6109a8565b6101976102523660046122c4565b610ad8565b61014e601d5481565b610197610c50565b60035461027b906001600160a01b031681565b6040516001600160a01b039091168152602001610158565b610197610dfa565b6101976102a936600461235a565b610e53565b6101976102bc3660046122a7565b610e62565b6101746102cf366004612393565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61019761030b3660046123c1565b610f05565b61019761031e3660046122a7565b610f4a565b6101976103313660046122c4565b610f96565b61014e610344366004611ec9565b61111e565b60006001600160a01b0383166103b95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061041057506001600160e01b031982166303a24d0760e21b145b8061042b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b0316331461045b5760405162461bcd60e51b81526004016103b09061242a565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b1580156104a957600080fd5b505af11580156104bd573d6000803e3d6000fd5b505050505050565b6060600460009054906101000a90046001600160a01b03166001600160a01b031663d565a7026040518163ffffffff1660e01b815260040160006040518083038186803b15801561051557600080fd5b505afa158015610529573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261042b919081019061244d565b600581610118811061056257600080fd5b60209182820401919006915054906101000a900460ff1681565b6001600160a01b038516331480610598575061059885336102cf565b6105b45760405162461bcd60e51b81526004016103b0906124cf565b6105c18585858585611138565b5050505050565b6105d0611e30565b600454600160a01b900460ff1615156001146105fe5760405162461bcd60e51b81526004016103b09061251e565b600480546040805163508b08c560e01b815290516001600160a01b039092169263508b08c5928282019260209290829003018186803b15801561064057600080fd5b505afa158015610654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106789190612547565b6001600160a01b0316336001600160a01b031614806106a157506003546001600160a01b031633145b6106bd5760405162461bcd60e51b81526004016103b090612564565b6005601d5410156107065760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b60448201526064016103b0565b60005b6005811015610878576000601d54848161072557610725612587565b0690506000805b600581101561083f57600e81600581106107485761074861259d565b6003020154919091019081831180159061077f57506000600e82600581106107725761077261259d565b6003020160010180549050115b15610837576000600e82600581106107995761079961259d565b600302016001018054905087816107b2576107b2612587565b0690506000600e83600581106107ca576107ca61259d565b6003020160010182815481106107e2576107e261259d565b60009182526020909120601082040154600f9091166002026101000a900461ffff169050808787600581106108195761081961259d565b61ffff9092166020929092020152610830816112cc565b505061083f565b60010161072c565b50604080516020810187905290810183905260600160408051808303601f19018152919052805160209091012094505050600101610709565b50919050565b606081518351146108e35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016103b0565b6000835167ffffffffffffffff8111156108ff576108ff611f4d565b604051908082528060200260200182016040528015610928578160200160208202803683370190505b50905060005b84518110156109a05761097385828151811061094c5761094c61259d565b60200260200101518583815181106109665761096661259d565b6020026020010151610349565b8282815181106109855761098561259d565b6020908102919091010152610999816125c9565b905061092e565b509392505050565b6003546001600160a01b031633146109d25760405162461bcd60e51b81526004016103b09061242a565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015610a1d57600080fd5b505afa158015610a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5591906125e4565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610a9b57600080fd5b505af1158015610aaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad391906125fd565b505050565b600454600160a01b900460ff161515600114610b065760405162461bcd60e51b81526004016103b09061251e565b600480546040805163508b08c560e01b815290516001600160a01b039092169263508b08c5928282019260209290829003018186803b158015610b4857600080fd5b505afa158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b809190612547565b6001600160a01b0316336001600160a01b03161480610ba957506003546001600160a01b031633145b610bc55760405162461bcd60e51b81526004016103b090612564565b610ad38383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e805460408051602080840282018101909252828152945091925090830182828015610c4657602002820191906000526020600020905b815481526020019060010190808311610c32575b5050505050611509565b6003546001600160a01b03163314610c7a5760405162461bcd60e51b81526004016103b09061242a565b600454600160a01b900460ff1615610cca5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016103b0565b600480546040805163508b08c560e01b815290516000936001600160a01b039093169263508b08c592808201926020929091829003018186803b158015610d1057600080fd5b505afa158015610d24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d489190612547565b6001600160a01b03161415610d9f5760405162461bcd60e51b815260206004820152601760248201527f496e76616c69642073747265657473206164647265737300000000000000000060448201526064016103b0565b610dad6000604e60aa61170d565b610dbb60016039606261170d565b610dc96002604e600961170d565b610dd760036039600661170d565b610de56004600a600b61170d565b6004805460ff60a01b1916600160a01b179055565b6003546001600160a01b03163314610e245760405162461bcd60e51b81526004016103b09061242a565b60405133904780156108fc02916000818181858888f19350505050158015610e50573d6000803e3d6000fd5b50565b610e5e33838361181b565b5050565b6003546001600160a01b03163314610e8c5760405162461bcd60e51b81526004016103b09061242a565b604051630f41a04d60e11b81523360048201526001600160a01b03821690631e83409a90602401602060405180830381600087803b158015610ecd57600080fd5b505af1158015610ee1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e91906125e4565b6001600160a01b038516331480610f215750610f2185336102cf565b610f3d5760405162461bcd60e51b81526004016103b0906124cf565b6105c185858585856118fc565b6003546001600160a01b03163314610f745760405162461bcd60e51b81526004016103b09061242a565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a01b900460ff161515600114610fc45760405162461bcd60e51b81526004016103b09061251e565b600480546040805163508b08c560e01b815290516001600160a01b039092169263508b08c5928282019260209290829003018186803b15801561100657600080fd5b505afa15801561101a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103e9190612547565b6001600160a01b0316336001600160a01b0316148061106757506003546001600160a01b031633145b6110835760405162461bcd60e51b81526004016103b090612564565b610ad38383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e80546040805160208084028201810190925282815294509192509083018282801561110457602002820191906000526020600020905b8154815260200190600101908083116110f0575b505050505060405180602001604052806000815250611a26565b600e816005811061112e57600080fd5b6003020154905081565b81518351146111595760405162461bcd60e51b81526004016103b09061261a565b6001600160a01b03841661117f5760405162461bcd60e51b81526004016103b090612662565b3360005b84518110156112665760008582815181106111a0576111a061259d565b6020026020010151905060008583815181106111be576111be61259d565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561120e5760405162461bcd60e51b81526004016103b0906126a7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061124b9084906126f1565b925050819055505050508061125f906125c9565b9050611183565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516112b6929190612709565b60405180910390a46104bd818787878787611ba7565b600060058261011881106112e2576112e261259d565b602081049091015460ff601f9092166101000a900416116113315760405162461bcd60e51b81526020600482015260096024820152684e6f20737570706c7960b81b60448201526064016103b0565b600061010e821061134457506004611370565b60d5821061135457506003611370565b6087821061136457506002611370565b604e8210611370575060015b6000600e82600581106113855761138561259d565b600302019050600583610118811061139f5761139f61259d565b60208104919091018054601f9092166101000a60ff81810219841693829004811660001901160291909117905560058361011881106113e0576113e061259d565b602081049091015460ff601f9092166101000a9004166114f157600083815260028201602052604081205460018301805491929160001981019081106114285761142861259d565b6000918252602080832060108304015461ffff6002600f90941684026101000a90910416808452918601905260408083208590558783528220919091556001840180549192508291849081106114805761148061259d565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550826001018054806114c2576114c2612737565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905550505b8054600019908101909155601d805490910190555050565b6001600160a01b03831661156b5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016103b0565b805182511461158c5760405162461bcd60e51b81526004016103b09061261a565b604080516020810190915260009081905233905b835181101561169e5760008482815181106115bd576115bd61259d565b6020026020010151905060008483815181106115db576115db61259d565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156116675760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016103b0565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611696816125c9565b9150506115a0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516116ef929190612709565b60405180910390a46040805160208101909152600090525b50505050565b6000600e84600581106117225761172261259d565b6003020190506000846001141561173b5750604e61176b565b846002141561174c5750608761176b565b846003141561175d575060d561176b565b846004141561176b575061010e5b60ff83168402808355601d8054909101905560005b848110156104bd57600183810180548385016000818152600280890160209081526040832085905595840185559381529390932060108204018054600f9092169092026101000a61ffff81810219909216918416021790558460058261011881106117ed576117ed61259d565b602091828204019190066101000a81548160ff021916908360ff160217905550508080600101915050611780565b816001600160a01b0316836001600160a01b0316141561188f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016103b0565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166119225760405162461bcd60e51b81526004016103b090612662565b33600061192e85611d1b565b9050600061193b85611d1b565b90506000868152602081815260408083206001600160a01b038c1684529091529020548581101561197e5760405162461bcd60e51b81526004016103b0906126a7565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906119bb9084906126f1565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611a1b848a8a8a8a8a611d66565b505050505050505050565b6001600160a01b038416611a865760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016103b0565b8151835114611aa75760405162461bcd60e51b81526004016103b09061261a565b3360005b8451811015611b4357838181518110611ac657611ac661259d565b6020026020010151600080878481518110611ae357611ae361259d565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611b2b91906126f1565b90915550819050611b3b816125c9565b915050611aab565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b94929190612709565b60405180910390a46105c1816000878787875b6001600160a01b0384163b156104bd5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611beb908990899088908890889060040161274d565b602060405180830381600087803b158015611c0557600080fd5b505af1925050508015611c35575060408051601f3d908101601f19168201909252611c32918101906127ab565b60015b611ce257611c416127c8565b806308c379a01415611c7b5750611c566127e4565b80611c615750611c7d565b8060405162461bcd60e51b81526004016103b09190611f3a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016103b0565b6001600160e01b0319811663bc197c8160e01b14611d125760405162461bcd60e51b81526004016103b09061286e565b50505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611d5557611d5561259d565b602090810291909101015292915050565b6001600160a01b0384163b156104bd5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611daa90899089908890889088906004016128b6565b602060405180830381600087803b158015611dc457600080fd5b505af1925050508015611df4575060408051601f3d908101601f19168201909252611df1918101906127ab565b60015b611e0057611c416127c8565b6001600160e01b0319811663f23a6e6160e01b14611d125760405162461bcd60e51b81526004016103b09061286e565b6040518060a001604052806005906020820280368337509192915050565b6001600160a01b0381168114610e5057600080fd5b60008060408385031215611e7657600080fd5b8235611e8181611e4e565b946020939093013593505050565b6001600160e01b031981168114610e5057600080fd5b600060208284031215611eb757600080fd5b8135611ec281611e8f565b9392505050565b600060208284031215611edb57600080fd5b5035919050565b60005b83811015611efd578181015183820152602001611ee5565b838111156117075750506000910152565b60008151808452611f26816020860160208601611ee2565b601f01601f19169290920160200192915050565b602081526000611ec26020830184611f0e565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611f8957611f89611f4d565b6040525050565b600067ffffffffffffffff821115611faa57611faa611f4d565b5060051b60200190565b600082601f830112611fc557600080fd5b81356020611fd282611f90565b604051611fdf8282611f63565b83815260059390931b8501820192828101915086841115611fff57600080fd5b8286015b8481101561201a5780358352918301918301612003565b509695505050505050565b600067ffffffffffffffff82111561203f5761203f611f4d565b50601f01601f191660200190565b600082601f83011261205e57600080fd5b813561206981612025565b6040516120768282611f63565b82815285602084870101111561208b57600080fd5b82602086016020830137600092810160200192909252509392505050565b600080600080600060a086880312156120c157600080fd5b85356120cc81611e4e565b945060208601356120dc81611e4e565b9350604086013567ffffffffffffffff808211156120f957600080fd5b61210589838a01611fb4565b9450606088013591508082111561211b57600080fd5b61212789838a01611fb4565b9350608088013591508082111561213d57600080fd5b5061214a8882890161204d565b9150509295509295909350565b60a08101818360005b600581101561218357815161ffff16835260209283019290910190600101612160565b50505092915050565b6000806040838503121561219f57600080fd5b823567ffffffffffffffff808211156121b757600080fd5b818501915085601f8301126121cb57600080fd5b813560206121d882611f90565b6040516121e58282611f63565b83815260059390931b850182019282810191508984111561220557600080fd5b948201945b8386101561222c57853561221d81611e4e565b8252948201949082019061220a565b9650508601359250508082111561224257600080fd5b5061224f85828601611fb4565b9150509250929050565b600081518084526020808501945080840160005b838110156122895781518752958201959082019060010161226d565b509495945050505050565b602081526000611ec26020830184612259565b6000602082840312156122b957600080fd5b8135611ec281611e4e565b6000806000604084860312156122d957600080fd5b83356122e481611e4e565b9250602084013567ffffffffffffffff8082111561230157600080fd5b818601915086601f83011261231557600080fd5b81358181111561232457600080fd5b8760208260051b850101111561233957600080fd5b6020830194508093505050509250925092565b8015158114610e5057600080fd5b6000806040838503121561236d57600080fd5b823561237881611e4e565b915060208301356123888161234c565b809150509250929050565b600080604083850312156123a657600080fd5b82356123b181611e4e565b9150602083013561238881611e4e565b600080600080600060a086880312156123d957600080fd5b85356123e481611e4e565b945060208601356123f481611e4e565b93506040860135925060608601359150608086013567ffffffffffffffff81111561241e57600080fd5b61214a8882890161204d565b6020808252600990820152682737ba1027bbb732b960b91b604082015260600190565b60006020828403121561245f57600080fd5b815167ffffffffffffffff81111561247657600080fd5b8201601f8101841361248757600080fd5b805161249281612025565b60405161249f8282611f63565b8281528660208486010111156124b457600080fd5b6124c5836020830160208701611ee2565b9695505050505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b6020808252600f908201526e139bdd081a5b9a5d1a585b1a5e9959608a1b604082015260600190565b60006020828403121561255957600080fd5b8151611ec281611e4e565b6020808252600990820152682737ba1030b236b4b760b91b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156125dd576125dd6125b3565b5060010190565b6000602082840312156125f657600080fd5b5051919050565b60006020828403121561260f57600080fd5b8151611ec28161234c565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008219821115612704576127046125b3565b500190565b60408152600061271c6040830185612259565b828103602084015261272e8185612259565b95945050505050565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0386811682528516602082015260a06040820181905260009061277990830186612259565b828103606084015261278b8186612259565b9050828103608084015261279f8185611f0e565b98975050505050505050565b6000602082840312156127bd57600080fd5b8151611ec281611e8f565b600060033d11156127e15760046000803e5060005160e01c5b90565b600060443d10156127f25790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561282257505050505090565b828501915081518181111561283a5750505050505090565b843d87010160208285010111156128545750505050505090565b61286360208286010187611f63565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906128f090830184611f0e565b97965050505050505056fea2646970667358221220b33ad1b6dd93656b7277445e944dcf966dd8e4f306ddfb0316dbd7b48fab44f164736f6c6343000809003300000000000000000000000017f04c54798bf104ecc5caa31a2041e55aa0683b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c806380bb521d116100b8578063a81158c71161007c578063a81158c7146102ae578063e985e9c5146102c1578063f242432a146102fd578063f2fde38b14610310578063f4cbc9c214610323578063f52ee6ff1461033657600080fd5b806380bb521d146102575780638129fc1c146102605780638da5cb5b14610268578063a0ef91df14610293578063a22cb4651461029b57600080fd5b80632eb2c2d6116100ff5780632eb2c2d6146101de578063481330b7146101f15780634e1273f4146102115780635c47199514610231578063642aad461461024457600080fd5b8062fdd58e1461013b57806301ffc9a7146101615780630ce06b68146101845780630e89341c1461019957806317b47cc4146101b9575b600080fd5b61014e610149366004611e63565b610349565b6040519081526020015b60405180910390f35b61017461016f366004611ea5565b6103df565b6040519015158152602001610158565b610197610192366004611e63565b610431565b005b6101ac6101a7366004611ec9565b6104c5565b6040516101589190611f3a565b6101cc6101c7366004611ec9565b610551565b60405160ff9091168152602001610158565b6101976101ec3660046120a9565b61057c565b6102046101ff366004611ec9565b6105c8565b6040516101589190612157565b61022461021f36600461218c565b61087e565b6040516101589190612294565b61019761023f3660046122a7565b6109a8565b6101976102523660046122c4565b610ad8565b61014e601d5481565b610197610c50565b60035461027b906001600160a01b031681565b6040516001600160a01b039091168152602001610158565b610197610dfa565b6101976102a936600461235a565b610e53565b6101976102bc3660046122a7565b610e62565b6101746102cf366004612393565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61019761030b3660046123c1565b610f05565b61019761031e3660046122a7565b610f4a565b6101976103313660046122c4565b610f96565b61014e610344366004611ec9565b61111e565b60006001600160a01b0383166103b95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061041057506001600160e01b031982166303a24d0760e21b145b8061042b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b0316331461045b5760405162461bcd60e51b81526004016103b09061242a565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b1580156104a957600080fd5b505af11580156104bd573d6000803e3d6000fd5b505050505050565b6060600460009054906101000a90046001600160a01b03166001600160a01b031663d565a7026040518163ffffffff1660e01b815260040160006040518083038186803b15801561051557600080fd5b505afa158015610529573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261042b919081019061244d565b600581610118811061056257600080fd5b60209182820401919006915054906101000a900460ff1681565b6001600160a01b038516331480610598575061059885336102cf565b6105b45760405162461bcd60e51b81526004016103b0906124cf565b6105c18585858585611138565b5050505050565b6105d0611e30565b600454600160a01b900460ff1615156001146105fe5760405162461bcd60e51b81526004016103b09061251e565b600480546040805163508b08c560e01b815290516001600160a01b039092169263508b08c5928282019260209290829003018186803b15801561064057600080fd5b505afa158015610654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106789190612547565b6001600160a01b0316336001600160a01b031614806106a157506003546001600160a01b031633145b6106bd5760405162461bcd60e51b81526004016103b090612564565b6005601d5410156107065760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b60448201526064016103b0565b60005b6005811015610878576000601d54848161072557610725612587565b0690506000805b600581101561083f57600e81600581106107485761074861259d565b6003020154919091019081831180159061077f57506000600e82600581106107725761077261259d565b6003020160010180549050115b15610837576000600e82600581106107995761079961259d565b600302016001018054905087816107b2576107b2612587565b0690506000600e83600581106107ca576107ca61259d565b6003020160010182815481106107e2576107e261259d565b60009182526020909120601082040154600f9091166002026101000a900461ffff169050808787600581106108195761081961259d565b61ffff9092166020929092020152610830816112cc565b505061083f565b60010161072c565b50604080516020810187905290810183905260600160408051808303601f19018152919052805160209091012094505050600101610709565b50919050565b606081518351146108e35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016103b0565b6000835167ffffffffffffffff8111156108ff576108ff611f4d565b604051908082528060200260200182016040528015610928578160200160208202803683370190505b50905060005b84518110156109a05761097385828151811061094c5761094c61259d565b60200260200101518583815181106109665761096661259d565b6020026020010151610349565b8282815181106109855761098561259d565b6020908102919091010152610999816125c9565b905061092e565b509392505050565b6003546001600160a01b031633146109d25760405162461bcd60e51b81526004016103b09061242a565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015610a1d57600080fd5b505afa158015610a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5591906125e4565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610a9b57600080fd5b505af1158015610aaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad391906125fd565b505050565b600454600160a01b900460ff161515600114610b065760405162461bcd60e51b81526004016103b09061251e565b600480546040805163508b08c560e01b815290516001600160a01b039092169263508b08c5928282019260209290829003018186803b158015610b4857600080fd5b505afa158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b809190612547565b6001600160a01b0316336001600160a01b03161480610ba957506003546001600160a01b031633145b610bc55760405162461bcd60e51b81526004016103b090612564565b610ad38383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e805460408051602080840282018101909252828152945091925090830182828015610c4657602002820191906000526020600020905b815481526020019060010190808311610c32575b5050505050611509565b6003546001600160a01b03163314610c7a5760405162461bcd60e51b81526004016103b09061242a565b600454600160a01b900460ff1615610cca5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016103b0565b600480546040805163508b08c560e01b815290516000936001600160a01b039093169263508b08c592808201926020929091829003018186803b158015610d1057600080fd5b505afa158015610d24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d489190612547565b6001600160a01b03161415610d9f5760405162461bcd60e51b815260206004820152601760248201527f496e76616c69642073747265657473206164647265737300000000000000000060448201526064016103b0565b610dad6000604e60aa61170d565b610dbb60016039606261170d565b610dc96002604e600961170d565b610dd760036039600661170d565b610de56004600a600b61170d565b6004805460ff60a01b1916600160a01b179055565b6003546001600160a01b03163314610e245760405162461bcd60e51b81526004016103b09061242a565b60405133904780156108fc02916000818181858888f19350505050158015610e50573d6000803e3d6000fd5b50565b610e5e33838361181b565b5050565b6003546001600160a01b03163314610e8c5760405162461bcd60e51b81526004016103b09061242a565b604051630f41a04d60e11b81523360048201526001600160a01b03821690631e83409a90602401602060405180830381600087803b158015610ecd57600080fd5b505af1158015610ee1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e91906125e4565b6001600160a01b038516331480610f215750610f2185336102cf565b610f3d5760405162461bcd60e51b81526004016103b0906124cf565b6105c185858585856118fc565b6003546001600160a01b03163314610f745760405162461bcd60e51b81526004016103b09061242a565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a01b900460ff161515600114610fc45760405162461bcd60e51b81526004016103b09061251e565b600480546040805163508b08c560e01b815290516001600160a01b039092169263508b08c5928282019260209290829003018186803b15801561100657600080fd5b505afa15801561101a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103e9190612547565b6001600160a01b0316336001600160a01b0316148061106757506003546001600160a01b031633145b6110835760405162461bcd60e51b81526004016103b090612564565b610ad38383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e80546040805160208084028201810190925282815294509192509083018282801561110457602002820191906000526020600020905b8154815260200190600101908083116110f0575b505050505060405180602001604052806000815250611a26565b600e816005811061112e57600080fd5b6003020154905081565b81518351146111595760405162461bcd60e51b81526004016103b09061261a565b6001600160a01b03841661117f5760405162461bcd60e51b81526004016103b090612662565b3360005b84518110156112665760008582815181106111a0576111a061259d565b6020026020010151905060008583815181106111be576111be61259d565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561120e5760405162461bcd60e51b81526004016103b0906126a7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061124b9084906126f1565b925050819055505050508061125f906125c9565b9050611183565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516112b6929190612709565b60405180910390a46104bd818787878787611ba7565b600060058261011881106112e2576112e261259d565b602081049091015460ff601f9092166101000a900416116113315760405162461bcd60e51b81526020600482015260096024820152684e6f20737570706c7960b81b60448201526064016103b0565b600061010e821061134457506004611370565b60d5821061135457506003611370565b6087821061136457506002611370565b604e8210611370575060015b6000600e82600581106113855761138561259d565b600302019050600583610118811061139f5761139f61259d565b60208104919091018054601f9092166101000a60ff81810219841693829004811660001901160291909117905560058361011881106113e0576113e061259d565b602081049091015460ff601f9092166101000a9004166114f157600083815260028201602052604081205460018301805491929160001981019081106114285761142861259d565b6000918252602080832060108304015461ffff6002600f90941684026101000a90910416808452918601905260408083208590558783528220919091556001840180549192508291849081106114805761148061259d565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550826001018054806114c2576114c2612737565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905550505b8054600019908101909155601d805490910190555050565b6001600160a01b03831661156b5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016103b0565b805182511461158c5760405162461bcd60e51b81526004016103b09061261a565b604080516020810190915260009081905233905b835181101561169e5760008482815181106115bd576115bd61259d565b6020026020010151905060008483815181106115db576115db61259d565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156116675760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016103b0565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611696816125c9565b9150506115a0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516116ef929190612709565b60405180910390a46040805160208101909152600090525b50505050565b6000600e84600581106117225761172261259d565b6003020190506000846001141561173b5750604e61176b565b846002141561174c5750608761176b565b846003141561175d575060d561176b565b846004141561176b575061010e5b60ff83168402808355601d8054909101905560005b848110156104bd57600183810180548385016000818152600280890160209081526040832085905595840185559381529390932060108204018054600f9092169092026101000a61ffff81810219909216918416021790558460058261011881106117ed576117ed61259d565b602091828204019190066101000a81548160ff021916908360ff160217905550508080600101915050611780565b816001600160a01b0316836001600160a01b0316141561188f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016103b0565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166119225760405162461bcd60e51b81526004016103b090612662565b33600061192e85611d1b565b9050600061193b85611d1b565b90506000868152602081815260408083206001600160a01b038c1684529091529020548581101561197e5760405162461bcd60e51b81526004016103b0906126a7565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906119bb9084906126f1565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611a1b848a8a8a8a8a611d66565b505050505050505050565b6001600160a01b038416611a865760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016103b0565b8151835114611aa75760405162461bcd60e51b81526004016103b09061261a565b3360005b8451811015611b4357838181518110611ac657611ac661259d565b6020026020010151600080878481518110611ae357611ae361259d565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611b2b91906126f1565b90915550819050611b3b816125c9565b915050611aab565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b94929190612709565b60405180910390a46105c1816000878787875b6001600160a01b0384163b156104bd5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611beb908990899088908890889060040161274d565b602060405180830381600087803b158015611c0557600080fd5b505af1925050508015611c35575060408051601f3d908101601f19168201909252611c32918101906127ab565b60015b611ce257611c416127c8565b806308c379a01415611c7b5750611c566127e4565b80611c615750611c7d565b8060405162461bcd60e51b81526004016103b09190611f3a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016103b0565b6001600160e01b0319811663bc197c8160e01b14611d125760405162461bcd60e51b81526004016103b09061286e565b50505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611d5557611d5561259d565b602090810291909101015292915050565b6001600160a01b0384163b156104bd5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611daa90899089908890889088906004016128b6565b602060405180830381600087803b158015611dc457600080fd5b505af1925050508015611df4575060408051601f3d908101601f19168201909252611df1918101906127ab565b60015b611e0057611c416127c8565b6001600160e01b0319811663f23a6e6160e01b14611d125760405162461bcd60e51b81526004016103b09061286e565b6040518060a001604052806005906020820280368337509192915050565b6001600160a01b0381168114610e5057600080fd5b60008060408385031215611e7657600080fd5b8235611e8181611e4e565b946020939093013593505050565b6001600160e01b031981168114610e5057600080fd5b600060208284031215611eb757600080fd5b8135611ec281611e8f565b9392505050565b600060208284031215611edb57600080fd5b5035919050565b60005b83811015611efd578181015183820152602001611ee5565b838111156117075750506000910152565b60008151808452611f26816020860160208601611ee2565b601f01601f19169290920160200192915050565b602081526000611ec26020830184611f0e565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611f8957611f89611f4d565b6040525050565b600067ffffffffffffffff821115611faa57611faa611f4d565b5060051b60200190565b600082601f830112611fc557600080fd5b81356020611fd282611f90565b604051611fdf8282611f63565b83815260059390931b8501820192828101915086841115611fff57600080fd5b8286015b8481101561201a5780358352918301918301612003565b509695505050505050565b600067ffffffffffffffff82111561203f5761203f611f4d565b50601f01601f191660200190565b600082601f83011261205e57600080fd5b813561206981612025565b6040516120768282611f63565b82815285602084870101111561208b57600080fd5b82602086016020830137600092810160200192909252509392505050565b600080600080600060a086880312156120c157600080fd5b85356120cc81611e4e565b945060208601356120dc81611e4e565b9350604086013567ffffffffffffffff808211156120f957600080fd5b61210589838a01611fb4565b9450606088013591508082111561211b57600080fd5b61212789838a01611fb4565b9350608088013591508082111561213d57600080fd5b5061214a8882890161204d565b9150509295509295909350565b60a08101818360005b600581101561218357815161ffff16835260209283019290910190600101612160565b50505092915050565b6000806040838503121561219f57600080fd5b823567ffffffffffffffff808211156121b757600080fd5b818501915085601f8301126121cb57600080fd5b813560206121d882611f90565b6040516121e58282611f63565b83815260059390931b850182019282810191508984111561220557600080fd5b948201945b8386101561222c57853561221d81611e4e565b8252948201949082019061220a565b9650508601359250508082111561224257600080fd5b5061224f85828601611fb4565b9150509250929050565b600081518084526020808501945080840160005b838110156122895781518752958201959082019060010161226d565b509495945050505050565b602081526000611ec26020830184612259565b6000602082840312156122b957600080fd5b8135611ec281611e4e565b6000806000604084860312156122d957600080fd5b83356122e481611e4e565b9250602084013567ffffffffffffffff8082111561230157600080fd5b818601915086601f83011261231557600080fd5b81358181111561232457600080fd5b8760208260051b850101111561233957600080fd5b6020830194508093505050509250925092565b8015158114610e5057600080fd5b6000806040838503121561236d57600080fd5b823561237881611e4e565b915060208301356123888161234c565b809150509250929050565b600080604083850312156123a657600080fd5b82356123b181611e4e565b9150602083013561238881611e4e565b600080600080600060a086880312156123d957600080fd5b85356123e481611e4e565b945060208601356123f481611e4e565b93506040860135925060608601359150608086013567ffffffffffffffff81111561241e57600080fd5b61214a8882890161204d565b6020808252600990820152682737ba1027bbb732b960b91b604082015260600190565b60006020828403121561245f57600080fd5b815167ffffffffffffffff81111561247657600080fd5b8201601f8101841361248757600080fd5b805161249281612025565b60405161249f8282611f63565b8281528660208486010111156124b457600080fd5b6124c5836020830160208701611ee2565b9695505050505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b6020808252600f908201526e139bdd081a5b9a5d1a585b1a5e9959608a1b604082015260600190565b60006020828403121561255957600080fd5b8151611ec281611e4e565b6020808252600990820152682737ba1030b236b4b760b91b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156125dd576125dd6125b3565b5060010190565b6000602082840312156125f657600080fd5b5051919050565b60006020828403121561260f57600080fd5b8151611ec28161234c565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008219821115612704576127046125b3565b500190565b60408152600061271c6040830185612259565b828103602084015261272e8185612259565b95945050505050565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0386811682528516602082015260a06040820181905260009061277990830186612259565b828103606084015261278b8186612259565b9050828103608084015261279f8185611f0e565b98975050505050505050565b6000602082840312156127bd57600080fd5b8151611ec281611e8f565b600060033d11156127e15760046000803e5060005160e01c5b90565b600060443d10156127f25790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561282257505050505090565b828501915081518181111561283a5750505050505090565b843d87010160208285010111156128545750505050505090565b61286360208286010187611f63565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906128f090830184611f0e565b97965050505050505056fea2646970667358221220b33ad1b6dd93656b7277445e944dcf966dd8e4f306ddfb0316dbd7b48fab44f164736f6c63430008090033

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

00000000000000000000000017f04c54798bf104ecc5caa31a2041e55aa0683b

-----Decoded View---------------
Arg [0] : metadataAddress (address): 0x17f04C54798bF104ECC5CAa31A2041E55aa0683b

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000017f04c54798bf104ecc5caa31a2041e55aa0683b


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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