Contract 0x6fe7c857C1B0E54492C8762f27e0a45CA7ff264B

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb1d021bbc4d24516563931025cf6264014ab5b61b3c696ba0a275d05a7c9660d0x60c06040258189252022-04-06 11:08:0186 days 8 hrs ago0x6f8b4b73c48627debaf6b6f552f1b8e77db7a667 IN  Create: ProxyReader0 MATIC0.006443132006 2.345474
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
ProxyReader

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : ProxyReader.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/MulticallUpgradeable.sol';

import './cns/ICNSRegistry.sol';
import './cns/IResolver.sol';
import './IDataReader.sol';
import './IRecordReader.sol';
import './IUNSRegistry.sol';
import './IRegistryReader.sol';

contract ProxyReader is ERC165Upgradeable, MulticallUpgradeable, IRegistryReader, IRecordReader, IDataReader {
    using AddressUpgradeable for address;

    string public constant NAME = 'UNS: Proxy Reader';
    string public constant VERSION = '0.2.3';

    IUNSRegistry private immutable _unsRegistry;
    ICNSRegistry private immutable _cnsRegistry;

    constructor(IUNSRegistry unsRegistry, ICNSRegistry cnsRegistry) {
        _unsRegistry = unsRegistry;
        _cnsRegistry = cnsRegistry;

        __Multicall_init_unchained();
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return
            interfaceId == type(IRegistryReader).interfaceId ||
            interfaceId == type(IRecordReader).interfaceId ||
            interfaceId == type(IDataReader).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function tokenURI(uint256 tokenId) external view override returns (string memory) {
        if (!_exists(tokenId)) {
            return '';
        }
        return _useUns(tokenId) ? _unsRegistry.tokenURI(tokenId) : _cnsRegistry.tokenURI(tokenId);
    }

    function isApprovedOrOwner(address spender, uint256 tokenId) external view override returns (bool) {
        if (!_exists(tokenId)) {
            return false;
        }
        return
            _useUns(tokenId)
                ? _unsRegistry.isApprovedOrOwner(spender, tokenId)
                : _cnsRegistry.isApprovedOrOwner(spender, tokenId);
    }

    function resolverOf(uint256 tokenId) external view override returns (address) {
        if (!_exists(tokenId)) {
            return address(0);
        }
        return _useUns(tokenId) ? _unsRegistry.resolverOf(tokenId) : _cnsRegistry.resolverOf(tokenId);
    }

    /**
     * @dev returns token id of child. The function is universal for all registries.
     */
    function childIdOf(uint256 tokenId, string calldata label) external view override returns (uint256) {
        return _unsRegistry.childIdOf(tokenId, label);
    }

    function balanceOf(address owner) external view override returns (uint256) {
        uint256 _balance = _unsRegistry.balanceOf(owner);
        if (address(_cnsRegistry) != address(0)) {
            _balance += _cnsRegistry.balanceOf(owner);
        }
        return _balance;
    }

    function ownerOf(uint256 tokenId) external view override returns (address) {
        return _ownerOf(tokenId);
    }

    function getApproved(uint256 tokenId) external view override returns (address) {
        if (!_exists(tokenId)) {
            return address(0);
        }
        return _useUns(tokenId) ? _unsRegistry.getApproved(tokenId) : _cnsRegistry.getApproved(tokenId);
    }

    function isApprovedForAll(address, address) external pure override returns (bool) {
        revert('ProxyReader: UNSUPPORTED_METHOD');
    }

    function exists(uint256 tokenId) external view override returns (bool) {
        return _exists(tokenId);
    }

    function reverseOf(address addr) external view override returns (uint256) {
        return _unsRegistry.reverseOf(addr);
    }

    function get(string calldata key, uint256 tokenId) external view override returns (string memory value) {
        if (_useUns(tokenId)) {
            return _unsRegistry.get(key, tokenId);
        } else {
            address resolver = _cnsResolverOf(tokenId);
            if (resolver.isContract()) {
                try IResolver(resolver).get(key, tokenId) returns (string memory _value) {
                    value = _value;
                } catch {}
            }
        }
    }

    function getMany(string[] calldata keys, uint256 tokenId) external view override returns (string[] memory values) {
        values = new string[](keys.length);
        if (_useUns(tokenId)) {
            return _unsRegistry.getMany(keys, tokenId);
        } else {
            address resolver = _cnsResolverOf(tokenId);
            if (resolver.isContract() && keys.length > 0) {
                try IResolver(resolver).getMany(keys, tokenId) returns (string[] memory _values) {
                    values = _values;
                } catch {}
            }
        }
    }

    function getByHash(uint256 keyHash, uint256 tokenId)
        external
        view
        override
        returns (string memory key, string memory value)
    {
        if (_useUns(tokenId)) {
            return _unsRegistry.getByHash(keyHash, tokenId);
        } else {
            address resolver = _cnsResolverOf(tokenId);
            if (resolver.isContract()) {
                try IResolver(resolver).getByHash(keyHash, tokenId) returns (string memory _key, string memory _value) {
                    (key, value) = (_key, _value);
                } catch {}
            }
        }
    }

    function getManyByHash(uint256[] calldata keyHashes, uint256 tokenId)
        external
        view
        override
        returns (string[] memory keys, string[] memory values)
    {
        keys = new string[](keyHashes.length);
        values = new string[](keyHashes.length);
        if (_useUns(tokenId)) {
            return _unsRegistry.getManyByHash(keyHashes, tokenId);
        } else {
            address resolver = _cnsResolverOf(tokenId);
            if (resolver.isContract() && keyHashes.length > 0) {
                try IResolver(resolver).getManyByHash(keyHashes, tokenId) returns (string[] memory _keys, string[] memory _values) {
                    (keys, values) = (_keys, _values);
                } catch {}
            }
        }
    }

    function getData(string[] calldata keys, uint256 tokenId)
        external
        view
        override
        returns (
            address resolver,
            address owner,
            string[] memory values
        )
    {
        return _getData(keys, tokenId);
    }

    function getDataForMany(string[] calldata keys, uint256[] calldata tokenIds)
        external
        view
        override
        returns (
            address[] memory resolvers,
            address[] memory owners,
            string[][] memory values
        )
    {
        resolvers = new address[](tokenIds.length);
        owners = new address[](tokenIds.length);
        values = new string[][](tokenIds.length);

        for (uint256 i = 0; i < tokenIds.length; i++) {
            (resolvers[i], owners[i], values[i]) = _getData(keys, tokenIds[i]);
        }
    }

    function getDataByHash(uint256[] calldata keyHashes, uint256 tokenId)
        external
        view
        override
        returns (
            address resolver,
            address owner,
            string[] memory keys,
            string[] memory values
        )
    {
        return _getDataByHash(keyHashes, tokenId);
    }

    function getDataByHashForMany(uint256[] calldata keyHashes, uint256[] calldata tokenIds)
        external
        view
        override
        returns (
            address[] memory resolvers,
            address[] memory owners,
            string[][] memory keys,
            string[][] memory values
        )
    {
        resolvers = new address[](tokenIds.length);
        owners = new address[](tokenIds.length);
        keys = new string[][](tokenIds.length);
        values = new string[][](tokenIds.length);

        for (uint256 i = 0; i < tokenIds.length; i++) {
            (resolvers[i], owners[i], keys[i], values[i]) = _getDataByHash(keyHashes, tokenIds[i]);
        }
    }

    function ownerOfForMany(uint256[] calldata tokenIds) external view override returns (address[] memory owners) {
        owners = new address[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            owners[i] = _ownerOf(tokenIds[i]);
        }
    }

    /**
     * @dev Returns registry address for specified token or zero address if token does not exist.
     */
    function registryOf(uint256 tokenId) external view returns (address) {
        if (_unsRegistry.exists(tokenId)) {
            return address(_unsRegistry);
        } else if (address(_cnsRegistry) != address(0) && _cnsOwnerOf(tokenId) != address(0)) {
            return address(_cnsRegistry);
        }
        return address(0);
    }

    function _exists(uint256 tokenId) private view returns (bool) {
        return _useUns(tokenId) ? _unsRegistry.exists(tokenId) : _cnsOwnerOf(tokenId) != address(0);
    }

    function _getData(string[] calldata keys, uint256 tokenId)
        private
        view
        returns (
            address resolver,
            address owner,
            string[] memory values
        )
    {
        values = new string[](keys.length);
        if (_useUns(tokenId)) {
            resolver = _unsRegistry.resolverOf(tokenId);
            owner = _unsOwnerOf(tokenId);
            values = _unsRegistry.getMany(keys, tokenId);
        } else {
            resolver = _cnsResolverOf(tokenId);
            owner = _cnsOwnerOf(tokenId);
            if (resolver.isContract() && keys.length > 0) {
                try IResolver(resolver).getMany(keys, tokenId) returns (string[] memory _values) {
                    values = _values;
                } catch {}
            }
        }
    }

    function _getDataByHash(uint256[] calldata keyHashes, uint256 tokenId)
        private
        view
        returns (
            address resolver,
            address owner,
            string[] memory keys,
            string[] memory values
        )
    {
        keys = new string[](keyHashes.length);
        values = new string[](keyHashes.length);
        if (_useUns(tokenId)) {
            resolver = _unsRegistry.resolverOf(tokenId);
            owner = _unsOwnerOf(tokenId);
            (keys, values) = _unsRegistry.getManyByHash(keyHashes, tokenId);
        } else {
            resolver = _cnsResolverOf(tokenId);
            owner = _cnsOwnerOf(tokenId);
            if (resolver.isContract() && keys.length > 0) {
                try IResolver(resolver).getManyByHash(keyHashes, tokenId) returns (string[] memory _keys, string[] memory _values) {
                    (keys, values) = (_keys, _values);
                } catch {}
            }
        }
    }

    function _useUns(uint256 tokenId) private view returns (bool) {
        return address(_cnsRegistry) == address(0) || _unsRegistry.exists(tokenId);
    }

    function _ownerOf(uint256 tokenId) private view returns (address) {
        return _useUns(tokenId) ? _unsOwnerOf(tokenId) : _cnsOwnerOf(tokenId);
    }

    function _cnsOwnerOf(uint256 tokenId) private view returns (address) {
        try _cnsRegistry.ownerOf(tokenId) returns (address _owner) {
            return _owner;
        } catch {
            return address(0);
        }
    }

    function _unsOwnerOf(uint256 tokenId) private view returns (address) {
        try _unsRegistry.ownerOf(tokenId) returns (address _owner) {
            return _owner;
        } catch {
            return address(0);
        }
    }

    function _cnsResolverOf(uint256 tokenId) private view returns (address) {
        try _cnsRegistry.resolverOf(tokenId) returns (address _resolver) {
            return _resolver;
        } catch {
            return address(0);
        }
    }
}

File 2 of 22 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

File 3 of 22 : MulticallUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
abstract contract MulticallUpgradeable is Initializable {
    function __Multicall_init() internal initializer {
        __Multicall_init_unchained();
    }

    function __Multicall_init_unchained() internal initializer {
    }
    /**
    * @dev Receives and executes a batch of function calls on this contract.
    */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint i = 0; i < data.length; i++) {
            results[i] = _functionDelegateCall(address(this), data[i]);
        }
        return results;
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
    uint256[50] private __gap;
}

