Skip to content

Commit fd77945

Browse files
committed
Remove obsolete hashregistrar references
1 parent 7408ee9 commit fd77945

File tree

3 files changed

+0
-38
lines changed

3 files changed

+0
-38
lines changed

README.md

-13
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
ENS,
2323
ENSRegistry,
2424
FIFSRegistrar,
25-
HashRegistrar,
2625
Migrations,
2726
Registrar,
2827
ReverseRegistrar,
@@ -38,14 +37,6 @@ Implementation of the ENS Registry, the central contract used to look up resolve
3837

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

41-
## HashRegistrar.sol
42-
43-
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!
44-
45-
## HashRegistrarSimplified.sol
46-
47-
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.
48-
4940
# ENS Registry interface
5041

5142
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).
@@ -109,8 +100,4 @@ Deploy `ENS` and `FIFSRegistrar` to the private network, the deployment process
109100

110101
$ truffle migrate --network dev.fifs
111102

112-
alternatively, deploy the `HashRegistrar`:
113-
114-
$ truffle migrate --network dev.auction
115-
116103
Check the truffle [documentation](http://truffleframework.com/docs/) for more information.

index.js

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const DeedImplementation = require('./build/contracts/DeedImplementation.json')
33
const ENS = require('./build/contracts/ENS.json')
44
const ENSRegistry = require('./build/contracts/ENSRegistry.json')
55
const FIFSRegistrar = require('./build/contracts/FIFSRegistrar.json')
6-
const HashRegistrar = require('./build/contracts/HashRegistrar.json')
76
const Migrations = require('./build/contracts/Migrations.json')
87
const Registrar = require('./build/contracts/Registrar.json')
98
const Resolver = require('./build/contracts/NameResolver.json')
@@ -16,7 +15,6 @@ module.exports = {
1615
ENS,
1716
ENSRegistry,
1817
FIFSRegistrar,
19-
HashRegistrar,
2018
Migrations,
2119
Registrar,
2220
Resolver,

migrations/2_deploy_contracts.js

-23
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const FIFSRegistrar = artifacts.require('./FIFSRegistrar.sol');
55
// the compiled contract JSON file name. So even though `Registrar.sol` is
66
// not existed, it's valid to put it here.
77
// TODO: align the contract name with the source code file name.
8-
const Registrar = artifacts.require('./HashRegistrar.sol');
98
const web3 = new (require('web3'))();
109
const namehash = require('eth-ens-namehash');
1110

@@ -42,28 +41,6 @@ function deployFIFSRegistrar(deployer, tld) {
4241
});
4342
}
4443

45-
/**
46-
* Deploy the ENS and HashRegistrar(Simplified)
47-
*
48-
* @param {Object} deployer truffle deployer helper
49-
* @param {string} tld tld which the Hash registrar takes charge of
50-
*/
51-
function deployAuctionRegistrar(deployer, tld) {
52-
var rootNode = getRootNodeFromTLD(tld);
53-
54-
// Deploy the ENS first
55-
deployer.deploy(ENS)
56-
.then(() => {
57-
// Deploy the HashRegistrar and bind it with ENS
58-
// The last argument `0` specifies the auction start date to `now`
59-
return deployer.deploy(Registrar, ENS.address, rootNode.namehash, 0);
60-
})
61-
.then(function() {
62-
// Transfer the owner of the `rootNode` to the HashRegistrar
63-
return ENS.at(ENS.address).then((c) => c.setSubnodeOwner('0x0', rootNode.sha3, Registrar.address));
64-
});
65-
}
66-
6744
module.exports = function(deployer, network) {
6845
var tld = 'eth';
6946

0 commit comments

Comments
 (0)