Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.03 KB

TNS

Implementations for smart contracts for the TomoChain Name Service.

Techincal Stack

  • Use truffle to create, compile, deploy and test smart contract.
  • Use open zeppelin for smart contract security.
  • Use ganache-cli for local testing.

Install the project dependency

Install truffle and ganache-cli

npm install -g truffle
npm install -g ganache-cli

Local testing

Testing with truffle

truffle test

Solidity coverage

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

TNSRegistry.sol

Implementation of the TNS registry, the central contract used to look up resolvers and owners for domains.

TNSRegistrar.sol

Implementation of the TNS registrar, which issues (sub-)domains to the first account to request them.

TNSResolver.sol

Implementation of the TNS resolver that allows the owner of any domain to configure how its name should resolve.