mirror of https://github.com/embarklabs/embark.git
put contracts inside the contracts field
This commit is contained in:
parent
056b5a0ab9
commit
78a9b31251
|
@ -61,26 +61,34 @@ class ENS {
|
||||||
self.embark.registerContractConfiguration({
|
self.embark.registerContractConfiguration({
|
||||||
"default": {
|
"default": {
|
||||||
"gas": "auto",
|
"gas": "auto",
|
||||||
|
"contracts": {
|
||||||
"ENSRegistry": {
|
"ENSRegistry": {
|
||||||
"deploy": true,
|
"deploy": true,
|
||||||
"args": []
|
"args": []
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ropsten": {
|
"ropsten": {
|
||||||
|
"contracts": {
|
||||||
"ENSRegistry": {
|
"ENSRegistry": {
|
||||||
"address": "0x112234455c3a32fd11230c42e7bccd4a84e02010"
|
"address": "0x112234455c3a32fd11230c42e7bccd4a84e02010"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"rinkeby": {
|
"rinkeby": {
|
||||||
|
"contracts": {
|
||||||
"ENSRegistry": {
|
"ENSRegistry": {
|
||||||
"address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A"
|
"address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"livenet": {
|
"livenet": {
|
||||||
|
"contracts": {
|
||||||
"ENSRegistry": {
|
"ENSRegistry": {
|
||||||
"address": "0x314159265dd8dbb310642f98f50c066173c1259b"
|
"address": "0x314159265dd8dbb310642f98f50c066173c1259b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
self.embark.events.request("config:contractsFiles:add", self.embark.pathToFile('./contracts/ENSRegistry.sol'));
|
self.embark.events.request("config:contractsFiles:add", self.embark.pathToFile('./contracts/ENSRegistry.sol'));
|
||||||
|
@ -92,12 +100,14 @@ class ENS {
|
||||||
self.embark.registerContractConfiguration({
|
self.embark.registerContractConfiguration({
|
||||||
"default": {
|
"default": {
|
||||||
"gas": "auto",
|
"gas": "auto",
|
||||||
|
"contracts": {
|
||||||
"FIFSRegistrar": {
|
"FIFSRegistrar": {
|
||||||
"deploy": true,
|
"deploy": true,
|
||||||
"args": ["$ENSRegistry", rootNode],
|
"args": ["$ENSRegistry", rootNode],
|
||||||
"onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"]
|
"onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
self.embark.events.request("config:contractsFiles:add", self.embark.pathToFile('./contracts/FIFSRegistrar.sol'));
|
self.embark.events.request("config:contractsFiles:add", self.embark.pathToFile('./contracts/FIFSRegistrar.sol'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue