remilias

所属分类:以太坊
开发工具:Solidity
文件大小:0KB
下载次数:0
上传日期:2023-09-09 14:33:56
上 传 者sh-1993
说明:  雷米利亚斯,eth,,
(remilias.eth,,)

文件列表:
.env.org (56, 2023-12-31)
.eslintrc.js (380, 2023-12-31)
.npmignore (48, 2023-12-31)
.nvmrc (9, 2023-12-31)
.prettierignore (108, 2023-12-31)
.prettierrc.json (411, 2023-12-31)
.solhint.json (123, 2023-12-31)
.soliumrc.json (168, 2023-12-31)
LICENSE.txt (1062, 2023-12-31)
contracts/ (0, 2023-12-31)
contracts/dnsregistrar/ (0, 2023-12-31)
contracts/dnsregistrar/DNSClaimChecker.sol (2119, 2023-12-31)
contracts/dnsregistrar/DNSRegistrar.sol (6417, 2023-12-31)
contracts/dnsregistrar/IDNSRegistrar.sol (424, 2023-12-31)
contracts/dnsregistrar/OffchainDNSResolver.sol (7018, 2023-12-31)
contracts/dnsregistrar/PublicSuffixList.sol (135, 2023-12-31)
contracts/dnsregistrar/RecordParser.sol (1107, 2023-12-31)
contracts/dnsregistrar/SimplePublicSuffixList.sol (547, 2023-12-31)
contracts/dnsregistrar/TLDPublicSuffixList.sol (486, 2023-12-31)
contracts/dnsregistrar/mocks/ (0, 2023-12-31)
contracts/dnsregistrar/mocks/DummyDnsRegistrarDNSSEC.sol (859, 2023-12-31)
contracts/dnsregistrar/mocks/DummyExtendedDNSSECResolver.sol (653, 2023-12-31)
contracts/dnsregistrar/mocks/DummyLegacyTextResolver.sol (571, 2023-12-31)
contracts/dnssec-oracle/ (0, 2023-12-31)
contracts/dnssec-oracle/BytesUtils.sol (12921, 2023-12-31)
contracts/dnssec-oracle/DNSSEC.sol (632, 2023-12-31)
contracts/dnssec-oracle/DNSSECImpl.sol (15456, 2023-12-31)
contracts/dnssec-oracle/Owned.sol (363, 2023-12-31)
contracts/dnssec-oracle/RRUtils.sol (14107, 2023-12-31)
contracts/dnssec-oracle/SHA1.sol (9096, 2023-12-31)
contracts/dnssec-oracle/algorithms/ (0, 2023-12-31)
contracts/dnssec-oracle/algorithms/Algorithm.sol (532, 2023-12-31)
contracts/dnssec-oracle/algorithms/DummyAlgorithm.sol (371, 2023-12-31)
contracts/dnssec-oracle/algorithms/EllipticCurve.sol (10899, 2023-12-31)
contracts/dnssec-oracle/algorithms/ModexpPrecompile.sol (836, 2023-12-31)
contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol (1275, 2023-12-31)
contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol (1329, 2023-12-31)
contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol (1281, 2023-12-31)
... ...

