ETH Price: $3,443.74 (+3.19%)

Contract

0x8Db531fE6BEa7b474c7735879e9A1000E819Bd1D
Transaction Hash
Method
Block
From
To
Register1227538312024-07-16 5:07:1921 mins ago1721106439IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000090215260.0615191
Register1227536902024-07-16 5:02:3726 mins ago1721106157IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000101975040.06063659
Register1227529492024-07-16 4:37:5550 mins ago1721104675IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000096547830.0618733
Register1227519542024-07-16 4:04:451 hr ago1721102685IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.000010328080.0611751
Register1227518772024-07-16 4:02:111 hr ago1721102531IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000094617170.06163498
Register1227488012024-07-16 2:19:393 hrs ago1721096379IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000093239740.062981
Register1227487182024-07-16 2:16:533 hrs ago1721096213IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.000009969770.05812077
Register1227485632024-07-16 2:11:433 hrs ago1721095903IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000102599790.06050478
Register1227485262024-07-16 2:10:293 hrs ago1721095829IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000105766840.06191152
Register1227480692024-07-16 1:55:153 hrs ago1721094915IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000105910480.06273598
Register1227477502024-07-16 1:44:373 hrs ago1721094277IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000105543620.06173653
Register1227461022024-07-16 0:49:414 hrs ago1721090981IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.000010266460.06125409
Register1227447502024-07-16 0:04:375 hrs ago1721088277IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000104964250.06156725
Register1227437622024-07-15 23:31:415 hrs ago1721086301IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000093756670.06139368
Register1227433992024-07-15 23:19:356 hrs ago1721085575IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000098190420.0624583
Register1227430522024-07-15 23:08:016 hrs ago1721084881IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000104124650.0609763
Register1227429062024-07-15 23:03:096 hrs ago1721084589IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000100525140.06072567
Register1227428732024-07-15 23:02:036 hrs ago1721084523IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.000010167420.0612062
Register1227424972024-07-15 22:49:316 hrs ago1721083771IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000093815760.06146183
Register1227409352024-07-15 21:57:277 hrs ago1721080647IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.000010585580.06190238
Register1227394672024-07-15 21:08:318 hrs ago1721077711IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000093136670.0606914
Register1227391322024-07-15 20:57:218 hrs ago1721077041IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000095875410.0619284
Register1227390262024-07-15 20:53:498 hrs ago1721076829IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000104631420.0619006
Register1227388922024-07-15 20:49:218 hrs ago1721076561IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000104595910.06087342
Register1227387142024-07-15 20:43:258 hrs ago1721076205IN
0x8Db531fE...0E819Bd1D
0.001 ETH0.0000106629770.06133269
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1227538312024-07-16 5:07:1921 mins ago1721106439
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
1227538312024-07-16 5:07:1921 mins ago1721106439
0x8Db531fE...0E819Bd1D
0 ETH
1227538312024-07-16 5:07:1921 mins ago1721106439
0x8Db531fE...0E819Bd1D
0 ETH
1227538312024-07-16 5:07:1921 mins ago1721106439
0x8Db531fE...0E819Bd1D
0 ETH
1227536902024-07-16 5:02:3726 mins ago1721106157
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
1227536902024-07-16 5:02:3726 mins ago1721106157
0x8Db531fE...0E819Bd1D
0 ETH
1227536902024-07-16 5:02:3726 mins ago1721106157
0x8Db531fE...0E819Bd1D
0 ETH
1227536902024-07-16 5:02:3726 mins ago1721106157
0x8Db531fE...0E819Bd1D
0 ETH
1227529492024-07-16 4:37:5550 mins ago1721104675
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
1227529492024-07-16 4:37:5550 mins ago1721104675
0x8Db531fE...0E819Bd1D
0 ETH
1227529492024-07-16 4:37:5550 mins ago1721104675
0x8Db531fE...0E819Bd1D
0 ETH
1227529492024-07-16 4:37:5550 mins ago1721104675
0x8Db531fE...0E819Bd1D
0 ETH
1227519542024-07-16 4:04:451 hr ago1721102685
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
1227519542024-07-16 4:04:451 hr ago1721102685
0x8Db531fE...0E819Bd1D
0 ETH
1227519542024-07-16 4:04:451 hr ago1721102685
0x8Db531fE...0E819Bd1D
0 ETH
1227519542024-07-16 4:04:451 hr ago1721102685
0x8Db531fE...0E819Bd1D
0 ETH
1227518772024-07-16 4:02:111 hr ago1721102531
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
1227518772024-07-16 4:02:111 hr ago1721102531
0x8Db531fE...0E819Bd1D
0 ETH
1227518772024-07-16 4:02:111 hr ago1721102531
0x8Db531fE...0E819Bd1D
0 ETH
1227518772024-07-16 4:02:111 hr ago1721102531
0x8Db531fE...0E819Bd1D
0 ETH
1227488012024-07-16 2:19:393 hrs ago1721096379
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
1227488012024-07-16 2:19:393 hrs ago1721096379
0x8Db531fE...0E819Bd1D
0 ETH
1227488012024-07-16 2:19:393 hrs ago1721096379
0x8Db531fE...0E819Bd1D
0 ETH
1227488012024-07-16 2:19:393 hrs ago1721096379
0x8Db531fE...0E819Bd1D
0 ETH
1227487182024-07-16 2:16:533 hrs ago1721096213
0x8Db531fE...0E819Bd1D
0.00000000006256 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OPBebRegistryOneStepController

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 21 : OPBebRegistryOneStepController.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
/////////

