Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Remove obsolete hashregistrar references
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Jan 25, 2021
1 parent 7408ee9 commit fd77945
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
ENS,
ENSRegistry,
FIFSRegistrar,
HashRegistrar,
Migrations,
Registrar,
ReverseRegistrar,
Expand All @@ -38,14 +37,6 @@ Implementation of the ENS Registry, the central contract used to look up resolve

Implementation of a simple first-in-first-served registrar, which issues (sub-)domains to the first account to request them.

## HashRegistrar.sol

Implementation of a registrar based on second-price blind auctions and funds held on deposit, with a renewal process that weights renewal costs according to the change in mean price of registering a domain. Largely untested!

## HashRegistrarSimplified.sol

Simplified version of the above, with no support for renewals. This is the current proposal for interim registrar of the ENS system until a permanent registrar is decided on.

# ENS Registry interface

The ENS registry is a single central contract that provides a mapping from domain names to owners and resolvers, as described in [EIP 137](https://github.com/ethereum/EIPs/issues/137).
Expand Down Expand Up @@ -109,8 +100,4 @@ Deploy `ENS` and `FIFSRegistrar` to the private network, the deployment process

$ truffle migrate --network dev.fifs

alternatively, deploy the `HashRegistrar`:

$ truffle migrate --network dev.auction

Check the truffle [documentation](http://truffleframework.com/docs/) for more information.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const DeedImplementation = require('./build/contracts/DeedImplementation.json')
const ENS = require('./build/contracts/ENS.json')
const ENSRegistry = require('./build/contracts/ENSRegistry.json')
const FIFSRegistrar = require('./build/contracts/FIFSRegistrar.json')
const HashRegistrar = require('./build/contracts/HashRegistrar.json')
const Migrations = require('./build/contracts/Migrations.json')
const Registrar = require('./build/contracts/Registrar.json')
const Resolver = require('./build/contracts/NameResolver.json')
Expand All @@ -16,7 +15,6 @@ module.exports = {
ENS,
ENSRegistry,
FIFSRegistrar,
HashRegistrar,
Migrations,
Registrar,
Resolver,
Expand Down
23 changes: 0 additions & 23 deletions migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const FIFSRegistrar = artifacts.require('./FIFSRegistrar.sol');
// the compiled contract JSON file name. So even though `Registrar.sol` is
// not existed, it's valid to put it here.
// TODO: align the contract name with the source code file name.
const Registrar = artifacts.require('./HashRegistrar.sol');
const web3 = new (require('web3'))();
const namehash = require('eth-ens-namehash');

Expand Down Expand Up @@ -42,28 +41,6 @@ function deployFIFSRegistrar(deployer, tld) {
});
}

/**
* Deploy the ENS and HashRegistrar(Simplified)
*
* @param {Object} deployer truffle deployer helper
* @param {string} tld tld which the Hash registrar takes charge of
*/
function deployAuctionRegistrar(deployer, tld) {
var rootNode = getRootNodeFromTLD(tld);

// Deploy the ENS first
deployer.deploy(ENS)
.then(() => {
// Deploy the HashRegistrar and bind it with ENS
// The last argument `0` specifies the auction start date to `now`
return deployer.deploy(Registrar, ENS.address, rootNode.namehash, 0);
})
.then(function() {
// Transfer the owner of the `rootNode` to the HashRegistrar
return ENS.at(ENS.address).then((c) => c.setSubnodeOwner('0x0', rootNode.sha3, Registrar.address));
});
}

module.exports = function(deployer, network) {
var tld = 'eth';

Expand Down

0 comments on commit fd77945

Please sign in to comment.