use known addresses for ENSRegistrery

This commit is contained in:
Jonathan Rainville 2018-10-02 14:56:07 -04:00 committed by Pascal Precht
parent 3245a65100
commit c0d32e3581
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D

View File

@ -304,6 +304,52 @@ class ENS {
if (self.configured) {
return cb();
}
const knownConfigs = {
"ropsten": {
"ENSRegistry": {
"address": "0x112234455c3a32fd11230c42e7bccd4a84e02010",
"silent": true
},
"Resolver": {
"deploy": false
},
"FIFSRegistrar": {
"deploy": false
}
},
"rinkeby": {
"ENSRegistry": {
"address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A",
"silent": true
},
"Resolver": {
"deploy": false
},
"FIFSRegistrar": {
"deploy": false
}
},
"livenet": {
"ENSRegistry": {
"address": "0x314159265dd8dbb310642f98f50c066173c1259b",
"silent": true
},
"Resolver": {
"deploy": false
},
"FIFSRegistrar": {
"deploy": false
}
}
};
knownConfigs.testnet = knownConfigs.ropsten; // Synonyms
knownConfigs.mainnet = knownConfigs.livenet; // Synonyms
if (knownConfigs[this.env]) {
self.ensConfig = utils.recursiveMerge(self.ensConfig, knownConfigs[this.env]);
}
async.waterfall([
function registry(next) {
self.events.request('deploy:contract', self.ensConfig.ENSRegistry, (err, _receipt) => {