pragma solidity >=0.8.4;

import "./BaseRegistrar.sol";
import "./StringUtils.sol";
import "./IBebRegistryOneStepController.sol";

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

/**
 * @dev A registrar controller for registering and renewing names at fixed cost.
 */
contract OPBebRegistryOneStepController is Ownable, IBebRegistryOneStepController {
    using StringUtils for *;
    using Address for address;

    uint256 public constant MIN_REGISTRATION_DURATION = 28 days;

    BaseRegistrar immutable base;
    IPriceOracle public immutable prices;

    event NameRegistered(
        string name,
        bytes32 indexed label,
        address indexed owner,
        uint256 duration,
        uint256 baseCost,
        uint256 premium,
        uint256 expires
    );
    event NameRenewed(
        string name,
        bytes32 indexed label,
        uint256 cost,
        uint256 expires
    );

    constructor(
        BaseRegistrar _base,
        IPriceOracle _prices
    ) {
        base = _base;
        prices = _prices;
    }

    function rentPrice(string memory name, uint256 duration)
        public
        view
        override
        returns (IPriceOracle.Price memory price)
    {
        bytes32 label = keccak256(bytes(name));
        return prices.price(name, base.nameExpires(uint256(label)), duration);
    }

    function _compareStrings(string memory a, string memory b) internal pure returns(bool) {
        return (keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)));
    }

    function _trim(string memory str, uint start, uint end) internal pure returns(string memory) {
        // Warning: make sure the string is at least `end` characters long!
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(end - start);
        for(uint i = start; i < end; i++) {
            result[i - start] = strBytes[i];
        }
        return string(result);
    }


    function valid(string memory name) public pure returns (bool) {
        return name.strlen() >= 10 && _compareStrings(_trim(name, 0, 3), "op_");
    }

    function available(string memory name) public view override returns (bool) {
        bytes32 label = keccak256(bytes(name));
        return valid(name) && base.available(uint256(label));
    }

    function register(
        string calldata name,
        address owner,
        uint256 duration
    ) public payable override {
        require(
            valid(name),
            "OPBebRegistryOneStepController: Invalid name!"
        );
        bytes32 label = keccak256(bytes(name));
        IPriceOracle.Price memory price = rentPrice(name, duration);
        require(
            msg.value >= (price.base + price.premium),
            "OPBebRegistryOneStepController: Not enough ether provided"
        );
        require(duration >= MIN_REGISTRATION_DURATION);

        uint256 tokenId = uint256(label);
        uint256 expires = base.register(tokenId, owner, duration);

        emit NameRegistered(
            name,
            label,
            owner,
            duration,
            price.base,
            price.premium,
            expires
        );

        if (msg.value > (price.base + price.premium)) {
            payable(msg.sender).transfer(
                msg.value - (price.base + price.premium)
            );
        }
    }

    function renew(string calldata name, uint256 duration)
        external
        payable
        override
    {
        bytes32 label = keccak256(bytes(name));
        IPriceOracle.Price memory price = rentPrice(name, duration);
        require(
            msg.value >= (price.base + price.premium),
            "OPBebRegistryOneStepController: Not enough Ether provided for renewal"
        );

        uint256 expires = base.renew(uint256(label), duration);

        if (msg.value > (price.base + price.premium)) {
            payable(msg.sender).transfer(msg.value - (price.base + price.premium));
        }

        emit NameRenewed(name, label, price.base + price.premium, expires);
    }

    function withdraw() public {
        payable(owner()).transfer(address(this).balance);
    }
}

File 2 of 21 : BaseRegistrar.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
/////////

pragma solidity >=0.8.4;