# Remilias Name Service Core contracts of [remilias.name](https://remilias.name) on top of ENS. For documentation of the ENS system, see [github.com/ensdomains/ens-contracts](https://github.com/ensdomains/ens-contracts). ## npm package This repo doubles as an npm package with the compiled JSON contracts ```js import { RemiliasRegistrar, RemiliasNameWrapper, RemiliasPublicResolver, RemiliasRegistrarController, BaseRegistrar, BaseRegistrarImplementation, BulkRenewal, ENS, ENSRegistry, ENSRegistryWithFallback, ETHRegistrarController, FIFSRegistrar, LinearPremiumPriceOracle, PriceOracle, PublicResolver, Resolver, ReverseRegistrar, StablePriceOracle, TestRegistrar, } from '@ensdomains/ens-contracts' ``` ## Importing from solidity ``` // Registry import '@ensdomains/ens-contracts/contracts/registry/ENS.sol'; import '@ensdomains/ens-contracts/contracts/registry/ENSRegistry.sol'; import '@ensdomains/ens-contracts/contracts/registry/ENSRegistryWithFallback.sol'; import '@ensdomains/ens-contracts/contracts/registry/ReverseRegistrar.sol'; import '@ensdomains/ens-contracts/contracts/registry/TestRegistrar.sol'; // EthRegistrar import '@ensdomains/ens-contracts/contracts/ethregistrar/BaseRegistrar.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/RemiliasRegistrar.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/BaseRegistrarImplementation.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/BulkRenewal.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/ETHRegistrarController.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/LinearPremiumPriceOracle.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/PriceOracle.sol'; import '@ensdomains/ens-contracts/contracts/ethregistrar/StablePriceOracle.sol'; // Resolvers import '@ensdomains/ens-contracts/contracts/resolvers/PublicResolver.sol'; import '@ensdomains/ens-contracts/contracts/resolvers/RemiliasPublicResolver.sol'; import '@ensdomains/ens-contracts/contracts/resolvers/RemiliasResolver.sol'; import '@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol'; ``` ## Accessing to binary file. If your environment does not have compiler, you can access to the raw hardhat artifacts files at `node_modules/@ensdomains/ens-contracts/artifacts/contracts/${modName}/${contractName}.sol/${contractName}.json` ## Contracts ## RemiliasRegistrar Implements an [Remilias.name](https://remilias.name/) registrar intended for the remilias.eth 2LD. RemiliasRegistrar is the contract that owns the remilias 2LD in the ENS registry. This contract implements a minimal set of functionality: - The owner of the registrar may add and remove controllers. - Controllers may register new domains for each remilias ecosystem NFT. They can not change the ownership or burn existing domains. - Name owners may transfer ownership to another address. - New NFT holders may reclaim ownership registered domain. - Name owners may reclaim ownership in the ENS registry if they have lost it. 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 via the controller mechanism. ### RemiliasRegistrarController RemiliasRegistrarController is the first implementation of a registration controller for the remilias registrar. This contract implements the following functionality: - The owner of the registrar may add new collections to contract. - Users can register new names if they hold approved collections. - Users can reset ownership of a name after receiving registered NFT. ## Resolvers Resolver implements a general-purpose ENS resolver that is suitable for most standard ENS use cases. The public resolver permits updates to ENS records by the owner of the corresponding name. PublicResolver includes the following profiles that implements different EIPs. - ABIResolver = EIP 205 - ABI support (`ABI()`). - AddrResolver = EIP 137 - Contract address interface. EIP 2304 - Multicoin support (`addr()`). - ContentHashResolver = EIP 1577 - Content hash support (`contenthash()`). - InterfaceResolver = EIP 165 - Interface Detection (`supportsInterface()`). - NameResolver = EIP 181 - Reverse resolution (`name()`). - PubkeyResolver = EIP 619 - SECP256k1 public keys (`pubkey()`). - TextResolver = EIP 634 - Text records (`text()`). - DNSResolver = Experimental support is available for hosting DNS domains on the Ethereum blockchain via ENS. [The more detail](https://veox-ens.readthedocs.io/en/latest/dns.html) is on the old ENS doc. ## Developer guide ### Forking mainnet `npx hardhat node --fork https://mainnet.infura.io/v3/INFURA_KEY --hostname 0.0.0.0` ### Prettier pre-commit hook This repo runs a husky precommit to prettify all contract files to keep them consistent. Add new folder/files to `prettier format` script in package.json. If you need to add other tasks to the pre-commit script, add them to `.husky/pre-commit` ### How to setup ``` git clone https://github.com/ensdomains/ens-contracts cd ens-contracts yarn ```

近期下载者

相关文件


收藏者