File 4 of 22 : ICNSRegistry.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol';

interface ICNSRegistry is IERC721MetadataUpgradeable {
    function isApprovedOrOwner(address spender, uint256 tokenId) external view returns (bool);

    function resolverOf(uint256 tokenId) external view returns (address);

    function childIdOf(uint256 tokenId, string calldata label) external view returns (uint256);

    function burn(uint256 tokenId) external;
}

File 5 of 22 : IResolver.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

interface IResolver {
    function preconfigure(
        string[] memory keys,
        string[] memory values,
        uint256 tokenId
    ) external;

    function get(string calldata key, uint256 tokenId) external view returns (string memory);

    function getMany(string[] calldata keys, uint256 tokenId) external view returns (string[] memory);

    function getByHash(uint256 keyHash, uint256 tokenId) external view returns (string memory key, string memory value);

    function getManyByHash(uint256[] calldata keyHashes, uint256 tokenId)
        external
        view
        returns (string[] memory keys, string[] memory values);

    function set(
        string calldata key,
        string calldata value,
        uint256 tokenId
    ) external;
}

File 6 of 22 : IDataReader.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

interface IDataReader {
    /**
     * @dev Function to get resolver address, owner address and requested records.
     * @param keys Keys to query values.
     * @param tokenId The token id to fetch.
     */
    function getData(string[] calldata keys, uint256 tokenId)
        external
        view
        returns (
            address resolver,
            address owner,
            string[] memory values
        );