import "./IBaseRegistrar.sol";
import "./IBEBRegistry.sol";
import "./IRoyaltyController.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract BaseRegistrar is ERC721, IBaseRegistrar, Ownable  {
    // A map of expiry times
    mapping(uint256=>uint) expiries;

    // The BEB registry
    IBEBRegistry public bebRegistry;
    // The Royalty Controller
    IRoyaltyController public royaltyController;
    // The namehash of the TLD this registrar owns (eg, .beb)
    bytes32 public baseNode;
    
    // A map of addresses that are authorised to register and renew names.
    mapping(address => bool) public controllers;

    // the grace period where the owner can renew but not reclaim the name
    uint256 public constant GRACE_PERIOD = 90 days;

    // The base metadata uri for the registrar
    string public baseURI;

    /**
     * v2.1.3 version of _isApprovedOrOwner which calls ownerOf(tokenId) and takes grace period into consideration instead of ERC721.ownerOf(tokenId);
     * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.1.3/contracts/token/ERC721/ERC721.sol#L187
     * @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) internal view override returns (bool) {
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    // // control the royalty information
    // function _beforeTokenTransfer(address from, address to, uint256 tokenId)
    //     internal virtual override
    // {
    //     (address royaltyAddress, uint256 royaltyAmount) = this.royaltyInfo(tokenId, msg.value);
    //     if (from == address(0)) {
    //         // if the from address is 0, then this is a transfer from the contract itself
    //         // so we don't need to do anything
    //         return;
    //     }
    //     payable(royaltyAddress).transfer(royaltyAmount); // transfer the royalty to the royalty receiver
    //     payable(to).transfer(msg.value - royaltyAmount); // transfer the rest to the receiver
    //     super._beforeTokenTransfer(from, to, tokenId); // Call parent hook;
    // }

    constructor(IBEBRegistry _bebRegistry, bytes32 _baseNode) ERC721("BEB","BEB") {
        bebRegistry = _bebRegistry;
        baseNode = _baseNode;
    }

    /** 
    * @dev make sure the owner of base TLD (i.e .beb) is of this registrar in the BEB registry
    */
    modifier live() {
        require(bebRegistry.owner(baseNode) == address(this));
        _;
    }


    modifier onlyController {
        require(controllers[msg.sender]);
        _;
    }

    /**
     * @dev Gets the owner of the specified token ID. Names become unowned
     *      when their registration expires.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view override(IERC721, ERC721) returns (address) {
        require(expiries[tokenId] > block.timestamp);
        return super.ownerOf(tokenId);
    }

    // Authorises a controller, who can register and renew domains.
    function addController(address controller) external override onlyOwner {
        controllers[controller] = true;
    }

    // Revoke controller permission for an address.
    function removeController(address controller) external override onlyOwner {
        controllers[controller] = false;
    }

    // Returns the expiration timestamp of the specified id.
    function nameExpires(uint256 id) external view override returns(uint) {
        return expiries[id];
    }

    // Returns true iff the specified name is available for registration.
    function available(uint256 id) public view override returns(bool) {
        // Not available if it's registered here or in its grace period.
        return expiries[id] + GRACE_PERIOD < block.timestamp;
    }
    
    /**
     * @dev Register a name.
     * @param id The token ID (keccak256 of the label).
     * @param owner The address that should own the registration.
     * @param duration Duration in seconds for the registration.
     */
    function register(
        uint256 id,
        address owner,
        uint256 duration
    ) external override returns (uint256) {
        return _register(id, owner, duration, true);
    }

    /**
     * @dev Register a name, without modifying the registry.
     * @param id The token ID (keccak256 of the label).
     * @param owner The address that should own the registration.
     * @param duration Duration in seconds for the registration.
     */
    function registerOnly(
        uint256 id,
        address owner,
        uint256 duration
    ) external returns (uint256) {
        return _register(id, owner, duration, false);
    }

    function renew(uint256 id, uint duration) external override onlyController returns(uint) {
        require(expiries[id] + GRACE_PERIOD >= block.timestamp); // Name must be registered here or in grace period
        require(expiries[id] + duration + GRACE_PERIOD > duration + GRACE_PERIOD); // Prevent future overflow

        expiries[id] += duration;
        emit NameRenewed(id, expiries[id]);
        return expiries[id];
    }

    /**
    * Internal functions
     */

    function _register(uint256 id, address owner, uint duration, bool updateRegistry) internal live onlyController returns(uint) {
        require(available(id));
        require(block.timestamp + duration + GRACE_PERIOD > block.timestamp + GRACE_PERIOD); // Prevent future overflow

        expiries[id] = block.timestamp + duration;
        if(_exists(id)) {
            // Name was previously owned, and expired
            _burn(id);
        }
        _mint(owner, id);
        if (updateRegistry) {
            bebRegistry.setSubnodeOwner(baseNode, bytes32(id), owner);
        }

        emit NameRegistered(id, owner, block.timestamp + duration);

        return block.timestamp + duration;
    }

    /**
     * @dev Reclaim ownership of a name in ENS, if you own it in the registrar.
     */
    function reclaim(uint256 id, address owner) external live {
        require(_isApprovedOrOwner(msg.sender, id));
        bebRegistry.setSubnodeOwner(baseNode, bytes32(id), owner);
    }

    /**
     * @dev Modify the baseURI.
     * @param uri The new baseURI.
     */
    function setBaseURI(string calldata uri) external {
      return _setBaseURI(uri);
    }

    function _setBaseURI(string calldata uri) internal onlyOwner {
        baseURI = uri;
    }

    function _baseURI() internal view override returns(string memory) {
        return baseURI;
    }

    /**
     * @dev Modify the royaltyController.
     * @param _royaltyController The new royaltyController.
     */
    function setRoyaltyController(IRoyaltyController _royaltyController) external {
      return _setRoyaltyController(_royaltyController);
    }
        
    function _setRoyaltyController(IRoyaltyController _royaltyController) internal onlyOwner {
        royaltyController = _royaltyController;
    }

    function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) {
        return royaltyController.royaltyInfo(tokenId, salePrice);
    }
}

