Skip to content

Commit

Permalink
feat(contracts): removing unnecesary dependencies
Browse files Browse the repository at this point in the history
feat(contracts): rename sha3 method, apply recommend suggestions from code review

feat(contracts): FDSRegistry is ENSRegistry, supports @ensdomains interface. fix prettier issues. removed subdomain
  • Loading branch information
molekilla committed Jun 16, 2022
1 parent e1c81a2 commit c07a3d4
Show file tree
Hide file tree
Showing 9 changed files with 830 additions and 496 deletions.
48 changes: 0 additions & 48 deletions contracts/ENS.sol

This file was deleted.

161 changes: 0 additions & 161 deletions contracts/ENSRegistry.sol

This file was deleted.

9 changes: 7 additions & 2 deletions contracts/FDSRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ import "@ensdomains/ens-contracts/contracts/ethregistrar/BaseRegistrarImplementa
* The ENS registry contract.
*/
contract FDSRegistrar is BaseRegistrarImplementation {
bytes32 constant NAME_HASH = 0x854683790d7d8c6e4d741a8a5f01dc2952c51f38407545ea5117889dc81bd141;
bytes32 constant ZERO_HASH = 0x0000000000000000000000000000000000000000000000000000000000000000;

// from specification https://eips.ethereum.org/EIPS/eip-137
bytes32 constant NAME_HASH = keccak256(abi.encodePacked(ZERO_HASH, keccak256(abi.encodePacked("fds"))));
// 0x854683790d7d8c6e4d741a8a5f01dc2952c51f38407545ea5117889dc81bd141;

/**
* @dev Constructs a new ENS registrar.
*/
constructor(ENS _registry)
BaseRegistrarImplementation(_registry, NAME_HASH) {
BaseRegistrarImplementation(_registry, NAME_HASH) {
}


Expand Down
17 changes: 17 additions & 0 deletions contracts/FDSRegistry.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@ensdomains/ens-contracts/contracts/registry/ENSRegistry.sol";

/**
* The FDS registry contract.
*/
contract FDSRegistry is ENSRegistry {

/**
* @dev Constructs a new registry
*/
constructor()
ENSRegistry() {
}
}
3 changes: 2 additions & 1 deletion contracts/PublicResolver.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ENS.sol";
import "@ensdomains/ens-contracts/contracts/registry/ENS.sol";


/**
* A simple resolver anyone can use; only allows the owner of a node to set its
Expand Down
40 changes: 0 additions & 40 deletions contracts/SubdomainRegistrar.sol

This file was deleted.

Loading

0 comments on commit c07a3d4

Please sign in to comment.