ETH Price: $2,508.01 (-0.11%)

Contract

0xc728A51bBc0D2483A0bd8570B4561314e5FFc9a6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040201231552024-06-19 3:37:35136 days ago1718768255IN
 Contract Creation
0 ETH0.007052664.97198155

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
201232862024-06-19 4:03:59136 days ago1718769839
0xc728A51b...4e5FFc9a6
0 ETH
201232862024-06-19 4:03:59136 days ago1718769839
0xc728A51b...4e5FFc9a6
0 ETH
201232152024-06-19 3:49:35136 days ago1718768975
0xc728A51b...4e5FFc9a6
0 ETH
Loading...
Loading

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

Contract Name:
SCI

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 6 : SCI.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.25;

import {Verifier} from './Verifiers/Verifier.sol';
import {IRegistry} from './Registry/IRegistry.sol';
import {INameHash} from './Ens/INameHash.sol';
import {Initializable} from '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';

/**
 * @custom:security-contact [email protected]
 */
contract SCI is Initializable {
    IRegistry public registry;
    INameHash public nameHashUtils;

    function initialize(address registryAddress, address nameHashAddress) external initializer {
        registry = IRegistry(registryAddress);
        nameHashUtils = INameHash(nameHashAddress);
    }

    /**
     * @dev Returns the owner of the domainHash.
     * @param domainHash The name hash of the domain.
     * @return the address of the owner or the ZERO_ADDRESS if the domain is not registered.
     */
    function domainOwner(bytes32 domainHash) public view returns (address) {
        return registry.domainOwner(domainHash);
    }

    /**
     * @dev Returns if the `contractAddress` deployed in the chain with id `chainId` is verified.
     * to interact with the domain with name hash `domainHash`.
     * @param domainHash The name hash of the domain the contract is interacting with
     * @param contractAddress The address of the contract is being verified.
     * @param chainId The id of the chain the contract is deployed in.
     * @return a bool indicating whether the contract is verified or not.
     *
     * NOTE: If there is no verifier set then it returns false.
     */
    function isVerifiedForDomainHash(
        bytes32 domainHash,
        address contractAddress,
        uint256 chainId
    ) public view returns (bool) {
        (, Verifier verifier, , ) = registry.domainHashToRecord(domainHash);

        if (address(verifier) == address(0)) {
            return false;
        }

        return verifier.isVerified(domainHash, contractAddress, chainId);
    }

    /**
     * @dev Same as isVerifiedForDomainHash but for multiple domains.
     * This is useful to check for subdomains and wildcard verification.
     * For example: subdomain.example.com and *.example.com.
     *
     * @param domainHashes An array of domain hashes.
     * @param contractAddress The address of the contract is being verified.
     * @param chainId The id of the chain the contract is deployed in.
     * @return an array of bool indicating whether the contract address is
     * verified for each domain hash or not.
     *
     * NOTE: If there is no verifier set then it returns false for that `domainHash`.
     */
    function isVerifiedForMultipleDomainHashes(
        bytes32[] memory domainHashes,
        address contractAddress,
        uint256 chainId
    ) external view returns (bool[] memory) {
        bool[] memory domainsVerification = new bool[](domainHashes.length);
        uint256 domainHashesLength = domainHashes.length;
        for (uint256 i; i < domainHashesLength; ) {
            domainsVerification[i] = isVerifiedForDomainHash(
                domainHashes[i],
                contractAddress,
                chainId
            );
            unchecked {
                ++i;
            }
        }
        return domainsVerification;
    }

    /**
     * @dev Same as isVerifiedForMultipleDomainHashes but receives the domains
     * and apply the name hash algorithm to them
     *
     * @param domains An array of domains.
     * @param contractAddress The address of the contract is being verified.
     * @param chainId The id of the chain the contract is deployed in.
     * @return an array of bool indicating whether the contract address is verified for each domain or not.

     * NOTE: If there is no verifier set then it returns false for that `domain`.
     */
    function isVerifiedForMultipleDomains(
        string[] memory domains,
        address contractAddress,
        uint256 chainId
    ) external view returns (bool[] memory) {
        bool[] memory domainsVerification = new bool[](domains.length);
        uint256 domainsLength = domains.length;
        for (uint256 i; i < domainsLength; ) {
            domainsVerification[i] = isVerifiedForDomainHash(
                nameHashUtils.getDomainHash(domains[i]),
                contractAddress,
                chainId
            );
            unchecked {
                ++i;
            }
        }
        return domainsVerification;
    }

    /**
    * @dev Same as isVerifiedForDomainHash but receives the domain and apply the name hash algorithm to them
     *
     * @param domain the domain the contract is interacting with.
     * @param contractAddress The address of the contract is being verified.
     * @param chainId The id of the chain the contract is deployed in.
     * @return a bool indicating whether the contract address is verified for the domain or not.

     * NOTE: If there is no verifier set then it returns false.
     */
    function isVerifiedForDomain(
        string memory domain,
        address contractAddress,
        uint256 chainId
    ) public view returns (bool) {
        return
            isVerifiedForDomainHash(nameHashUtils.getDomainHash(domain), contractAddress, chainId);
    }

    /**
     * @dev Returns info from the domain
     *
     * @param domain The domain you want to get information from
     */
    function domainToRecord(
        string calldata domain
    )
        external
        view
        returns (
            address owner,
            Verifier verifier,
            uint256 lastOwnerSetTime,
            uint256 lastVerifierSetTime
        )
    {
        return registry.domainHashToRecord(nameHashUtils.getDomainHash(domain));
    }

    /**
     * @dev Returns info from the domain
     *
     * @param domainHash The name hash of the domain
     */
    function domainHashToRecord(
        bytes32 domainHash
    )
        external
        view
        returns (
            address owner,
            Verifier verifier,
            uint256 lastOwnerSetTime,
            uint256 lastVerifierSetTime
        )
    {
        return registry.domainHashToRecord(domainHash);
    }

    // This is a temporary function until we change to the new SCI
    function setRegistry() public {
        registry = IRegistry(0x5f613920dc691b6177F2123eD2D27F00a3B5748b);
    }
}