File 3 of 21 : StringUtils.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
//////////////////

pragma solidity >=0.8.4;

library StringUtils {
    /**
     * @dev Returns the length of a given string
     *
     * @param s The string to measure the length of
     * @return The length of the input string
     */
    function strlen(string memory s) internal pure returns (uint) {
        uint len;
        uint i = 0;
        uint bytelength = bytes(s).length;
        for(len = 0; i < bytelength; len++) {
            bytes1 b = bytes(s)[i];
            if(b < 0x80) {
                i += 1;
            } else if (b < 0xE0) {
                i += 2;
            } else if (b < 0xF0) {
                i += 3;
            } else if (b < 0xF8) {
                i += 4;
            } else if (b < 0xFC) {
                i += 5;
            } else {
                i += 6;
            }
        }
        return len;
    }
}

File 4 of 21 : IBebRegistryOneStepController.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
/////////

pragma solidity >=0.8.4;

import "./IPriceOracle.sol";

interface IBebRegistryOneStepController {
    function rentPrice(string memory, uint256)
        external
        returns (IPriceOracle.Price memory);

    function available(string memory) external returns (bool);

    function register(
        string calldata,
        address,
        uint256
    ) external payable;

    function renew(string calldata, uint256) external payable;
}

File 5 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 21 : IBaseRegistrar.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
/////////

pragma solidity >=0.8.4;

import "./IBaseRegistrar.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IBaseRegistrar is IERC721 {

    event ControllerAdded(address indexed controller);
    event ControllerRemoved(address indexed controller);
    event NameMigrated(
        uint256 indexed id,
        address indexed owner,
        uint256 expires
    );
    event NameRegistered(
        uint256 indexed id,
        address indexed owner,
        uint256 expires
    );
    event NameRenewed(uint256 indexed id, uint256 expires);
    // Authorises a controller, who can register and renew domains.
    function addController(address controller) external;

    // Revoke controller permission for an address.
    function removeController(address controller) external;

    // Returns the expiration timestamp of the specified label hash.
    function nameExpires(uint256 id) external view returns (uint256);

    // Returns true iff the specified name is available for registration.
    function available(uint256 id) external view returns (bool);

    /**
     * @dev Register a name.
     */
    function register(
        uint256 id,
        address owner,
        uint256 duration
    ) external returns (uint256);

    function renew(uint256 id, uint256 duration) external returns (uint256);
}

File 8 of 21 : IBEBRegistry.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
/////////

pragma solidity >=0.8.4;

interface IBEBRegistry {
    // Logged when the owner of a node assigns a new owner to a subnode.
    event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);

    // Logged when the owner of a node transfers ownership to a new account.
    event Transfer(bytes32 indexed node, address owner);

    // Logged when the TTL of a node changes
    event NewTTL(bytes32 indexed node, uint64 ttl);

    // Logged when an operator is added or removed.
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    function setRecord(
        bytes32 node,
        address owner,
        uint64 ttl
    ) external;

    function setSubnodeRecord(
        bytes32 node,
        bytes32 label,
        address owner,
        uint64 ttl
    ) external;

    function setSubnodeOwner(
        bytes32 node,
        bytes32 label,
        address owner
    ) external returns (bytes32);

    function setOwner(bytes32 node, address owner) external;

    function setTTL(bytes32 node, uint64 ttl) external;

    function setApprovalForAll(address operator, bool approved) external;

    function owner(bytes32 node) external view returns (address);

    function ttl(bytes32 node) external view returns (uint64);

    function recordExists(bytes32 node) external view returns (bool);

    function isApprovedForAll(address owner, address operator)
        external
        view
        returns (bool);
}

