project screenshot 1
project screenshot 2
project screenshot 3

Sublettuce

A trustless ENS subdomain rental platform using the upcoming ENS NameWrapper contract. Sublet your ENS domains!

Sublettuce

Created At

ETHOnline 2022

Winner of

💎 ENS — Platinum

Project Description

Interest in ENS subdomains is growing as people begin to recognise their potential usecases. However, a crucial component in the ENS ecosystem is missing: a trustless subdomain rental platform... Until now.

Using the new NameWrapper contract and its features like fuses, Sublettuce lets us sublet ENS domains from others in a trustless and permissionless manner. Domain owners can finally monetise their domains (sub.domain.eth) to the fullest by renting out subdomains while retaining ownership over the second-level domains (domain.eth). Users can rent those domains take full advantage of subdomains rentals for uses like club memberships, virtual asset ownership (linked to domains) etc.

A domain lister can set rental conditions like min/maximum rental duration, the price and granularity (e.g. lister could allow a user to rent the domain for only 15 days). The lister doesn't need to pay gas as they are signing a signature, with the exception of a one-time approval transaction. Currently, the rental cost for the agreed duration is payed upfront. Payment streams and guaranteed renewals before expiry are ideas worth exploring in the future. So is letting users place rental offers on unlisted subdomains.

How it's Made

The interface is written using React/Next and the contract in Solidity. I'm using Hardhat for contract development and testing. I've deployed a minimal form of ENS locally with the NameWrapper contract. I've also deployed the NameWrapper compatible ENS subgraph to a local graph node which indexes the hardhat network. Currently only basic hashing and signing is implemented but I plan on changing to EIP-712 typed hashing and signing for a better user experience.

background image mobile

Join the mailing list

Get the latest news and updates