Contract 0xA3f32c8cd786dc089Bd1fC175F2707223aeE5d00

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe2976e550912719f47435d9f057e1ae99b8615e615448534797b18060b46abca0x60c06040193459722021-09-21 10:59:26281 days 22 hrs ago0xda4f3b40ad025df3516c345919cff348f285e507 IN  Create: ProxyReader0 MATIC0.0026724521
[ 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 16 : 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/math/SafeMathUpgradeable.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 SafeMathUpgradeable for uint256;

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

    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) {
        return _useUns(tokenId) ? _unsRegistry.tokenURI(tokenId) : _cnsRegistry.tokenURI(tokenId);
    }

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

    function resolverOf(uint256 tokenId) external view override returns (address) {
        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) {
        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 _useUns(tokenId) ? _unsRegistry.exists(tokenId) : _cnsOwnerOf(tokenId) != address(0x0);
    }

    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 != address(0x0)) {
                value = IResolver(resolver).get(key, tokenId);
            }
        }
    }

    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 != address(0x0) && keys.length > 0) {
                values = IResolver(resolver).getMany(keys, tokenId);
            }
        }
    }

    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 != address(0x0)) {
                (key, value) = IResolver(resolver).getByHash(keyHash, tokenId);
            }
        }
    }

    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 != address(0x0) && keyHashes.length > 0) {
                (keys, values) = IResolver(resolver).getManyByHash(keyHashes, tokenId);
            }
        }
    }

    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(0x0)) {
            return address(_cnsRegistry);
        }
        return address(0x0);
    }

    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 != address(0x0) && keys.length > 0) {
                values = IResolver(resolver).getMany(keys, tokenId);
            }
        }
    }

    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 != address(0x0) && keys.length > 0) {
                (keys, values) = IResolver(resolver).getManyByHash(keyHashes, tokenId);
            }
        }
    }

    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(0x0);
        }
    }

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

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

File 2 of 16 : 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 16 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 16 : 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 5 of 16 : 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);
}

File 6 of 16 : 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 7 of 16 : 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 8 of 16 : 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 9 of 16 : 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 './IRecordStorage.sol';

interface IUNSRegistry is IERC721MetadataUpgradeable, IRecordStorage {
    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 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;
}

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

File 11 of 16 : 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 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : 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;
}

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

Contract Security Audit

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":"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"}]