File 9 of 21 : IRoyaltyController.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
//////////////////

import "@openzeppelin/contracts/interfaces/IERC2981.sol";

pragma solidity >=0.8.4;

interface IRoyaltyController is IERC2981 {}

File 10 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 11 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

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

pragma solidity ^0.8.0;

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

File 13 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

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

File 15 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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 16 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 17 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 19 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 20 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 21 of 21 : IPriceOracle.sol
/////////
// Wield
// https://wield.co
// SPDX-License-Identifier: UNLICENSED
//////////////////

pragma solidity >=0.8.4;

interface IPriceOracle {
    struct Price {
        uint256 base;
        uint256 premium;
    }

    /**
     * @dev Returns the price to register or renew a name.
     * @param name The name being registered or renewed.
     * @param expires When the name presently expires (0 if this is a new registration).
     * @param duration How long the name is being registered or extended for, in seconds.
     * @return base premium tuple of base price + premium price
     */
    function price(
        string calldata name,
        uint256 expires,
        uint256 duration
    ) external view returns (Price calldata);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract BaseRegistrar","name":"_base","type":"address"},{"internalType":"contract IPriceOracle","name":"_prices","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"bytes32","name":"label","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseCost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"premium","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expires","type":"uint256"}],"name":"NameRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"bytes32","name":"label","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expires","type":"uint256"}],"name":"NameRenewed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"MIN_REGISTRATION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"available","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prices","outputs":[{"internalType":"contract IPriceOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"register","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"renew","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"rentPrice","outputs":[{"components":[{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"}],"internalType":"struct IPriceOracle.Price","name":"price","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"valid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405234801561001057600080fd5b506040516112f93803806112f983398101604081905261002f916100b7565b6100383361004f565b6001600160a01b039182166080521660a0526100f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100b457600080fd5b50565b600080604083850312156100ca57600080fd5b82516100d58161009f565b60208401519092506100e68161009f565b809150509250929050565b60805160a0516111c7610132600039600081816101d901526102b00152600081816102e50152818161051c0152818161067f01526108c301526111c76000f3fe60806040526004361061009c5760003560e01c80639791c097116100645780639791c09714610164578063acf1a84114610194578063aeb8ce9b146101a7578063d3419bf3146101c7578063d393c871146101fb578063f2fde38b1461020e57600080fd5b80633ccfd60b146100a1578063715018a6146100b857806383e7f6ff146100cd5780638a95b09f1461010d5780638da5cb5b14610132575b600080fd5b3480156100ad57600080fd5b506100b661022e565b005b3480156100c457600080fd5b506100b661026b565b3480156100d957600080fd5b506100ed6100e8366004610ddf565b61027f565b604080518251815260209283015192810192909252015b60405180910390f35b34801561011957600080fd5b506101246224ea0081565b604051908152602001610104565b34801561013e57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610104565b34801561017057600080fd5b5061018461017f366004610e24565b6103bb565b6040519015158152602001610104565b6100b66101a2366004610ea2565b610402565b3480156101b357600080fd5b506101846101c2366004610e24565b61064f565b3480156101d357600080fd5b5061014c7f000000000000000000000000000000000000000000000000000000000000000081565b6100b6610209366004610f0a565b6106f9565b34801561021a57600080fd5b506100b6610229366004610f66565b6109f3565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610268573d6000803e3d6000fd5b50565b610273610a69565b61027d6000610ac3565b565b604080518082019091526000808252602082015282516020840120604051636b727d4360e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03908116916350e9a7159187917f00000000000000000000000000000000000000000000000000000000000000009091169063d6e4fa8690602401602060405180830381865afa15801561032e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103529190610f81565b866040518463ffffffff1660e01b815260040161037193929190610fbe565b6040805180830381865afa15801561038d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b19190611000565b9150505b92915050565b6000600a6103c883610b13565b101580156103b557506103b56103e18360006003610c16565b604051806040016040528060038152602001626f705f60e81b815250610ce3565b6000838360405161041492919061104f565b60405180910390209050600061046185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525087925061027f915050565b6020810151815191925061047491611075565b3410156104fc5760405162461bcd60e51b815260206004820152604560248201527f4f5042656252656769737472794f6e6553746570436f6e74726f6c6c65723a2060448201527f4e6f7420656e6f7567682045746865722070726f766964656420666f722072656064820152641b995dd85b60da1b608482015260a4015b60405180910390fd5b60405163c475abff60e01b815260048101839052602481018490526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063c475abff906044016020604051808303816000875af115801561056d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105919190610f81565b602083015183519192506105a491611075565b3411156105f6576020820151825133916108fc916105c29190611075565b6105cc9034611088565b6040518115909202916000818181858888f193505050501580156105f4573d6000803e3d6000fd5b505b827f3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae87878560200151866000015161062e9190611075565b8560405161063f94939291906110c4565b60405180910390a2505050505050565b80516020820120600090610662836103bb565b80156106f257506040516312dc929d60e31b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906396e494e890602401602060405180830381865afa1580156106ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f291906110eb565b9392505050565b61073884848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103bb92505050565b61079a5760405162461bcd60e51b815260206004820152602d60248201527f4f5042656252656769737472794f6e6553746570436f6e74726f6c6c65723a2060448201526c496e76616c6964206e616d652160981b60648201526084016104f3565b600084846040516107ac92919061104f565b6040518091039020905060006107f986868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525087925061027f915050565b6020810151815191925061080c91611075565b3410156108815760405162461bcd60e51b815260206004820152603960248201527f4f5042656252656769737472794f6e6553746570436f6e74726f6c6c65723a2060448201527f4e6f7420656e6f7567682065746865722070726f76696465640000000000000060648201526084016104f3565b6224ea0083101561089157600080fd5b604051633f2891eb60e21b8152600481018390526001600160a01b0385811660248301526044820185905283916000917f0000000000000000000000000000000000000000000000000000000000000000169063fca247ac906064016020604051808303816000875af115801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190610f81565b9050856001600160a01b0316847f3f20a2f68d2f1fc31915768c6a23ee9a37aea4bc54fd9698fd61546843bb22598a8a89886000015189602001518860405161097e9695949392919061110d565b60405180910390a3602083015183516109979190611075565b3411156109e9576020830151835133916108fc916109b59190611075565b6109bf9034611088565b6040518115909202916000818181858888f193505050501580156109e7573d6000803e3d6000fd5b505b5050505050505050565b6109fb610a69565b6001600160a01b038116610a605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f3565b61026881610ac3565b6000546001600160a01b0316331461027d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104f3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051600090819081905b80821015610c0d576000858381518110610b3957610b39611146565b01602001516001600160f81b0319169050600160ff1b811015610b6857610b61600184611075565b9250610bfa565b600760fd1b6001600160f81b031982161015610b8957610b61600284611075565b600f60fc1b6001600160f81b031982161015610baa57610b61600384611075565b601f60fb1b6001600160f81b031982161015610bcb57610b61600484611075565b603f60fa1b6001600160f81b031982161015610bec57610b61600584611075565b610bf7600684611075565b92505b5082610c058161115c565b935050610b1d565b50909392505050565b6060836000610c258585611088565b67ffffffffffffffff811115610c3d57610c3d610d3c565b6040519080825280601f01601f191660200182016040528015610c67576020820181803683370190505b509050845b84811015610cd957828181518110610c8657610c86611146565b01602001516001600160f81b03191682610ca08884611088565b81518110610cb057610cb0611146565b60200101906001600160f81b031916908160001a90535080610cd18161115c565b915050610c6c565b5095945050505050565b600081604051602001610cf69190611175565b6040516020818303038152906040528051906020012083604051602001610d1d9190611175565b6040516020818303038152906040528051906020012014905092915050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610d6357600080fd5b813567ffffffffffffffff80821115610d7e57610d7e610d3c565b604051601f8301601f19908116603f01168101908282118183101715610da657610da6610d3c565b81604052838152866020858801011115610dbf57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610df257600080fd5b823567ffffffffffffffff811115610e0957600080fd5b610e1585828601610d52565b95602094909401359450505050565b600060208284031215610e3657600080fd5b813567ffffffffffffffff811115610e4d57600080fd5b6103b184828501610d52565b60008083601f840112610e6b57600080fd5b50813567ffffffffffffffff811115610e8357600080fd5b602083019150836020828501011115610e9b57600080fd5b9250929050565b600080600060408486031215610eb757600080fd5b833567ffffffffffffffff811115610ece57600080fd5b610eda86828701610e59565b909790965060209590950135949350505050565b80356001600160a01b0381168114610f0557600080fd5b919050565b60008060008060608587031215610f2057600080fd5b843567ffffffffffffffff811115610f3757600080fd5b610f4387828801610e59565b9095509350610f56905060208601610eee565b9396929550929360400135925050565b600060208284031215610f7857600080fd5b6106f282610eee565b600060208284031215610f9357600080fd5b5051919050565b60005b83811015610fb5578181015183820152602001610f9d565b50506000910152565b6060815260008451806060840152610fdd816080850160208901610f9a565b60208301949094525060408101919091526080601f909201601f19160101919050565b60006040828403121561101257600080fd5b6040516040810181811067ffffffffffffffff8211171561103557611035610d3c565b604052825181526020928301519281019290925250919050565b8183823760009101908152919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103b5576103b561105f565b818103818111156103b5576103b561105f565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6060815260006110d860608301868861109b565b6020830194909452506040015292915050565b6000602082840312156110fd57600080fd5b815180151581146106f257600080fd5b60a08152600061112160a08301888a61109b565b9050856020830152846040830152836060830152826080830152979650505050505050565b634e487b7160e01b600052603260045260246000fd5b60006001820161116e5761116e61105f565b5060010190565b60008251611187818460208701610f9a565b919091019291505056fea264697066735822122022935122093b09ef2fe0a449d1bda26d696c04a0d580b742e6c22ac68406094d64736f6c63430008150033000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f00000000000000000000000063c33e2ee2384b9913d0ec0acaaff894a5b708d4