File 2 of 6 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @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 proxied contracts do not make use of 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.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * 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.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

File 3 of 6 : Authorizer.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.25;

/**
 * @dev Required interface of an Authorizer compliant contract for the SCI IRegistry.sol.
 * @custom:security-contact [email protected]
 */
interface Authorizer {
    /**
     * @dev Validates if an address is authorized to register a domain.
     * @param sender The address trying to register the domain.
     * @param domainHash The name hash of the domain.
     * @return a bool indicating whether the sender is authorizer or not.
     */
    function isAuthorized(address sender, bytes32 domainHash) external returns (bool);
}

File 4 of 6 : INameHash.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.25;

/**
 * @dev External interface of NameHash declared to support EIP-137 namehash algorithm for domains.
 * @custom:security-contact [email protected]
 */
interface INameHash {
    /**
     * @dev Transforms a domain into a domain hash using the namehash algorithm specified in the EIP-137
     * @param domain a string representation of a domain (example.com)
     * @return a bytes32 representation of the namehash algorithm applied to the domain.
     * For example.com it will return 0xf59ba973941fd531b0702df2592a8480fd9f28516c50a93626e652a8ce263832.
     */
    function getDomainHash(string memory domain) external pure returns (bytes32);
}

File 5 of 6 : IRegistry.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.25;

import {Authorizer} from '../Authorizers/Authorizer.sol';
import {Verifier} from '../Verifiers/Verifier.sol';

/**
 * @custom:security-contact [email protected]
 */
interface IRegistry {
    /**
     * @dev Emitted when a new `domain` with the `domainHash` is
     * registered by the `owner` using the authorizer with id `authorizerId`.
     */
    event DomainRegistered(
        uint256 indexed authorizerId,
        address indexed owner,
        bytes32 indexed domainHash,
        string domain
    );

    /**
     * @dev Emitted when the `owner` of the `domainHash` adds a `verifier`.
     *
     * NOTE: This will also be emitted when the verifier is changed.
     */
    event VerifierSet(address indexed owner, bytes32 domainHash, Verifier indexed verifier);

