Implementations for smart contracts for the TomoChain Name Service.
- Use
truffle
to create, compile, deploy and test smart contract. - Use
open zeppelin
for smart contract security. - Use
ganache-cli
for local testing.
Install truffle
and ganache-cli
npm install -g truffle
npm install -g ganache-cli
Testing with truffle
truffle test
Get a repost of the Solidity code testing coverage.
Install
npm install -g mkdirp
npm install --save-dev solidity-coverage
Run solidity coverage
./node_modules/.bin/solidity-coverage
Implementation of the TNS registry, the central contract used to look up resolvers and owners for domains.
Implementation of the TNS registrar, which issues (sub-)domains to the first account to request them.
Implementation of the TNS resolver that allows the owner of any domain to configure how its name should resolve.