Deployed Bytecode

0x60806040526004361061009c5760003560e01c80639791c097116100645780639791c09714610164578063acf1a84114610194578063aeb8ce9b146101a7578063d3419bf3146101c7578063d393c871146101fb578063f2fde38b1461020e57600080fd5b80633ccfd60b146100a1578063715018a6146100b857806383e7f6ff146100cd5780638a95b09f1461010d5780638da5cb5b14610132575b600080fd5b3480156100ad57600080fd5b506100b661022e565b005b3480156100c457600080fd5b506100b661026b565b3480156100d957600080fd5b506100ed6100e8366004610ddf565b61027f565b604080518251815260209283015192810192909252015b60405180910390f35b34801561011957600080fd5b506101246224ea0081565b604051908152602001610104565b34801561013e57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610104565b34801561017057600080fd5b5061018461017f366004610e24565b6103bb565b6040519015158152602001610104565b6100b66101a2366004610ea2565b610402565b3480156101b357600080fd5b506101846101c2366004610e24565b61064f565b3480156101d357600080fd5b5061014c7f00000000000000000000000063c33e2ee2384b9913d0ec0acaaff894a5b708d481565b6100b6610209366004610f0a565b6106f9565b34801561021a57600080fd5b506100b6610229366004610f66565b6109f3565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610268573d6000803e3d6000fd5b50565b610273610a69565b61027d6000610ac3565b565b604080518082019091526000808252602082015282516020840120604051636b727d4360e11b8152600481018290527f00000000000000000000000063c33e2ee2384b9913d0ec0acaaff894a5b708d46001600160a01b03908116916350e9a7159187917f000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f9091169063d6e4fa8690602401602060405180830381865afa15801561032e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103529190610f81565b866040518463ffffffff1660e01b815260040161037193929190610fbe565b6040805180830381865afa15801561038d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b19190611000565b9150505b92915050565b6000600a6103c883610b13565b101580156103b557506103b56103e18360006003610c16565b604051806040016040528060038152602001626f705f60e81b815250610ce3565b6000838360405161041492919061104f565b60405180910390209050600061046185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525087925061027f915050565b6020810151815191925061047491611075565b3410156104fc5760405162461bcd60e51b815260206004820152604560248201527f4f5042656252656769737472794f6e6553746570436f6e74726f6c6c65723a2060448201527f4e6f7420656e6f7567682045746865722070726f766964656420666f722072656064820152641b995dd85b60da1b608482015260a4015b60405180910390fd5b60405163c475abff60e01b815260048101839052602481018490526000907f000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f6001600160a01b03169063c475abff906044016020604051808303816000875af115801561056d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105919190610f81565b602083015183519192506105a491611075565b3411156105f6576020820151825133916108fc916105c29190611075565b6105cc9034611088565b6040518115909202916000818181858888f193505050501580156105f4573d6000803e3d6000fd5b505b827f3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae87878560200151866000015161062e9190611075565b8560405161063f94939291906110c4565b60405180910390a2505050505050565b80516020820120600090610662836103bb565b80156106f257506040516312dc929d60e31b8152600481018290527f000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f6001600160a01b0316906396e494e890602401602060405180830381865afa1580156106ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f291906110eb565b9392505050565b61073884848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103bb92505050565b61079a5760405162461bcd60e51b815260206004820152602d60248201527f4f5042656252656769737472794f6e6553746570436f6e74726f6c6c65723a2060448201526c496e76616c6964206e616d652160981b60648201526084016104f3565b600084846040516107ac92919061104f565b6040518091039020905060006107f986868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525087925061027f915050565b6020810151815191925061080c91611075565b3410156108815760405162461bcd60e51b815260206004820152603960248201527f4f5042656252656769737472794f6e6553746570436f6e74726f6c6c65723a2060448201527f4e6f7420656e6f7567682065746865722070726f76696465640000000000000060648201526084016104f3565b6224ea0083101561089157600080fd5b604051633f2891eb60e21b8152600481018390526001600160a01b0385811660248301526044820185905283916000917f000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f169063fca247ac906064016020604051808303816000875af115801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190610f81565b9050856001600160a01b0316847f3f20a2f68d2f1fc31915768c6a23ee9a37aea4bc54fd9698fd61546843bb22598a8a89886000015189602001518860405161097e9695949392919061110d565b60405180910390a3602083015183516109979190611075565b3411156109e9576020830151835133916108fc916109b59190611075565b6109bf9034611088565b6040518115909202916000818181858888f193505050501580156109e7573d6000803e3d6000fd5b505b5050505050505050565b6109fb610a69565b6001600160a01b038116610a605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f3565b61026881610ac3565b6000546001600160a01b0316331461027d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104f3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051600090819081905b80821015610c0d576000858381518110610b3957610b39611146565b01602001516001600160f81b0319169050600160ff1b811015610b6857610b61600184611075565b9250610bfa565b600760fd1b6001600160f81b031982161015610b8957610b61600284611075565b600f60fc1b6001600160f81b031982161015610baa57610b61600384611075565b601f60fb1b6001600160f81b031982161015610bcb57610b61600484611075565b603f60fa1b6001600160f81b031982161015610bec57610b61600584611075565b610bf7600684611075565b92505b5082610c058161115c565b935050610b1d565b50909392505050565b6060836000610c258585611088565b67ffffffffffffffff811115610c3d57610c3d610d3c565b6040519080825280601f01601f191660200182016040528015610c67576020820181803683370190505b509050845b84811015610cd957828181518110610c8657610c86611146565b01602001516001600160f81b03191682610ca08884611088565b81518110610cb057610cb0611146565b60200101906001600160f81b031916908160001a90535080610cd18161115c565b915050610c6c565b5095945050505050565b600081604051602001610cf69190611175565b6040516020818303038152906040528051906020012083604051602001610d1d9190611175565b6040516020818303038152906040528051906020012014905092915050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610d6357600080fd5b813567ffffffffffffffff80821115610d7e57610d7e610d3c565b604051601f8301601f19908116603f01168101908282118183101715610da657610da6610d3c565b81604052838152866020858801011115610dbf57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610df257600080fd5b823567ffffffffffffffff811115610e0957600080fd5b610e1585828601610d52565b95602094909401359450505050565b600060208284031215610e3657600080fd5b813567ffffffffffffffff811115610e4d57600080fd5b6103b184828501610d52565b60008083601f840112610e6b57600080fd5b50813567ffffffffffffffff811115610e8357600080fd5b602083019150836020828501011115610e9b57600080fd5b9250929050565b600080600060408486031215610eb757600080fd5b833567ffffffffffffffff811115610ece57600080fd5b610eda86828701610e59565b909790965060209590950135949350505050565b80356001600160a01b0381168114610f0557600080fd5b919050565b60008060008060608587031215610f2057600080fd5b843567ffffffffffffffff811115610f3757600080fd5b610f4387828801610e59565b9095509350610f56905060208601610eee565b9396929550929360400135925050565b600060208284031215610f7857600080fd5b6106f282610eee565b600060208284031215610f9357600080fd5b5051919050565b60005b83811015610fb5578181015183820152602001610f9d565b50506000910152565b6060815260008451806060840152610fdd816080850160208901610f9a565b60208301949094525060408101919091526080601f909201601f19160101919050565b60006040828403121561101257600080fd5b6040516040810181811067ffffffffffffffff8211171561103557611035610d3c565b604052825181526020928301519281019290925250919050565b8183823760009101908152919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103b5576103b561105f565b818103818111156103b5576103b561105f565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6060815260006110d860608301868861109b565b6020830194909452506040015292915050565b6000602082840312156110fd57600080fd5b815180151581146106f257600080fd5b60a08152600061112160a08301888a61109b565b9050856020830152846040830152836060830152826080830152979650505050505050565b634e487b7160e01b600052603260045260246000fd5b60006001820161116e5761116e61105f565b5060010190565b60008251611187818460208701610f9a565b919091019291505056fea264697066735822122022935122093b09ef2fe0a449d1bda26d696c04a0d580b742e6c22ac68406094d64736f6c63430008150033

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

000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f00000000000000000000000063c33e2ee2384b9913d0ec0acaaff894a5b708d4

-----Decoded View---------------
Arg [0] : _base (address): 0xD14005Cb9B40A1b7104eACDEaE36f7FE112fAE5F
Arg [1] : _prices (address): 0x63C33E2EE2384B9913d0Ec0acaafF894a5B708D4

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d14005cb9b40a1b7104eacdeae36f7fe112fae5f
Arg [1] : 00000000000000000000000063c33e2ee2384b9913d0ec0acaaff894a5b708d4


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
[ 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.