60c06040523480156200001157600080fd5b5060405162003172380380620031728339810160408190526200003491620000e4565b6001600160601b0319606083811b821660805282901b1660a0526200005862000060565b505062000186565b600054610100900460ff16806200007a575060005460ff16155b620000a25760405162461bcd60e51b8152600401620000999062000122565b60405180910390fd5b600054610100900460ff16158015620000ce576000805460ff1961ff0019909116610100171660011790555b8015620000e1576000805461ff00191690555b50565b60008060408385031215620000f7578182fd5b8251620001048162000170565b6020840151909250620001178162000170565b809150509250929050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160a01b0381168114620000e157600080fd5b60805160601c60a05160601c612efc620002766000396000818161045b015281816108cb01528181610d7d01528181610dc1015281816113c901528181611419015281816115890152818161193b01528181611daf01528181611e440152611eee0152600081816104fc01528181610604015281816107780152818161096e01528181610a3601528181610aee01528181610c4901528181610cdf01528181611316015281816113a3015281816115d5015281816116ea015281816119db01528181611ba401528181611c4e01528181611df501528181611fca0152818161207401526122960152612efc6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063869b8884116100c3578063b3f9e4cb1161007c578063b3f9e4cb1461032d578063b85afd2814610340578063c15ae7cf14610361578063c87b56dd14610381578063e985e9c514610394578063ffa1ad74146103a75761014d565b8063869b88841461028b57806391015f6b146102ae578063933c051d146102d0578063a3f4df7e146102f2578063a81ce6f9146102fa578063ac9650d81461030d5761014d565b8063430c208111610115578063430c2081146101fe5780634f558e79146102115780636352211e14610224578063672b9f811461023757806368b62d321461025857806370a08231146102785761014d565b806301ffc9a714610152578063032807551461017b578063081812fc1461019e5780631bd8cc1a146101be5780631be5e7ed146101de575b600080fd5b61016561016036600461271a565b6103af565b6040516101729190612c9f565b60405180910390f35b61018e6101893660046126d1565b610412565b6040516101729493929190612a27565b6101b16101ac3660046127ff565b610435565b60405161017291906129e7565b6101d16101cc3660046125a7565b610581565b6040516101729190612c26565b6101f16101ec366004612742565b610751565b6040516101729190612cce565b61016561020c3660046124d5565b6108a5565b61016561021f3660046127ff565b6109f5565b6101b16102323660046127ff565b610abb565b61024a610245366004612878565b610ac6565b604051610172929190612ce1565b61026b61026636600461282f565b610c2f565b6040516101729190612d83565b61026b610286366004612465565b610cda565b61029e610299366004612682565b610e50565b6040516101729493929190612adf565b6102c16102bc3660046125a7565b6110c4565b604051610172939291906129fb565b6102e36102de36600461253f565b6110e4565b60405161017293929190612a9c565b6101f16112cf565b6101b16103083660046127ff565b6112fc565b61032061031b366004612500565b611445565b6040516101729190612b2c565b6101b161033b3660046127ff565b611563565b61035361034e3660046126d1565b61160a565b604051610172929190612c39565b61037461036f366004612500565b61183d565b6040516101729190612a89565b6101f161038f3660046127ff565b611915565b6101656103a236600461249d565b611a64565b6101f1611a87565b60006001600160e01b0319821663768134e560e11b14806103e057506001600160e01b03198216636fa624af60e11b145b806103fb57506001600160e01b031982166308da864d60e31b145b8061040a575061040a82611aa8565b90505b919050565b600080606080610423878787611ac1565b93509350935093505b93509350935093565b600061044082611dab565b6104e55760405163020604bf60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063081812fc90610490908590600401612d83565b60206040518083038186803b1580156104a857600080fd5b505afa1580156104bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e09190612481565b61040a565b60405163020604bf60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063081812fc90610531908590600401612d83565b60206040518083038186803b15801561054957600080fd5b505afa15801561055d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040a9190612481565b6060826001600160401b038111156105a957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156105dc57816020015b60608152602001906001900390816105c75790505b5090506105e882611dab565b1561069857604051630dec660d60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631bd8cc1a9061063d90879087908790600401612b8c565b60006040518083038186803b15801561065557600080fd5b505afa158015610669573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261069191908101906125f0565b905061074a565b60006106a383611e2a565b90506001600160a01b038116158015906106bc57508315155b1561074857604051630dec660d60e11b81526001600160a01b03821690631bd8cc1a906106f190889088908890600401612b8c565b60006040518083038186803b15801561070957600080fd5b505afa15801561071d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261074591908101906125f0565b91505b505b9392505050565b606061075c82611dab565b1561080557604051631be5e7ed60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631be5e7ed906107b190879087908790600401612caa565b60006040518083038186803b1580156107c957600080fd5b505afa1580156107dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106919190810190612777565b600061081083611e2a565b90506001600160a01b0381161561074857604051631be5e7ed60e01b81526001600160a01b03821690631be5e7ed9061085190889088908890600401612caa565b60006040518083038186803b15801561086957600080fd5b505afa15801561087d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107459190810190612777565b60006108b082611dab565b6109575760405163430c208160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063430c2081906109029086908690600401612a70565b60206040518083038186803b15801561091a57600080fd5b505afa15801561092e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095291906126fa565b61074a565b60405163430c208160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063430c2081906109a59086908690600401612a70565b60206040518083038186803b1580156109bd57600080fd5b505afa1580156109d1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074a91906126fa565b6000610a0082611dab565b610a1f576000610a0f83611ed4565b6001600160a01b0316141561040a565b604051634f558e7960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f558e7990610a6b908590600401612d83565b60206040518083038186803b158015610a8357600080fd5b505afa158015610a97573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040a91906126fa565b600061040a82611f23565b606080610ad283611dab565b15610b825760405163672b9f8160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063672b9f8190610b259087908790600401612da6565b60006040518083038186803b158015610b3d57600080fd5b505afa158015610b51573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b7991908101906127a9565b91509150610c28565b6000610b8d84611e2a565b90506001600160a01b03811615610c265760405163672b9f8160e01b81526001600160a01b0382169063672b9f8190610bcc9088908890600401612da6565b60006040518083038186803b158015610be457600080fd5b505afa158015610bf8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c2091908101906127a9565b90935091505b505b9250929050565b60405163345b169960e11b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906368b62d3290610c8290879087908790600401612d8c565b60206040518083038186803b158015610c9a57600080fd5b505afa158015610cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd29190612817565b949350505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231846040518263ffffffff1660e01b8152600401610d2991906129e7565b60206040518083038186803b158015610d4157600080fd5b505afa158015610d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d799190612817565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161561040a576040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610df69086906004016129e7565b60206040518083038186803b158015610e0e57600080fd5b505afa158015610e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e469190612817565b61074a9082612e21565b6060808080846001600160401b03811115610e7b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ea4578160200160208202803683370190505b509350846001600160401b03811115610ecd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b509250846001600160401b03811115610f1f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f5257816020015b6060815260200190600190039081610f3d5790505b509150846001600160401b03811115610f7b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610fae57816020015b6060815260200190600190039081610f995790505b50905060005b858110156110b857610fed8989898985818110610fe157634e487b7160e01b600052603260045260246000fd5b90506020020135611ac1565b88858151811061100d57634e487b7160e01b600052603260045260246000fd5b6020026020010188868151811061103457634e487b7160e01b600052603260045260246000fd5b6020026020010188878151811061105b57634e487b7160e01b600052603260045260246000fd5b6020026020010188888151811061108257634e487b7160e01b600052603260045260246000fd5b6020908102919091010193909352929091526001600160a01b0392831690915291169052806110b081612e69565b915050610fb4565b50945094509450949050565b60008060606110d4868686611f44565b9250925092505b93509350939050565b60608080836001600160401b0381111561110e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611137578160200160208202803683370190505b509250836001600160401b0381111561116057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611189578160200160208202803683370190505b509150836001600160401b038111156111b257634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111e557816020015b60608152602001906001900390816111d05790505b50905060005b848110156112c457611224888888888581811061121857634e487b7160e01b600052603260045260246000fd5b90506020020135611f44565b86848151811061124457634e487b7160e01b600052603260045260246000fd5b6020026020010186858151811061126b57634e487b7160e01b600052603260045260246000fd5b6020026020010186868151811061129257634e487b7160e01b600052603260045260246000fd5b60209081029190910101929092526001600160a01b0392831690915291169052806112bc81612e69565b9150506111eb565b509450945094915050565b604051806040016040528060118152602001702aa7299d10283937bc3c902932b0b232b960791b81525081565b604051634f558e7960e01b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f558e799061134b908590600401612d83565b60206040518083038186803b15801561136357600080fd5b505afa158015611377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139b91906126fa565b156113c757507f000000000000000000000000000000000000000000000000000000000000000061040d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316158015906114115750600061140583611ed4565b6001600160a01b031614155b1561143d57507f000000000000000000000000000000000000000000000000000000000000000061040d565b506000919050565b6060816001600160401b0381111561146d57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156114a057816020015b606081526020019060019003908161148b5790505b50905060005b8281101561155c5761151e308585848181106114d257634e487b7160e01b600052603260045260246000fd5b90506020028101906114e49190612db4565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121c992505050565b82828151811061153e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061155490612e69565b9150506114a6565b5092915050565b600061156e82611dab565b6115be5760405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90610490908590600401612d83565b60405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90610531908590600401612d83565b606080836001600160401b0381111561163357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561166657816020015b60608152602001906001900390816116515790505b509150836001600160401b0381111561168f57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156116c257816020015b60608152602001906001900390816116ad5790505b5090506116ce83611dab565b156117805760405163170b5fa560e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b85afd289061172390889088908890600401612c5e565b60006040518083038186803b15801561173b57600080fd5b505afa15801561174f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117779190810190612622565b91509150611835565b600061178b84611e2a565b90506001600160a01b038116158015906117a457508415155b156118335760405163170b5fa560e31b81526001600160a01b0382169063b85afd28906117d990899089908990600401612c5e565b60006040518083038186803b1580156117f157600080fd5b505afa158015611805573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261182d9190810190612622565b90935091505b505b935093915050565b6060816001600160401b0381111561186557634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561188e578160200160208202803683370190505b50905060005b8281101561155c576118cb8484838181106118bf57634e487b7160e01b600052603260045260246000fd5b90506020020135611f23565b8282815181106118eb57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061190d81612e69565b915050611894565b606061192082611dab565b6119c45760405163c87b56dd60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c87b56dd90611970908590600401612d83565b60006040518083038186803b15801561198857600080fd5b505afa15801561199c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104e09190810190612777565b60405163c87b56dd60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c87b56dd90611a10908590600401612d83565b60006040518083038186803b158015611a2857600080fd5b505afa158015611a3c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261040a9190810190612777565b600060405162461bcd60e51b8152600401611a7e90612d06565b60405180910390fd5b604051806040016040528060058152602001640302e322e360dc1b81525081565b6001600160e01b031981166301ffc9a760e01b14919050565b600080606080856001600160401b03811115611aed57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b2057816020015b6060815260200190600190039081611b0b5790505b509150856001600160401b03811115611b4957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b7c57816020015b6060815260200190600190039081611b675790505b509050611b8885611dab565b15611ce55760405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90611bd9908890600401612d83565b60206040518083038186803b158015611bf157600080fd5b505afa158015611c05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c299190612481565b9350611c348561227c565b60405163170b5fa560e31b81529093506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b85afd2890611c87908a908a908a90600401612c5e565b60006040518083038186803b158015611c9f57600080fd5b505afa158015611cb3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cdb9190810190612622565b909250905061042c565b611cee85611e2a565b9350611cf985611ed4565b92506001600160a01b03841615801590611d14575060008251115b1561042c5760405163170b5fa560e31b81526001600160a01b0385169063b85afd2890611d49908a908a908a90600401612c5e565b60006040518083038186803b158015611d6157600080fd5b505afa158015611d75573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d9d9190810190612622565b909250905093509350935093565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316158061040a5750604051634f558e7960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f558e7990610a6b908590600401612d83565b60405163b3f9e4cb60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90611e79908590600401612d83565b60206040518083038186803b158015611e9157600080fd5b505afa925050508015611ec1575060408051601f3d908101601f19168201909252611ebe91810190612481565b60015b611ecd5750600061040d565b905061040d565b6040516331a9108f60e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90611e79908590600401612d83565b6000611f2e82611dab565b611f3b576104e082611ed4565b61040a8261227c565b6000806060846001600160401b03811115611f6f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611fa257816020015b6060815260200190600190039081611f8d5790505b509050611fae84611dab565b156121085760405163b3f9e4cb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3f9e4cb90611fff908790600401612d83565b60206040518083038186803b15801561201757600080fd5b505afa15801561202b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204f9190612481565b925061205a8461227c565b604051630dec660d60e11b81529092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631bd8cc1a906120ad90899089908990600401612b8c565b60006040518083038186803b1580156120c557600080fd5b505afa1580156120d9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261210191908101906125f0565b90506110db565b61211184611e2a565b925061211c84611ed4565b91506001600160a01b0383161580159061213557508415155b156110db57604051630dec660d60e11b81526001600160a01b03841690631bd8cc1a9061216a90899089908990600401612b8c565b60006040518083038186803b15801561218257600080fd5b505afa158015612196573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121be91908101906125f0565b905093509350939050565b60606121d4836122cb565b6121f05760405162461bcd60e51b8152600401611a7e90612d3d565b600080846001600160a01b03168460405161220b91906129cb565b600060405180830381855af49150503d8060008114612246576040519150601f19603f3d011682016040523d82523d6000602084013e61224b565b606091505b50915091506122738282604051806060016040528060278152602001612ec9602791396122d1565b95945050505050565b6040516331a9108f60e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90611e79908590600401612d83565b3b151590565b606083156122e057508161074a565b8251156122f05782518084602001fd5b8160405162461bcd60e51b8152600401611a7e9190612cce565b60008083601f84011261231b578182fd5b5081356001600160401b03811115612331578182fd5b6020830191508360208083028501011115610c2857600080fd5b600082601f83011261235b578081fd5b815160206001600160401b0382111561237657612376612e9a565b6123838182840201612df8565b82815281810190858301855b858110156123b8576123a6898684518b0101612404565b8452928401929084019060010161238f565b5090979650505050505050565b60008083601f8401126123d6578182fd5b5081356001600160401b038111156123ec578182fd5b602083019150836020828501011115610c2857600080fd5b600082601f830112612414578081fd5b81516001600160401b0381111561242d5761242d612e9a565b612440601f8201601f1916602001612df8565b818152846020838601011115612454578283fd5b610cd2826020830160208701612e39565b600060208284031215612476578081fd5b813561074a81612eb0565b600060208284031215612492578081fd5b815161074a81612eb0565b600080604083850312156124af578081fd5b82356124ba81612eb0565b915060208301356124ca81612eb0565b809150509250929050565b600080604083850312156124e7578182fd5b82356124f281612eb0565b946020939093013593505050565b60008060208385031215612512578182fd5b82356001600160401b03811115612527578283fd5b6125338582860161230a565b90969095509350505050565b60008060008060408587031215612554578182fd5b84356001600160401b038082111561256a578384fd5b6125768883890161230a565b9096509450602087013591508082111561258e578384fd5b5061259b8782880161230a565b95989497509550505050565b6000806000604084860312156125bb578283fd5b83356001600160401b038111156125d0578384fd5b6125dc8682870161230a565b909790965060209590950135949350505050565b600060208284031215612601578081fd5b81516001600160401b03811115612616578182fd5b610cd28482850161234b565b60008060408385031215612634578182fd5b82516001600160401b038082111561264a578384fd5b6126568683870161234b565b9350602085015191508082111561266b578283fd5b506126788582860161234b565b9150509250929050565b60008060008060408587031215612697578081fd5b84356001600160401b03808211156126ad578283fd5b6126b98883890161230a565b9096509450602087013591508082111561258e578283fd5b6000806000604084860312156126e5578081fd5b83356001600160401b038111156125d0578182fd5b60006020828403121561270b578081fd5b8151801515811461074a578182fd5b60006020828403121561272b578081fd5b81356001600160e01b03198116811461074a578182fd5b600080600060408486031215612756578081fd5b83356001600160401b0381111561276b578182fd5b6125dc868287016123c5565b600060208284031215612788578081fd5b81516001600160401b0381111561279d578182fd5b610cd284828501612404565b600080604083850312156127bb578182fd5b82516001600160401b03808211156127d1578384fd5b6127dd86838701612404565b935060208501519150808211156127f2578283fd5b5061267885828601612404565b600060208284031215612810578081fd5b5035919050565b600060208284031215612828578081fd5b5051919050565b600080600060408486031215612843578081fd5b8335925060208401356001600160401b0381111561285f578182fd5b61286b868287016123c5565b9497909650939450505050565b6000806040838503121561288a578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156128d15781516001600160a01b0316875295820195908201906001016128ac565b509495945050505050565b6000815180845260208085018081965082840281019150828601855b8581101561292257828403895261291084835161292f565b988501989350908401906001016128f8565b5091979650505050505050565b6000815180845260208085018081965082840281019150828601855b85811015612922578284038952612963848351612975565b9885019893509084019060010161294b565b6000815180845261298d816020860160208601612e39565b601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600082516129dd818460208701612e39565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038481168252831660208201526060604082018190526000906122739083018461292f565b6001600160a01b03858116825284166020820152608060408201819052600090612a539083018561292f565b8281036060840152612a65818561292f565b979650505050505050565b6001600160a01b03929092168252602082015260400190565b60006020825261074a6020830184612899565b600060608252612aaf6060830186612899565b8281036020840152612ac18186612899565b90508281036040840152612ad581856128dc565b9695505050505050565b600060808252612af26080830187612899565b8281036020840152612b048187612899565b90508281036040840152612b1881866128dc565b90508281036060840152612a6581856128dc565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612b7f57603f19888603018452612b6d858351612975565b94509285019290850190600101612b51565b5092979650505050505050565b604080825281018390526000602060608084019082870285010187845b88811015612c1457868303605f190184528135368b9003601e19018112612bce578687fd5b8a0180356001600160401b03811115612be5578788fd5b8036038c1315612bf3578788fd5b612c0085828985016129a1565b958701959450505090840190600101612ba9565b50509390910193909352509392505050565b60006020825261074a602083018461292f565b600060408252612c4c604083018561292f565b8281036020840152610745818561292f565b6040808252810183905260006001600160fb1b03841115612c7d578081fd5b6020840280866060850137820160600190815260209091019190915292915050565b901515815260200190565b600060408252612cbe6040830185876129a1565b9050826020830152949350505050565b60006020825261074a6020830184612975565b600060408252612cf46040830185612975565b82810360208401526107458185612975565b6020808252601f908201527f50726f78795265616465723a20554e535550504f525445445f4d4554484f4400604082015260600190565b60208082526026908201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6040820152651b9d1c9858dd60d21b606082015260800190565b90815260200190565b6000848252604060208301526122736040830184866129a1565b918252602082015260400190565b6000808335601e19843603018112612dca578283fd5b8301803591506001600160401b03821115612de3578283fd5b602001915036819003821315610c2857600080fd5b6040518181016001600160401b0381118282101715612e1957612e19612e9a565b604052919050565b60008219821115612e3457612e34612e84565b500190565b60005b83811015612e54578181015183820152602001612e3c565b83811115612e63576000848401525b50505050565b6000600019821415612e7d57612e7d612e84565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612ec557600080fd5b5056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a164736f6c6343000800000a000000000000000000000000a9a6a3626993d487d2dbda3173cf58ca1a9d9e9f0000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000a9a6a3626993d487d2dbda3173cf58ca1a9d9e9f0000000000000000000000000000000000000000000000000000000000000000

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

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a9a6a3626993d487d2dbda3173cf58ca1a9d9e9f
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
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.