mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 13:48:49 +00:00
use known addresses for ENSRegistrery
This commit is contained in:
parent
3245a65100
commit
c0d32e3581
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user