    /**
     * @dev Emitted when the owner of a `domainHash` is set.
     *
     */
    event OwnerSet(address indexed msgSender, bytes32 domainHash, address indexed owner);

    /**
     * @dev Emitted when the `msgSender` adds and `authorizer` with id `authorizerId`.
     *
     * NOTE: This will also be emitted when the authorizer is changed for an existing id.
     */
    event AuthorizerSet(uint256 indexed authorizerId, Authorizer authorizer, address msgSender);

    /**
     * @dev Thrown when the `account` is not authorized to register the domain with namehash `domainHash`.
     */
    error AccountIsNotAuthorizeToRegisterDomain(address account, bytes32 domainHash);

    /**
     * @dev Returns the owner, the verifier, lastOwnerSetTime and lastVerifierSetTime
     * for a given domainHash.
     * @param domainHash The name hash of the domain
     */
    function domainHashToRecord(
        bytes32 domainHash
    )
        external
        view
        returns (
            address owner,
            Verifier verifier,
            uint256 lastOwnerSetTime,
            uint256 lastVerifierSetTime
        );

    /**
     * @dev Register a domain.
     *
     * @param authorizerId The id of the authorizer being used.
     * @param owner The owner of the domain.
     * @param domain The domain being registered (example.com).
     * @param isWildcard If you are registering a wildcard to set a verifier for all subdomains.
     *
     * NOTE: If wildcard is true then it registers the name hash of `*.domain`.
     *
     * Requirements:
     *
     * - the owner must be authorized by the authorizer.
     *
     * May emit a {DomainRegistered} event.
     */
    function registerDomain(
        uint256 authorizerId,
        address owner,
        string memory domain,
        bool isWildcard
    ) external;

    /**
     * @dev Same as registerDomain but it also adds a verifier.
     *
     * @param authorizerId The id of the authorizer being used.
     * @param domain The domain being registered (example.com).
     * @param isWildcard if you are registering a wildcard to set a verifier for all subdomains.
     * @param verifier the verifier that is being set for the domain.
     *
     * Requirements:
     *
     * - the caller must be authorized by the authorizer.
     *
     * May emit a {DomainRegistered} and a {VerifierAdded} events.
     */
    function registerDomainWithVerifier(
        uint256 authorizerId,
        string memory domain,
        bool isWildcard,
        Verifier verifier
    ) external;

    /**
     * @dev Returns true if the account is the owner of the domainHash.
     */
    function isDomainOwner(bytes32 domainHash, address account) external view returns (bool);

    /**
     * @dev Returns the owner of the domainHash.
     * @param domainHash The name hash of the domain
     * @return the address of the owner or the ZERO_ADDRESS if the domain is not registered
     */
    function domainOwner(bytes32 domainHash) external view returns (address);

    /**
     * @dev Returns the verifier of the domainHash.
     * @param domainHash The name hash of the domain
     * @return the address of the verifier or the ZERO_ADDRESS if the domain or
     * the verifier are not registered
     */
    function domainVerifier(bytes32 domainHash) external view returns (Verifier);

    /**
     * @dev Returns the timestamp of the block where the verifier was set.
     * @param domainHash The name hash of the domain
     * @return the timestamp of the block where the verifier was set or
     * 0 if it wasn't
     */
    function domainVerifierSetTime(bytes32 domainHash) external view returns (uint256);

    /**
     * @dev Sets a verifier to the domain hash.
     * @param domainHash The name hash of the domain
     * @param verifier The address of the verifier contract
     *
     * Requirements:
     *
     * - the caller must be the owner of the domain.
     *
     * May emit a {VerifierAdded} event.
     *
     * NOTE: If you want to remove a verifier you can set it to the ZERO_ADDRESS
     */
    function setVerifier(bytes32 domainHash, Verifier verifier) external;

    /**
     * @dev Sets an authorizer with id `authorizerId`.
     * @param authorizerId The id of the authorizer
     * @param authorizer The address of the authorizer contract
     *
     * Requirements:
     *
     * - the caller must have the ADD_AUTHORIZER_ROLE role.
     *
     * May emit a {AuthorizerAdded} event.
     *
     * NOTE: If you want to remove an authorizer you can set it to the ZERO_ADDRESS
     */
    function setAuthorizer(uint256 authorizerId, Authorizer authorizer) external;
}

