blockful-io / external-resolver

This project aims to scale the Ethereum Name Service (ENS) by consolidating existing patterns and proofs of concept into a unified and production-ready codebase.
MIT License
15 stars 3 forks source link

Register subdomains w/ records + pricing #189

Closed pikonha closed 1 month ago

pikonha commented 2 months ago

Feature Request

We should be able to register a subdomain on a L2 regardless of the protocol as long as it follows the standard.

Describe Preferred Solution

The registering should handle the StorageHandledByL2 with the previous price fetching. The following is the signature of the function to be called:

function register(
    string calldata name,
    address owner,
    uint256 duration,
    bytes32 secret,
    address resolver,
    bytes[] calldata data,
    bool reverseRecord,
    uint16 fuses
)
    external
    payable;

function registerPrice(
    string calldata name,
    uint256 duration
)
    external
    view
    returns (uint256);

Architecture Diagram

Image