clean contracts config

This commit is contained in:
Ricardo Guilherme Schmidt 2018-09-05 03:27:32 -03:00
parent f7641dbe29
commit eb5585647f
No known key found for this signature in database
GPG Key ID: 3F95A3AD0B607030
1 changed files with 10 additions and 18 deletions

View File

@ -2,7 +2,6 @@ const { MerkleTree } = require('../utils/merkleTree.js');
const { ReservedUsernames } = require('./ens-usernames/reservedNames.js'); const { ReservedUsernames } = require('./ens-usernames/reservedNames.js');
const merkleTree = new MerkleTree(ReservedUsernames); const merkleTree = new MerkleTree(ReservedUsernames);
const merkleRoot = merkleTree.getHexRoot();
module.exports = { module.exports = {
"default": { "default": {
@ -18,16 +17,21 @@ module.exports = {
"gas": "auto", "gas": "auto",
"contracts": { "contracts": {
"TestToken": { "TestToken": {
"args": [ ] "deploy": false
},
"MerkleProofWrapper": {
"deploy": false
},
"ERC20Receiver": {
"deploy": false
}, },
"ENSRegistry": { "ENSRegistry": {
"deploy": true "deploy": false
}, },
"PublicResolver": { "PublicResolver": {
"args": ["$ENSRegistry"], "args": ["$ENSRegistry"],
"deploy": true "deploy": false
}, },
"UsernameRegistrar": { "UsernameRegistrar": {
"args": [ "args": [
"$TestToken", "$TestToken",
@ -59,15 +63,6 @@ module.exports = {
] ]
}, },
"UsernameRegistrar": { "UsernameRegistrar": {
"args": [
"$TestToken",
"$ENSRegistry",
"$PublicResolver",
"0x5f7791d31ca0493e9ca7c9ca16695ecd9d5044768674d14d31ab5d8277518fff",
3,
merkleTree.getHexRoot(),
"0x0"
],
"onDeploy": [ "onDeploy": [
"ENSRegistry.methods.setSubnodeOwner('0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae', '0xbd99f8d5e7f81d2d7c1da34b67a2bb3a94dd8c9b0ab40ddc077621b98405983b', UsernameRegistrar.address).send()" "ENSRegistry.methods.setSubnodeOwner('0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae', '0xbd99f8d5e7f81d2d7c1da34b67a2bb3a94dd8c9b0ab40ddc077621b98405983b', UsernameRegistrar.address).send()"
] ]
@ -88,14 +83,12 @@ module.exports = {
"UsernameRegistrar": { "UsernameRegistrar": {
"address": "0xDBf9038cf5Aaa030890790dB87E746E00Fc352b3" "address": "0xDBf9038cf5Aaa030890790dB87E746E00Fc352b3"
}, },
"ERC20Receiver": { "deploy": false },
"MerkleProof": { "MerkleProof": {
"address": "0x713ED9846463235df08D92B886938651105D3940" "address": "0x713ED9846463235df08D92B886938651105D3940"
}, },
"MerkleProofWrapper": { "MerkleProofWrapper": {
"address": "0x76E55E13C5891a90f7fCA2e1238a6B3463F564e2" "address": "0x76E55E13C5891a90f7fCA2e1238a6B3463F564e2"
}, },
"ERC20Receiver": { "deploy": false },
"SafeMath": { "SafeMath": {
"address": "0xA115a57952D3337e2a1aB3Cb82bA376EEcDDc469" "address": "0xA115a57952D3337e2a1aB3Cb82bA376EEcDDc469"
} }
@ -123,8 +116,7 @@ module.exports = {
}, },
"UsernameRegistrar": { "UsernameRegistrar": {
"address": "0x028F3Df706c5295Ba283c326F4692c375D14cb68" "address": "0x028F3Df706c5295Ba283c326F4692c375D14cb68"
}, }
"ERC20Receiver": { "deploy": false }
} }
}, },
"rinkeby":{ "rinkeby":{