    /**
     * @dev Function to get resolver address, owner address and requested records for array of tokens.
     * @param keys Keys to query values.
     * @param tokenIds Array of token ids to fetch.
     */
    function getDataForMany(string[] calldata keys, uint256[] calldata tokenIds)
        external
        view
        returns (
            address[] memory resolvers,
            address[] memory owners,
            string[][] memory values
        );

    /**
     * @dev Function to get resolver address, owner address and requested records.
     * @param keyHashes Key hashes to query values.
     * @param tokenId The token id to fetch.
     */
    function getDataByHash(uint256[] calldata keyHashes, uint256 tokenId)
        external
        view
        returns (
            address resolver,
            address owner,
            string[] memory keys,
            string[] memory values
        );

    /**
     * @dev Function to get resolver address, owner address and requested records for array of tokens.
     * @param keyHashes Key hashes to query values.
     * @param tokenIds Array of token ids to fetch.
     */
    function getDataByHashForMany(uint256[] calldata keyHashes, uint256[] calldata tokenIds)
        external
        view
        returns (
            address[] memory resolvers,
            address[] memory owners,
            string[][] memory keys,
            string[][] memory values
        );

    /**
     * @param tokenIds Array of token ids to fetch.
     */
    function ownerOfForMany(uint256[] calldata tokenIds) external view returns (address[] memory owners);
}

File 7 of 22 : IRecordReader.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

interface IRecordReader {
    /**
     * @dev Function to get record.
     * @param key The key to query the value of.
     * @param tokenId The token id to fetch.
     * @return The value string.
     */
    function get(string calldata key, uint256 tokenId) external view returns (string memory);

    /**
     * @dev Function to get multiple record.
     * @param keys The keys to query the value of.
     * @param tokenId The token id to fetch.
     * @return The values.
     */
    function getMany(string[] calldata keys, uint256 tokenId) external view returns (string[] memory);

    /**
     * @dev Function get value by provied key hash.
     * @param keyHash The key to query the value of.
     * @param tokenId The token id to set.
     */
    function getByHash(uint256 keyHash, uint256 tokenId) external view returns (string memory key, string memory value);

    /**
     * @dev Function get values by provied key hashes.
     * @param keyHashes The key to query the value of.
     * @param tokenId The token id to set.
     */
    function getManyByHash(uint256[] calldata keyHashes, uint256 tokenId)
        external
        view
        returns (string[] memory keys, string[] memory values);
}

File 8 of 22 : IUNSRegistry.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol';

import './IERC1967.sol';
import './IRecordStorage.sol';
import './IReverseRegistry.sol';
import './IRootRegistry.sol';
import './IChildRegistry.sol';

interface IUNSRegistry is
    IERC1967,
    IERC721MetadataUpgradeable,
    IERC721ReceiverUpgradeable,
    IRecordStorage,
    IReverseRegistry,
    IRootRegistry,
    IChildRegistry
{
    event NewURI(uint256 indexed tokenId, string uri);

    event NewURIPrefix(string prefix);

    /**
     * @dev Function to set the token URI Prefix for all tokens.
     * @param prefix string URI to assign
     */
    function setTokenURIPrefix(string calldata prefix) external;

    /**
     * @dev Returns whether the given spender can transfer a given token ID.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function isApprovedOrOwner(address spender, uint256 tokenId) external view returns (bool);

    /**
     * @dev Gets the resolver of the specified token ID.
     * @param tokenId uint256 ID of the token to query the resolver of
     * @return address currently marked as the resolver of the given token ID
     */
    function resolverOf(uint256 tokenId) external view returns (address);

    /**
     * @dev Provides child token (subdomain) of provided tokenId.
     * @param tokenId uint256 ID of the token
     * @param label label of subdomain (for `aaa.bbb.crypto` it will be `aaa`)
     */
    function childIdOf(uint256 tokenId, string calldata label) external pure returns (uint256);

    /**
     * @dev Existence of token.
     * @param tokenId uint256 ID of the token
     */
    function exists(uint256 tokenId) external override view returns (bool);

    /**
     * @dev Transfer domain ownership without resetting domain records.
     * @param to address of new domain owner
     * @param tokenId uint256 ID of the token to be transferred
     */
    function setOwner(address to, uint256 tokenId) external;

    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;

    /**
     * @dev Mints token.
     * @param to address to mint the new SLD to.
     * @param tokenId id of token.
     * @param uri domain URI.
     */
    function mint(
        address to,
        uint256 tokenId,
        string calldata uri
    ) external;

    /**
     * @dev Safely mints token.
     * Implements a ERC721Reciever check unlike mint.
     * @param to address to mint the new SLD to.
     * @param tokenId id of token.
     * @param uri domain URI.
     */
    function safeMint(
        address to,
        uint256 tokenId,
        string calldata uri
    ) external;

    /**
     * @dev Safely mints token.
     * Implements a ERC721Reciever check unlike mint.
     * @param to address to mint the new SLD to.
     * @param tokenId id of token.
     * @param uri domain URI.
     * @param data bytes data to send along with a safe transfer check
     */
    function safeMint(
        address to,
        uint256 tokenId,
        string calldata uri,
        bytes calldata data
    ) external;

    /**
     * @dev Mints token with records
     * @param to address to mint the new SLD to
     * @param tokenId id of token
     * @param keys New record keys
     * @param values New record values
     * @param uri domain URI
     */
    function mintWithRecords(
        address to,
        uint256 tokenId,
        string calldata uri,
        string[] calldata keys,
        string[] calldata values
    ) external;

    /**
     * @dev Safely mints token with records
     * @param to address to mint the new SLD to
     * @param tokenId id of token
     * @param keys New record keys
     * @param values New record values
     * @param uri domain URI
     */
    function safeMintWithRecords(
        address to,
        uint256 tokenId,
        string calldata uri,
        string[] calldata keys,
        string[] calldata values
    ) external;

    /**
     * @dev Safely mints token with records
     * @param to address to mint the new SLD to
     * @param tokenId id of token
     * @param keys New record keys
     * @param values New record values
     * @param uri domain URI
     * @param data bytes data to send along with a safe transfer check
     */
    function safeMintWithRecords(
        address to,
        uint256 tokenId,
        string calldata uri,
        string[] calldata keys,
        string[] calldata values,
        bytes calldata data
    ) external;

    /**
     * @dev Stores CNS registry address.
     * It's one-time operation required to set CNS registry address.
     * UNS registry allows to receive ERC721 tokens only from CNS registry,
     * by supporting ERC721Receiver interface.
     * @param registry address of CNS registry contract
     */
    function setCNSRegistry(address registry) external;
}

