Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

BSD-2-Clause, MIT licenses found

Licenses found

BSD-2-Clause
COPYING.BSD-2-CLAUSE
MIT
COPYING.MIT
NotificationsYou must be signed in to change notification settings

PortalNetwork/ecns-subgraph

Repository files navigation

This Subgraph sources events from the ECNS contracts, which inspire and fork fromens,ethregistrar andresolvers. This includes the ECNS registry, therRegistrar, and resolvers that are created and linked to domains. The resolvers are added through dynamic data sources. More information on all of this can be found atThe Graph Documentation.

Contracts

BaseRegistrar

BaseRegistrar is the contract that owns the TLD in the ECNS registry. This contract implements a minimal set of functionality:

  • The owner of the registrar may add and remove controllers.
  • Controllers may register new domains and extend the expiry of (renew) existing domains. They can not change the ownership or reduce the expiration time of existing domains.
  • Name owners may transfer ownership to another address.
  • Name owners may reclaim ownership in the ENS registry if they have lost it.
  • Owners of names in the interim registrar may transfer them to the new registrar, during the 1 year transition period. When they do so, their deposit is returned to them in its entirety.
  • This separation of concerns provides name owners strong guarantees over continued ownership of their existing names, while still permitting innovation and change in the way names are registered and renewed via the controller mechanism.

ETCRegistrarController

ETCRegistrarController is the first implementation of a registration controller for the new registrar. This contract implements the following functionality:

  • The owner of the registrar may set a price oracle contract, which determines the cost of registrations and renewals based on the name and the desired registration or renewal duration.
  • The owner of the registrar may withdraw any collected funds to their account.
  • Users can register new names using a commit/reveal process and by paying the appropriate registration fee.
  • Users can renew a name by paying the appropriate fee. Any user may renew a domain, not just the name's owner.
  • The commit/reveal process is used to avoid frontrunning, and operates as follows:

A user commits to a hash, the preimage of which contains the name to be registered and a secret value.

  • After a minimum delay period and before the commitment expires, the user calls the register function with the name to register and the secret value from the commitment. If a valid commitment is found and the other preconditions are met, the name is registered.
  • The minimum delay and expiry for commitments exist to prevent miners or other users from effectively frontrunnig registrations.

SimplePriceOracle

SimplePriceOracle is a trivial implementation of the pricing oracle for the EthRegistrarController that always returns a fixed price per domain per year, determined by the contract owner.

ECNS Contracts

ECNS ContractNetworkContract AddressTransaction Hash
ECNSRegistryKotti0xdf9e5ce912412ab6af0dd46acff0ffc112bbe36e0xf5cf698aa4cd8b66a0271318206049f227a61a388f3f2ed4295200655bb24034
ETHRegistrarControllerKotti0xb4cc8deec867c8352ec8f86afc945590629ae2600x2f796509547c742e42fa904aecdec04c3afe56a7715b98363cff961918c4a349
PublicResolverKotti0x89e77b691c8e3718b808015dbca094d35d7c37cc0x8cdf00cd13897220ea92e7e2c2b3f7f60456ca3c0f8b4aeca5e939a7b8c45c44

About

No description, website, or topics provided.

Resources

License

BSD-2-Clause, MIT licenses found

Licenses found

BSD-2-Clause
COPYING.BSD-2-CLAUSE
MIT
COPYING.MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp