yarn install
ornpm install
depending on your preference- make sure you have testrpc running , and change
truffle.js
to point to that network. e.g.localhost:8545
. truffle compile
to create the json contract artifactstruffle migrate
to deploy the contracts onto the network
docker-compose -f docker/docker-compose.yml up -d
- once the container starts, find the hash of the truffle3 container service and run
docker attach <hash>
yarn install
ornpm install
depending on your preference- change
truffle.js
to point to that network. this istestrpc:8545
from inside the container truffle compile
to create the json contract artifactstruffle migrate
to deploy the contracts onto the network
Once the ENS app has been deployed onto the network, you can start using the command line command:
root@6021c4be18aa:/app# npm run -s ens
Usage: bin/ensa.js [command] [options]
Commands:
winner Current winner of bid
bid Place a bid on a domain name
reveal Reveal your bid on a domain name
Options:
--help Show help [boolean]
and once you choose a command:
root@6021c4be18aa:/app# npm run -s ens -- winner -n 'NewDomain'
bin/ensa.js winner
Options:
--help Show help [boolean]
--host, -h HTTP host of Ethereum node [default: "testrpc"]
--port, -p HTTP port [default: "8545"]
--registrar, -r The address of the registrar [string] [required]
--name, -n The name you want to register [string] [required]
--account, -a The address to register the domain name [string] [required]
Missing required arguments: account, registrar