File 6 of 6 : Verifier.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.25;

/**
 * @dev Required interface of a Verifier compliant contract for the SCI IRegistry.sol.
 * @custom:security-contact [email protected]
 */
interface Verifier {
    /**
     * @dev Verifies if a contract in a specific chain is authorized
     * to interact within a domain.
     * @param domainHash The domain's name hash.
     * @param contractAddress The address of the contract trying to be verified.
     * @param chainId The chain where the contract is deployed.
     * @return a bool indicating whether the sender is authorizer or not.
     */
    function isVerified(
        bytes32 domainHash,
        address contractAddress,
        uint256 chainId
    ) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"inputs":[{"internalType":"bytes32","name":"domainHash","type":"bytes32"}],"name":"domainHashToRecord","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"contract Verifier","name":"verifier","type":"address"},{"internalType":"uint256","name":"lastOwnerSetTime","type":"uint256"},{"internalType":"uint256","name":"lastVerifierSetTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"domainHash","type":"bytes32"}],"name":"domainOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"domain","type":"string"}],"name":"domainToRecord","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"contract Verifier","name":"verifier","type":"address"},{"internalType":"uint256","name":"lastOwnerSetTime","type":"uint256"},{"internalType":"uint256","name":"lastVerifierSetTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registryAddress","type":"address"},{"internalType":"address","name":"nameHashAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"domain","type":"string"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"isVerifiedForDomain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"domainHash","type":"bytes32"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"isVerifiedForDomainHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"domainHashes","type":"bytes32[]"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"isVerifiedForMultipleDomainHashes","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"domains","type":"string[]"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"isVerifiedForMultipleDomains","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameHashUtils","outputs":[{"internalType":"contract INameHash","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"contract IRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063a958507611610071578063a95850761461017b578063ac8b956b146101ab578063b3e87f2c146101b5578063c4d80da4146101d3578063d26cdd2014610203578063e5b8f11b14610233576100a9565b80632019241b146100ae578063485cc955146100de5780635b377fa2146100fa5780637b1039991461012d578063929d1ac11461014b575b600080fd5b6100c860048036038101906100c39190610cf0565b610266565b6040516100d59190610d5e565b60405180910390f35b6100f860048036038101906100f39190610d79565b6103cf565b005b610114600480360381019061010f9190610db9565b6105d7565b6040516101249493929190610e63565b60405180910390f35b610135610686565b6040516101429190610ec9565b60405180910390f35b6101656004803603810190610160919061103d565b6106aa565b604051610172919061116a565b60405180910390f35b61019560048036038101906101909190611322565b61076d565b6040516101a2919061116a565b60405180910390f35b6101b36108cb565b005b6101bd610921565b6040516101ca91906113b2565b60405180910390f35b6101ed60048036038101906101e891906113cd565b610947565b6040516101fa9190610d5e565b60405180910390f35b61021d60048036038101906102189190610db9565b6109f8565b60405161022a919061143c565b60405180910390f35b61024d600480360381019061024891906114b2565b610a9c565b60405161025d9493929190610e63565b60405180910390f35b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635b377fa2866040518263ffffffff1660e01b81526004016102c2919061150e565b608060405180830381865afa1580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190611591565b5050915050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036103465760009150506103c8565b8073ffffffffffffffffffffffffffffffffffffffff1663046852d08686866040518463ffffffff1660e01b8152600401610383939291906115f8565b602060405180830381865afa1580156103a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c4919061165b565b9150505b9392505050565b60006103d9610bea565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156104275750825b9050600060018367ffffffffffffffff1614801561045c575060003073ffffffffffffffffffffffffffffffffffffffff163b145b90508115801561046a575080155b156104a1576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156104f15760018560000160086101000a81548160ff0219169083151502179055505b866000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083156105ce5760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105c591906116d7565b60405180910390a15b50505050505050565b60008060008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635b377fa2866040518263ffffffff1660e01b8152600401610636919061150e565b608060405180830381865afa158015610653573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106779190611591565b93509350935093509193509193565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606000845167ffffffffffffffff8111156106c9576106c8610efa565b5b6040519080825280602002602001820160405280156106f75781602001602082028036833780820191505090505b50905060008551905060005b8181101561076057610730878281518110610721576107206116f2565b5b60200260200101518787610266565b838281518110610743576107426116f2565b5b602002602001019015159081151581525050806001019050610703565b5081925050509392505050565b60606000845167ffffffffffffffff81111561078c5761078b610efa565b5b6040519080825280602002602001820160405280156107ba5781602001602082028036833780820191505090505b50905060008551905060005b818110156108be5761088e600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166307b5c385898481518110610822576108216116f2565b5b60200260200101516040518263ffffffff1660e01b815260040161084691906117a0565b602060405180830381865afa158015610863573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088791906117d7565b8787610266565b8382815181106108a1576108a06116f2565b5b6020026020010190151590811515815250508060010190506107c6565b5081925050509392505050565b735f613920dc691b6177f2123ed2d27f00a3b5748b6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006109ef600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166307b5c385866040518263ffffffff1660e01b81526004016109a791906117a0565b602060405180830381865afa1580156109c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e891906117d7565b8484610266565b90509392505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d26cdd20836040518263ffffffff1660e01b8152600401610a54919061150e565b602060405180830381865afa158015610a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a959190611804565b9050919050565b60008060008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635b377fa2600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166307b5c38589896040518363ffffffff1660e01b8152600401610b3b92919061185e565b602060405180830381865afa158015610b58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7c91906117d7565b6040518263ffffffff1660e01b8152600401610b98919061150e565b608060405180830381865afa158015610bb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd99190611591565b935093509350935092959194509250565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610c3981610c26565b8114610c4457600080fd5b50565b600081359050610c5681610c30565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610c8782610c5c565b9050919050565b610c9781610c7c565b8114610ca257600080fd5b50565b600081359050610cb481610c8e565b92915050565b6000819050919050565b610ccd81610cba565b8114610cd857600080fd5b50565b600081359050610cea81610cc4565b92915050565b600080600060608486031215610d0957610d08610c1c565b5b6000610d1786828701610c47565b9350506020610d2886828701610ca5565b9250506040610d3986828701610cdb565b9150509250925092565b60008115159050919050565b610d5881610d43565b82525050565b6000602082019050610d736000830184610d4f565b92915050565b60008060408385031215610d9057610d8f610c1c565b5b6000610d9e85828601610ca5565b9250506020610daf85828601610ca5565b9150509250929050565b600060208284031215610dcf57610dce610c1c565b5b6000610ddd84828501610c47565b91505092915050565b610def81610c7c565b82525050565b6000819050919050565b6000610e1a610e15610e1084610c5c565b610df5565b610c5c565b9050919050565b6000610e2c82610dff565b9050919050565b6000610e3e82610e21565b9050919050565b610e4e81610e33565b82525050565b610e5d81610cba565b82525050565b6000608082019050610e786000830187610de6565b610e856020830186610e45565b610e926040830185610e54565b610e9f6060830184610e54565b95945050505050565b6000610eb382610e21565b9050919050565b610ec381610ea8565b82525050565b6000602082019050610ede6000830184610eba565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610f3282610ee9565b810181811067ffffffffffffffff82111715610f5157610f50610efa565b5b80604052505050565b6000610f64610c12565b9050610f708282610f29565b919050565b600067ffffffffffffffff821115610f9057610f8f610efa565b5b602082029050602081019050919050565b600080fd5b6000610fb9610fb484610f75565b610f5a565b90508083825260208201905060208402830185811115610fdc57610fdb610fa1565b5b835b818110156110055780610ff18882610c47565b845260208401935050602081019050610fde565b5050509392505050565b600082601f83011261102457611023610ee4565b5b8135611034848260208601610fa6565b91505092915050565b60008060006060848603121561105657611055610c1c565b5b600084013567ffffffffffffffff81111561107457611073610c21565b5b6110808682870161100f565b935050602061109186828701610ca5565b92505060406110a286828701610cdb565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6110e181610d43565b82525050565b60006110f383836110d8565b60208301905092915050565b6000602082019050919050565b6000611117826110ac565b61112181856110b7565b935061112c836110c8565b8060005b8381101561115d57815161114488826110e7565b975061114f836110ff565b925050600181019050611130565b5085935050505092915050565b60006020820190508181036000830152611184818461110c565b905092915050565b600067ffffffffffffffff8211156111a7576111a6610efa565b5b602082029050602081019050919050565b600080fd5b600067ffffffffffffffff8211156111d8576111d7610efa565b5b6111e182610ee9565b9050602081019050919050565b82818337600083830152505050565b600061121061120b846111bd565b610f5a565b90508281526020810184848401111561122c5761122b6111b8565b5b6112378482856111ee565b509392505050565b600082601f83011261125457611253610ee4565b5b81356112648482602086016111fd565b91505092915050565b600061128061127b8461118c565b610f5a565b905080838252602082019050602084028301858111156112a3576112a2610fa1565b5b835b818110156112ea57803567ffffffffffffffff8111156112c8576112c7610ee4565b5b8086016112d5898261123f565b855260208501945050506020810190506112a5565b5050509392505050565b600082601f83011261130957611308610ee4565b5b813561131984826020860161126d565b91505092915050565b60008060006060848603121561133b5761133a610c1c565b5b600084013567ffffffffffffffff81111561135957611358610c21565b5b611365868287016112f4565b935050602061137686828701610ca5565b925050604061138786828701610cdb565b9150509250925092565b600061139c82610e21565b9050919050565b6113ac81611391565b82525050565b60006020820190506113c760008301846113a3565b92915050565b6000806000606084860312156113e6576113e5610c1c565b5b600084013567ffffffffffffffff81111561140457611403610c21565b5b6114108682870161123f565b935050602061142186828701610ca5565b925050604061143286828701610cdb565b9150509250925092565b60006020820190506114516000830184610de6565b92915050565b600080fd5b60008083601f84011261147257611471610ee4565b5b8235905067ffffffffffffffff81111561148f5761148e611457565b5b6020830191508360018202830111156114ab576114aa610fa1565b5b9250929050565b600080602083850312156114c9576114c8610c1c565b5b600083013567ffffffffffffffff8111156114e7576114e6610c21565b5b6114f38582860161145c565b92509250509250929050565b61150881610c26565b82525050565b600060208201905061152360008301846114ff565b92915050565b60008151905061153881610c8e565b92915050565b600061154982610c7c565b9050919050565b6115598161153e565b811461156457600080fd5b50565b60008151905061157681611550565b92915050565b60008151905061158b81610cc4565b92915050565b600080600080608085870312156115ab576115aa610c1c565b5b60006115b987828801611529565b94505060206115ca87828801611567565b93505060406115db8782880161157c565b92505060606115ec8782880161157c565b91505092959194509250565b600060608201905061160d60008301866114ff565b61161a6020830185610de6565b6116276040830184610e54565b949350505050565b61163881610d43565b811461164357600080fd5b50565b6000815190506116558161162f565b92915050565b60006020828403121561167157611670610c1c565b5b600061167f84828501611646565b91505092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006116c16116bc6116b784611688565b610df5565b611692565b9050919050565b6116d1816116a6565b82525050565b60006020820190506116ec60008301846116c8565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60005b8381101561175b578082015181840152602081019050611740565b60008484015250505050565b600061177282611721565b61177c818561172c565b935061178c81856020860161173d565b61179581610ee9565b840191505092915050565b600060208201905081810360008301526117ba8184611767565b905092915050565b6000815190506117d181610c30565b92915050565b6000602082840312156117ed576117ec610c1c565b5b60006117fb848285016117c2565b91505092915050565b60006020828403121561181a57611819610c1c565b5b600061182884828501611529565b91505092915050565b600061183d838561172c565b935061184a8385846111ee565b61185383610ee9565b840190509392505050565b60006020820190508181036000830152611879818486611831565b9050939250505056fea2646970667358221220b4699e31cbc75c33443f4350b7e2f1c32e4ad6664e306ddbdd3b7a8de87a688a64736f6c63430008190033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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