- Solidity: 0.4.24
- Truffle
- Ganache
Portal Network Token (PRT) is a requirement for Portal Network’s blockchain name service to be decentralized, scalable and operate across different protocols. It will fuel the adoption of its BNS standard through built-in incentives for stakeholders, and will be the access gate to Portal Network’s additional services like MUMEI and KAIZEN. PRT tokens are fungible, ERC20-based Ethereum Tokens.
An ERC20 standard token, built using the OpenZeppelin framework.
- Name: Portal Network Token
- Symbol: PRT
- Decimals: 18
- Total Supply: 4000000000
Universal Registrar contract is to register a blockchain name service, it using Vickrey auction with the bidding flow.
With Universal Registrar, is implement the secret auction with Portal Network Token contract, the Portal Network Token contract is the pool for check the bidding price, and it can be check at reveal period, this action wont expose the real bid price of the sealed bid.
Universal Registry is to set the blockchain name service owner, ttl and subdomain.
MacOS installation
brew install node
npm i -g ganache-cli
npm i -g truffle
Start ganache and create 1001
accounts for testing
ganache-cli -a 1001
Test smart contracts
truffle compile
truffle migrate
truffle test
We use solidity-coverage for the code coverage of smart contracts.
Run the command below.
./node_modules/.bin/solidity-coverage
Also can check the code coverage report, HERE