File 9 of 22 : IRegistryReader.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

interface IRegistryReader {
    function tokenURI(uint256 tokenId) external view returns (string memory);

    /**
     * @dev Returns whether the given spender can transfer a given token ID. Registry related function.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function isApprovedOrOwner(address spender, uint256 tokenId) external view returns (bool);

    /**
     * @dev Gets the resolver of the specified token ID. Registry related function.
     * @param tokenId uint256 ID of the token to query the resolver of
     * @return address currently marked as the resolver of the given token ID
     */
    function resolverOf(uint256 tokenId) external view returns (address);

    /**
     * @dev Provides child token (subdomain) of provided tokenId. Registry related function.
     * @param tokenId uint256 ID of the token
     * @param label label of subdomain (for `aaa.bbb.crypto` it will be `aaa`)
     */
    function childIdOf(uint256 tokenId, string calldata label) external view returns (uint256);

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

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`. ERC721 related function.
     */
    function ownerOf(uint256 tokenId) external view returns (address);

    /**
     * @dev ERC721 related function.
     */
    function getApproved(uint256 tokenId) external view returns (address);

    /**
     * @dev ERC721 related function.
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Returns whether token exists or not.
     */
    function exists(uint256 tokenId) external view returns (bool);

    /**
     * @dev Returns the reverse record for a given account's reverse record.
     * @param addr The address of the reverse record.
     * @return tokenId The token associated with the address.
     */
    function reverseOf(address addr) external view returns (uint256);
}

File 10 of 22 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 11 of 22 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 12 of 22 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 22 : IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 14 of 22 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 22 : IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 16 of 22 : IERC1967.sol
// @author Unstoppable Domains, Inc.
// @date December 22nd, 2021

pragma solidity ^0.8.0;

interface IERC1967 {
    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);
}

File 17 of 22 : IRecordStorage.sol
// @author Unstoppable Domains, Inc.
// @date June 16th, 2021

pragma solidity ^0.8.0;

import './IRecordReader.sol';

interface IRecordStorage is IRecordReader {
    event Set(uint256 indexed tokenId, string indexed keyIndex, string indexed valueIndex, string key, string value);

    event NewKey(uint256 indexed tokenId, string indexed keyIndex, string key);

    event ResetRecords(uint256 indexed tokenId);

    /**
     * @dev Set record by key
     * @param key The key set the value of
     * @param value The value to set key to
     * @param tokenId ERC-721 token id to set
     */
    function set(
        string calldata key,
        string calldata value,
        uint256 tokenId
    ) external;

    /**
     * @dev Set records by keys
     * @param keys The keys set the values of
     * @param values Records values
     * @param tokenId ERC-721 token id of the domain
     */
    function setMany(
        string[] memory keys,
        string[] memory values,
        uint256 tokenId
    ) external;

    /**
     * @dev Set record by key hash
     * @param keyHash The key hash set the value of
     * @param value The value to set key to
     * @param tokenId ERC-721 token id to set
     */
    function setByHash(
        uint256 keyHash,
        string calldata value,
        uint256 tokenId
    ) external;

    /**
     * @dev Set records by key hashes
     * @param keyHashes The key hashes set the values of
     * @param values Records values
     * @param tokenId ERC-721 token id of the domain
     */
    function setManyByHash(
        uint256[] calldata keyHashes,
        string[] calldata values,
        uint256 tokenId
    ) external;

    /**
     * @dev Reset all domain records and set new ones
     * @param keys New record keys
     * @param values New record values
     * @param tokenId ERC-721 token id of the domain
     */
    function reconfigure(
        string[] memory keys,
        string[] memory values,
        uint256 tokenId
    ) external;

    /**
     * @dev Function to reset all existing records on a domain.
     * @param tokenId ERC-721 token id to set.
     */
    function reset(uint256 tokenId) external;
}

File 18 of 22 : IReverseRegistry.sol
// @author Unstoppable Domains, Inc.
// @date March 29th, 2022

pragma solidity ^0.8.0;

/**
 * @title Reverse registry interface
 */
interface IReverseRegistry {
    /**
     * @dev Emitted when the reverse record is set.
     */
    event SetReverse(address indexed addr, uint256 indexed tokenId);

    /**
     * @dev Emitted when the reverse record is removed.
     */
    event RemoveReverse(address indexed addr);

    /**
     * @dev Sets the reverse record associated with the calling account.
     * @param tokenId The token to set for this address.
     */
    function setReverse(uint256 tokenId) external;

    /**
     * @dev Removes the reverse record associated with the calling account.
     */
    function removeReverse() external;

    /**
     * @dev Returns the reverse record for a given account's reverse record.
     * @param addr The address of the reverse record.
     * @return tokenId The token associated with the address.
     */
    function reverseOf(address addr) external view returns (uint256);
}

File 19 of 22 : IRootRegistry.sol
// @author Unstoppable Domains, Inc.
// @date December 21st, 2021

pragma solidity ^0.8.0;

import './@maticnetwork/IMintableERC721.sol';

interface IRootRegistry is IMintableERC721 {
    /**
     * @dev Stores RootChainManager address.
     * It's one-time operation required to set RootChainManager address.
     * RootChainManager is a contract responsible for bridging Ethereum
     * and Polygon networks.
     * @param rootChainManager address of RootChainManager contract
     */
    function setRootChainManager(address rootChainManager) external;

    /**
     * @dev Deposits token to Polygon through RootChainManager contract.
     * @param tokenId id of token
     */
    function depositToPolygon(uint256 tokenId) external;

    /**
     * @dev Exit from Polygon through RootChainManager contract.
     *      It withdraws token with records update.
     * @param tokenId id of token
     * @param keys New record keys
     * @param values New record values
     */
    function withdrawFromPolygon(
        bytes calldata inputData,
        uint256 tokenId,
        string[] calldata keys,
        string[] calldata values
    ) external;
}

File 20 of 22 : IChildRegistry.sol
// @author Unstoppable Domains, Inc.
// @date December 21st, 2021

pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol';

import './@maticnetwork/IChildToken.sol';

interface IChildRegistry is IERC721Upgradeable, IChildToken {
    event WithdrawnBatch(address indexed user, uint256[] tokenIds);

    /**
     * @notice called when user wants to withdraw token back to root chain
     * @dev Should handle withraw by burning user's token.
     * This transaction will be verified when exiting on root chain
     * @param tokenId tokenId to withdraw
     */
    function withdraw(uint256 tokenId) external;

    /**
     * @notice called when user wants to withdraw multiple tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param tokenIds tokenId list to withdraw
     */
    function withdrawBatch(uint256[] calldata tokenIds) external;

    /**
     * @notice called when user wants to withdraw token back to root chain with token URI
     * @dev Should handle withraw by burning user's token.
     * This transaction will be verified when exiting on root chain
     * @param tokenId tokenId to withdraw
     */
    function withdrawWithMetadata(uint256 tokenId) external;
}

File 21 of 22 : IMintableERC721.sol
pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol';

interface IMintableERC721 is IERC721Upgradeable {
    /**
     * @notice called by predicate contract to mint tokens while withdrawing
     * @dev Should be callable only by MintableERC721Predicate
     * Make sure minting is done only by this function
     * @param user user address for whom token is being minted
     * @param tokenId tokenId being minted
     */
    function mint(address user, uint256 tokenId) external;

    /**
     * @notice called by predicate contract to mint tokens while withdrawing with metadata from L2
     * @dev Should be callable only by MintableERC721Predicate
     * Make sure minting is only done either by this function/ 👆
     * @param user user address for whom token is being minted
     * @param tokenId tokenId being minted
     * @param metaData Associated token metadata, to be decoded & set using `setTokenMetadata`
     */
    function mint(address user, uint256 tokenId, bytes calldata metaData) external;

    /**
     * @notice check if token already exists, return true if it does exist
     * @dev this check will be used by the predicate to determine if the token needs to be minted or transfered
     * @param tokenId tokenId being checked
     */
    function exists(uint256 tokenId) external view returns (bool);
}

File 22 of 22 : IChildToken.sol
pragma solidity ^0.8.0;

interface IChildToken {
    /**
     * @notice called when token is deposited on root chain
     * @dev Should be callable only by ChildChainManager
     * Should handle deposit by minting the required tokenId for user
     * Make sure minting is done only by this function
     * @param user user address for whom deposit is being done
     * @param depositData abi encoded tokenId
     */
    function deposit(address user, bytes calldata depositData) external;
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IUNSRegistry","name":"unsRegistry","type":"address"},{"internalType":"contract ICNSRegistry","name":"cnsRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"label","type":"string"}],"name":"childIdOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"get","outputs":[{"internalType":"string","name":"value","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"keyHash","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getByHash","outputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"value","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getData","outputs":[{"internalType":"address","name":"resolver","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"keyHashes","type":"uint256[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDataByHash","outputs":[{"internalType":"address","name":"resolver","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"keyHashes","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getDataByHashForMany","outputs":[{"internalType":"address[]","name":"resolvers","type":"address[]"},{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"string[][]","name":"keys","type":"string[][]"},{"internalType":"string[][]","name":"values","type":"string[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getDataForMany","outputs":[{"internalType":"address[]","name":"resolvers","type":"address[]"},{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"string[][]","name":"values","type":"string[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMany","outputs":[{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"keyHashes","type":"uint256[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getManyByHash","outputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerOfForMany","outputs":[{"internalType":"address[]","name":"owners","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"registryOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resolverOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"reverseOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b50604051620032d3380380620032d38339810160408190526200003491620000e4565b6001600160601b0319606083811b821660805282901b1660a0526200005862000060565b505062000186565b600054610100900460ff16806200007a575060005460ff16155b620000a25760405162461bcd60e51b8152600401620000999062000122565b60405180910390fd5b600054610100900460ff16158015620000ce576000805460ff1961ff0019909116610100171660011790555b8015620000e1576000805461ff00191690555b50565b60008060408385031215620000f7578182fd5b8251620001048162000170565b6020840151909250620001178162000170565b809150509250929050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160a01b0381168114620000e157600080fd5b60805160601c60a05160601c6130566200027d6000396000818161048e0152818161091901528181610d2301528181610d670152818161140e0152818161145e015281816115e3015281816119bf01528181611f0101528181611f9601526122f401526000818161052f01528181610637015281816107b3015281816109bc01528181610a8a01528181610bef01528181610c8501528181610e100152818161135b015281816113e80152818161162f0152818161174401528181611a5f01528181611c2801528181611cd201528181611e7801528181611f47015281816120d30152818161217d01526123f601526130566000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063869b8884116100c3578063b3f9e4cb1161007c578063b3f9e4cb1461034b578063b85afd281461035e578063c15ae7cf1461037f578063c87b56dd1461039f578063e985e9c5146103b2578063ffa1ad74146103c557610158565b8063869b8884146102a957806391015f6b146102cc578063933c051d146102ee578063a3f4df7e14610310578063a81ce6f914610318578063ac9650d81461032b57610158565b80634f558e79116101155780634f558e791461021c5780636352211e1461022f578063672b9f811461024257806368b62d321461026357806370a08231146102835780637e37479e1461029657610158565b806301ffc9a71461015d5780630328075514610186578063081812fc146101a95780631bd8cc1a146101c95780631be5e7ed146101e9578063430c208114610209575b600080fd5b61017061016b366004612874565b6103cd565b60405161017d9190612df9565b60405180910390f35b61019961019436600461282b565b610430565b60405161017d9493929190612b81565b6101bc6101b7366004612959565b610453565b60405161017d9190612b41565b6101dc6101d7366004612701565b6105b4565b60405161017d9190612d80565b6101fc6101f736600461289c565b61078c565b60405161017d9190612e28565b61017061021736600461262f565b6108de565b61017061022a366004612959565b610a4c565b6101bc61023d366004612959565b610a57565b6102556102503660046129d2565b610a62565b60405161017d929190612e3b565b610276610271366004612989565b610bd5565b60405161017d9190612edd565b6102766102913660046125bf565b610c80565b6102766102a43660046125bf565b610df6565b6102bc6102b73660046127dc565b610e95565b60405161017d9493929190612c39565b6102df6102da366004612701565b611109565b60405161017d93929190612b55565b6103016102fc366004612699565b611129565b60405161017d93929190612bf6565b6101fc611314565b6101bc610326366004612959565b611341565b61033e61033936600461265a565b61148a565b60405161017d9190612c86565b6101bc610359366004612959565b6115a8565b61037161036c36600461282b565b611664565b60405161017d929190612d93565b61039261038d36600461265a565b61189f565b60405161017d9190612be3565b6101fc6103ad366004612959565b611977565b6101706103c03660046125f7565b611ae8565b6101fc611b0b565b60006001600160e01b031982166324cd4b9560e21b14806103fe57506001600160e01b03198216636fa624af60e11b145b8061041957506001600160e01b031982166308da864d60e31b145b80610428575061042882611b2c565b90505b919050565b600080606080610441878787611b45565b93509350935093505b93509350935093565b600061045e82611e37565b61046a5750600061042b565b61047382611efd565b6105185760405163020604bf60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063081812fc906104c3908590600401612edd565b60206040518083038186803b1580156104db57600080fd5b505afa1580156104ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051391906125db565b610428565b60405163020604bf60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063081812fc90610564908590600401612edd565b60206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042891906125db565b6060826001600160401b038111156105dc57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561060f57816020015b60608152602001906001900390816105fa5790505b50905061061b82611efd565b156106cb57604051630dec660d60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631bd8cc1a9061067090879087908790600401612ce6565b60006040518083038186803b15801561068857600080fd5b505afa15801561069c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106c4919081019061274a565b9050610785565b60006106d683611f7c565b90506106ea816001600160a01b0316612026565b80156106f557508315155b1561078357604051630dec660d60e11b81526001600160a01b03821690631bd8cc1a9061072a90889088908890600401612ce6565b60006040518083038186803b15801561074257600080fd5b505afa92505050801561077757506040513d6000823e601f3d908101601f19168201604052610774919081019061274a565b60015b61078057610783565b91505b505b9392505050565b606061079782611efd565b1561084057604051631be5e7ed60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631be5e7ed906107ec90879087908790600401612e04565b60006040518083038186803b15801561080457600080fd5b505afa158015610818573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106c491908101906128d1565b600061084b83611f7c565b905061085f816001600160a01b0316612026565b1561078357604051631be5e7ed60e01b81526001600160a01b03821690631be5e7ed9061089490889088908890600401612e04565b60006040518083038186803b1580156108ac57600080fd5b505afa92505050801561077757506040513d6000823e601f3d908101601f1916820160405261077491908101906128d1565b60006108e982611e37565b6108f557506000610a46565b6108fe82611efd565b6109a55760405163430c208160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063430c2081906109509086908690600401612bca565b60206040518083038186803b15801561096857600080fd5b505afa15801561097c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a09190612854565b610a43565b60405163430c208160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063430c2081906109f39086908690600401612bca565b60206040518083038186803b158015610a0b57600080fd5b505afa158015610a1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a439190612854565b90505b92915050565b600061042882611e37565b60006104288261202c565b606080610a6e83611efd565b15610b1e5760405163672b9f8160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063672b9f8190610ac19087908790600401612f00565b60006040518083038186803b158015610ad957600080fd5b505afa158015610aed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b159190810190612903565b91509150610bce565b6000610b2984611f7c565b9050610b3d816001600160a01b0316612026565b15610bcc5760405163672b9f8160e01b81526001600160a01b0382169063672b9f8190610b709088908890600401612f00565b60006040518083038186803b158015610b8857600080fd5b505afa925050508015610bbd57506040513d6000823e601f3d908101601f19168201604052610bba9190810190612903565b60015b610bc657610bcc565b90935091505b505b9250929050565b60405163345b169960e11b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906368b62d3290610c2890879087908790600401612ee6565b60206040518083038186803b158015610c4057600080fd5b505afa158015610c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c789190612971565b949350505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231846040518263ffffffff1660e01b8152600401610ccf9190612b41565b60206040518083038186803b158015610ce757600080fd5b505afa158015610cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1f9190612971565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615610428576040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610d9c908690600401612b41565b60206040518083038186803b158015610db457600080fd5b505afa158015610dc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dec9190612971565b610a439082612f7b565b604051633f1ba3cf60e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637e37479e90610e45908590600401612b41565b60206040518083038186803b158015610e5d57600080fd5b505afa158015610e71573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104289190612971565b6060808080846001600160401b03811115610ec057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ee9578160200160208202803683370190505b509350846001600160401b03811115610f1257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f3b578160200160208202803683370190505b509250846001600160401b03811115610f6457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f9757816020015b6060815260200190600190039081610f825790505b509150846001600160401b03811115610fc057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ff357816020015b6060815260200190600190039081610fde5790505b50905060005b858110156110fd57611032898989898581811061102657634e487b7160e01b600052603260045260246000fd5b90506020020135611b45565b88858151811061105257634e487b7160e01b600052603260045260246000fd5b6020026020010188868151811061107957634e487b7160e01b600052603260045260246000fd5b602002602001018887815181106110a057634e487b7160e01b600052603260045260246000fd5b602002602001018888815181106110c757634e487b7160e01b600052603260045260246000fd5b6020908102919091010193909352929091526001600160a01b0392831690915291169052806110f581612fc3565b915050610ff9565b50945094509450949050565b600080606061111986868661204d565b9250925092505b93509350939050565b60608080836001600160401b0381111561115357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561117c578160200160208202803683370190505b509250836001600160401b038111156111a557634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111ce578160200160208202803683370190505b509150836001600160401b038111156111f757634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561122a57816020015b60608152602001906001900390816112155790505b50905060005b8481101561130957611269888888888581811061125d57634e487b7160e01b600052603260045260246000fd5b9050602002013561204d565b86848151811061128957634e487b7160e01b600052603260045260246000fd5b602002602001018685815181106112b057634e487b7160e01b600052603260045260246000fd5b602002602001018686815181106112d757634e487b7160e01b600052603260045260246000fd5b60209081029190910101929092526001600160a01b03928316909152911690528061130181612fc3565b915050611230565b509450945094915050565b604051806040016040528060118152602001702aa7299d10283937bc3c902932b0b232b960791b81525081565b604051634f558e7960e01b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f558e7990611390908590600401612edd565b60206040518083038186803b1580156113a857600080fd5b505afa1580156113bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e09190612854565b1561140c57507f000000000000000000000000000000000000000000000000000000000000000061042b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316158015906114565750600061144a836122da565b6001600160a01b031614155b1561148257507f000000000000000000000000000000000000000000000000000000000000000061042b565b506000919050565b6060816001600160401b038111156114b257634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156114e557816020015b60608152602001906001900390816114d05790505b50905060005b828110156115a1576115633085858481811061151757634e487b7160e01b600052603260045260246000fd5b90506020028101906115299190612f0e565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061232992505050565b82828151811061158357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061159990612fc3565b9150506114eb565b5092915050565b60006115b382611e37565b6115bf5750600061042b565b6115c882611efd565b6116185760405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb906104c3908590600401612edd565b60405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90610564908590600401612edd565b606080836001600160401b0381111561168d57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156116c057816020015b60608152602001906001900390816116ab5790505b509150836001600160401b038111156116e957634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561171c57816020015b60608152602001906001900390816117075790505b50905061172883611efd565b156117da5760405163170b5fa560e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b85afd289061177d90889088908890600401612db8565b60006040518083038186803b15801561179557600080fd5b505afa1580156117a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117d1919081019061277c565b91509150611897565b60006117e584611f7c565b90506117f9816001600160a01b0316612026565b801561180457508415155b156118955760405163170b5fa560e31b81526001600160a01b0382169063b85afd289061183990899089908990600401612db8565b60006040518083038186803b15801561185157600080fd5b505afa92505050801561188657506040513d6000823e601f3d908101601f19168201604052611883919081019061277c565b60015b61188f57611895565b90935091505b505b935093915050565b6060816001600160401b038111156118c757634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156118f0578160200160208202803683370190505b50905060005b828110156115a15761192d84848381811061192157634e487b7160e01b600052603260045260246000fd5b9050602002013561202c565b82828151811061194d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061196f81612fc3565b9150506118f6565b606061198282611e37565b61199b575060408051602081019091526000815261042b565b6119a482611efd565b611a485760405163c87b56dd60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c87b56dd906119f4908590600401612edd565b60006040518083038186803b158015611a0c57600080fd5b505afa158015611a20573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261051391908101906128d1565b60405163c87b56dd60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c87b56dd90611a94908590600401612edd565b60006040518083038186803b158015611aac57600080fd5b505afa158015611ac0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261042891908101906128d1565b600060405162461bcd60e51b8152600401611b0290612e60565b60405180910390fd5b60405180604001604052806005815260200164302e322e3360d81b81525081565b6001600160e01b031981166301ffc9a760e01b14919050565b600080606080856001600160401b03811115611b7157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ba457816020015b6060815260200190600190039081611b8f5790505b509150856001600160401b03811115611bcd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c0057816020015b6060815260200190600190039081611beb5790505b509050611c0c85611efd565b15611d695760405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90611c5d908890600401612edd565b60206040518083038186803b158015611c7557600080fd5b505afa158015611c89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cad91906125db565b9350611cb8856123dc565b60405163170b5fa560e31b81529093506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b85afd2890611d0b908a908a908a90600401612db8565b60006040518083038186803b158015611d2357600080fd5b505afa158015611d37573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d5f919081019061277c565b909250905061044a565b611d7285611f7c565b9350611d7d856122da565b9250611d91846001600160a01b0316612026565b8015611d9e575060008251115b1561044a5760405163170b5fa560e31b81526001600160a01b0385169063b85afd2890611dd3908a908a908a90600401612db8565b60006040518083038186803b158015611deb57600080fd5b505afa925050508015611e2057506040513d6000823e601f3d908101601f19168201604052611e1d919081019061277c565b60015b611e295761044a565b909250905093509350935093565b6000611e4282611efd565b611e61576000611e51836122da565b6001600160a01b03161415610428565b604051634f558e7960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f558e7990611ead908590600401612edd565b60206040518083038186803b158015611ec557600080fd5b505afa158015611ed9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104289190612854565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615806104285750604051634f558e7960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f558e7990611ead908590600401612edd565b60405163b3f9e4cb60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90611fcb908590600401612edd565b60206040518083038186803b158015611fe357600080fd5b505afa925050508015612013575060408051601f3d908101601f19168201909252612010918101906125db565b60015b61201f5750600061042b565b905061042b565b3b151590565b600061203782611efd565b61204457610513826122da565b610428826123dc565b6000806060846001600160401b0381111561207857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156120ab57816020015b60608152602001906001900390816120965790505b5090506120b784611efd565b156122115760405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90612108908790600401612edd565b60206040518083038186803b15801561212057600080fd5b505afa158015612134573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215891906125db565b9250612163846123dc565b604051630dec660d60e11b81529092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631bd8cc1a906121b690899089908990600401612ce6565b60006040518083038186803b1580156121ce57600080fd5b505afa1580156121e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261220a919081019061274a565b9050611120565b61221a84611f7c565b9250612225846122da565b9150612239836001600160a01b0316612026565b801561224457508415155b1561112057604051630dec660d60e11b81526001600160a01b03841690631bd8cc1a9061227990899089908990600401612ce6565b60006040518083038186803b15801561229157600080fd5b505afa9250505080156122c657506040513d6000823e601f3d908101601f191682016040526122c3919081019061274a565b60015b6122cf57611120565b905093509350939050565b6040516331a9108f60e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90611fcb908590600401612edd565b606061233483612026565b6123505760405162461bcd60e51b8152600401611b0290612e97565b600080846001600160a01b03168460405161236b9190612b25565b600060405180830381855af49150503d80600081146123a6576040519150601f19603f3d011682016040523d82523d6000602084013e6123ab565b606091505b50915091506123d382826040518060600160405280602781526020016130236027913961242b565b95945050505050565b6040516331a9108f60e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90611fcb908590600401612edd565b6060831561243a575081610785565b82511561244a5782518084602001fd5b8160405162461bcd60e51b8152600401611b029190612e28565b60008083601f840112612475578182fd5b5081356001600160401b0381111561248b578182fd5b6020830191508360208083028501011115610bce57600080fd5b600082601f8301126124b5578081fd5b815160206001600160401b038211156124d0576124d0612ff4565b6124dd8182840201612f52565b82815281810190858301855b8581101561251257612500898684518b010161255e565b845292840192908401906001016124e9565b5090979650505050505050565b60008083601f840112612530578182fd5b5081356001600160401b03811115612546578182fd5b602083019150836020828501011115610bce57600080fd5b600082601f83011261256e578081fd5b81516001600160401b0381111561258757612587612ff4565b61259a601f8201601f1916602001612f52565b8181528460208386010111156125ae578283fd5b610c78826020830160208701612f93565b6000602082840312156125d0578081fd5b81356107858161300a565b6000602082840312156125ec578081fd5b81516107858161300a565b60008060408385031215612609578081fd5b82356126148161300a565b915060208301356126248161300a565b809150509250929050565b60008060408385031215612641578182fd5b823561264c8161300a565b946020939093013593505050565b6000806020838503121561266c578182fd5b82356001600160401b03811115612681578283fd5b61268d85828601612464565b90969095509350505050565b600080600080604085870312156126ae578182fd5b84356001600160401b03808211156126c4578384fd5b6126d088838901612464565b909650945060208701359150808211156126e8578384fd5b506126f587828801612464565b95989497509550505050565b600080600060408486031215612715578283fd5b83356001600160401b0381111561272a578384fd5b61273686828701612464565b909790965060209590950135949350505050565b60006020828403121561275b578081fd5b81516001600160401b03811115612770578182fd5b610c78848285016124a5565b6000806040838503121561278e578182fd5b82516001600160401b03808211156127a4578384fd5b6127b0868387016124a5565b935060208501519150808211156127c5578283fd5b506127d2858286016124a5565b9150509250929050565b600080600080604085870312156127f1578081fd5b84356001600160401b0380821115612807578283fd5b61281388838901612464565b909650945060208701359150808211156126e8578283fd5b60008060006040848603121561283f578081fd5b83356001600160401b0381111561272a578182fd5b600060208284031215612865578081fd5b81518015158114610785578182fd5b600060208284031215612885578081fd5b81356001600160e01b031981168114610785578182fd5b6000806000604084860312156128b0578081fd5b83356001600160401b038111156128c5578182fd5b6127368682870161251f565b6000602082840312156128e2578081fd5b81516001600160401b038111156128f7578182fd5b610c788482850161255e565b60008060408385031215612915578182fd5b82516001600160401b038082111561292b578384fd5b6129378683870161255e565b9350602085015191508082111561294c578283fd5b506127d28582860161255e565b60006020828403121561296a578081fd5b5035919050565b600060208284031215612982578081fd5b5051919050565b60008060006040848603121561299d578081fd5b8335925060208401356001600160401b038111156129b9578182fd5b6129c58682870161251f565b9497909650939450505050565b600080604083850312156129e4578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015612a2b5781516001600160a01b031687529582019590820190600101612a06565b509495945050505050565b6000815180845260208085018081965082840281019150828601855b85811015612a7c578284038952612a6a848351612a89565b98850198935090840190600101612a52565b5091979650505050505050565b6000815180845260208085018081965082840281019150828601855b85811015612a7c578284038952612abd848351612acf565b98850198935090840190600101612aa5565b60008151808452612ae7816020860160208601612f93565b601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008251612b37818460208701612f93565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038481168252831660208201526060604082018190526000906123d390830184612a89565b6001600160a01b03858116825284166020820152608060408201819052600090612bad90830185612a89565b8281036060840152612bbf8185612a89565b979650505050505050565b6001600160a01b03929092168252602082015260400190565b600060208252610a4360208301846129f3565b600060608252612c0960608301866129f3565b8281036020840152612c1b81866129f3565b90508281036040840152612c2f8185612a36565b9695505050505050565b600060808252612c4c60808301876129f3565b8281036020840152612c5e81876129f3565b90508281036040840152612c728186612a36565b90508281036060840152612bbf8185612a36565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612cd957603f19888603018452612cc7858351612acf565b94509285019290850190600101612cab565b5092979650505050505050565b604080825281018390526000602060608084019082870285010187845b88811015612d6e57868303605f190184528135368b9003601e19018112612d28578687fd5b8a0180356001600160401b03811115612d3f578788fd5b8036038c1315612d4d578788fd5b612d5a8582898501612afb565b958701959450505090840190600101612d03565b50509390910193909352509392505050565b600060208252610a436020830184612a89565b600060408252612da66040830185612a89565b82810360208401526123d38185612a89565b6040808252810183905260006001600160fb1b03841115612dd7578081fd5b6020840280866060850137820160600190815260209091019190915292915050565b901515815260200190565b600060408252612e18604083018587612afb565b9050826020830152949350505050565b600060208252610a436020830184612acf565b600060408252612e4e6040830185612acf565b82810360208401526123d38185612acf565b6020808252601f908201527f50726f78795265616465723a20554e535550504f525445445f4d4554484f4400604082015260600190565b60208082526026908201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6040820152651b9d1c9858dd60d21b606082015260800190565b90815260200190565b6000848252604060208301526123d3604083018486612afb565b918252602082015260400190565b6000808335601e19843603018112612f24578283fd5b8301803591506001600160401b03821115612f3d578283fd5b602001915036819003821315610bce57600080fd5b6040518181016001600160401b0381118282101715612f7357612f73612ff4565b604052919050565b60008219821115612f8e57612f8e612fde565b500190565b60005b83811015612fae578181015183820152602001612f96565b83811115612fbd576000848401525b50505050565b6000600019821415612fd757612fd7612fde565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461301f57600080fd5b5056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a164736f6c6343000800000a0000000000000000000000002a93c52e7b6e7054870758e15a1446e769edfb930000000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000002a93c52e7b6e7054870758e15a1446e769edfb930000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : unsRegistry (address): 0x2a93c52e7b6e7054870758e15a1446e769edfb93
Arg [1] : cnsRegistry (address): 0x0000000000000000000000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a93c52e7b6e7054870758e15a1446e769edfb93
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading