Socket
Socket
Sign inDemoInstall

@ensdomains/ens

Package Overview
Dependencies
80
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0

2

index.js

@@ -6,3 +6,2 @@ const Deed = require('./build/contracts/Deed.json')

const FIFSRegistrar = require('./build/contracts/FIFSRegistrar.json')
const HashRegistrar = require('./build/contracts/HashRegistrar.json')
const Migrations = require('./build/contracts/Migrations.json')

@@ -20,3 +19,2 @@ const Registrar = require('./build/contracts/Registrar.json')

FIFSRegistrar,
HashRegistrar,
Migrations,

@@ -23,0 +21,0 @@ Registrar,

@@ -8,3 +8,2 @@ const ENS = artifacts.require("./ENSRegistry.sol");

// TODO: align the contract name with the source code file name.
const Registrar = artifacts.require('./HashRegistrar.sol');
const web3 = new (require('web3'))();

@@ -20,3 +19,3 @@ const namehash = require('eth-ens-namehash');

return {
namehash: namehash(tld),
namehash: namehash.hash(tld),
sha3: web3.sha3(tld)

@@ -47,24 +46,2 @@ };

/**
* 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) {

@@ -76,6 +53,3 @@ var tld = 'eth';

}
else if (network === 'dev.auction') {
deployAuctionRegistrar(deployer, tld);
}
};

4

package.json
{
"name": "@ensdomains/ens",
"version": "0.5.0",
"version": "0.6.0",
"description": "Implementations for registrars and local resolvers for the Ethereum Name Service",

@@ -30,3 +30,3 @@ "scripts": {

"@ensdomains/test-utils": "1.3.0",
"solidity-coverage": "^0.3.5",
"solidity-coverage": "^0.7.16",
"solium": "^1.0.4",

@@ -33,0 +33,0 @@ "web3-utils": "^1.3.0",

@@ -25,3 +25,2 @@ # ENS

FIFSRegistrar,
HashRegistrar,
Migrations,

@@ -42,10 +41,2 @@ Registrar,

## 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

@@ -114,6 +105,2 @@

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

@@ -7,7 +7,2 @@ module.exports = {

network_id: "*" // Match any network id
},
'dev.auction': {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
}

@@ -17,5 +12,5 @@ },

solc: {
version: "0.7.4",
version: "0.8.3",
}
}
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc