ethpm / escape-truffle

Ethereum Package Registry (Truffle)
10 stars 8 forks source link

Add script to create registry domains on Ropsten ENS (.test) #42

Closed cgewecke closed 6 years ago

cgewecke commented 6 years ago

40

Adds a small utility that lets users register a domain and associate it with a PackageIndex contract via the Ropsten FIFS registrar so that they (and we) can test the proposed web3 interface using ENS address resolution.

After deploying a copy of the registry to ropsten using npm run deploy:ropsten the user can list a name under the ENSName key for the ropsten entry in their .secrets.js file:

module.exports = {
  ropsten: {
    mnemonic: "<mnemonic>",
    infura: "<api-key>",
    ENSName: "<domain-name>"
  },
  rinkeby: {
     ...
  }
}

Then execute:

$ npm run ens:register

Sample Output

ens_a

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 121


Totals Coverage Status
Change from base Build 115: 0.0%
Covered Lines: 385
Relevant Lines: 391

💛 - Coveralls