Portal Network: Domain Market Cap Update. (Week 5)

A
portalnetworkofficial
4 min readMar 4, 2019

High-level summary of this post:

Domain Market Cap (DMC) Updates are as follow

  • Front-end — Settings: User wallet, wallet menu
  • New Features — Create wallet (deposit and withdrawal)
  • Back-end — Wallet api integration (get balance)
  • Wallet transaction table schema upgrade
  • This week we’ve been focusing on the “User Wallet” and functions related to it, such as send/receive.
  • We have also updated our test cases, which increased our code coverage to 47.42% (https://github.com/PortalNetwork/contracts/blob/master/COVERAGE.md)

What is the weekly update?

Weekly update is our effort to show what we, the team, have been working on every week relating to Portal Network. We also try to film short videos to make it hopefully more enjoyable. We believe this is the best way for you, the user, to track our progress. Some of things we write in here might be very redundant, such as bug fixes and UI upgrades, so if you are in hurry, just read the High-level summary.

You may have seen these words, BNS, DMC, ENS, being thrown around and if you’re wondering what the hell they are or more importantly what they mean … the list below is for you.

BNS — Blockchain Name Service

DMC — Domain Market Cap community.

ENS — Ethereum Name Service

Font-end Update: Wallet

Once the wallet is accessed, you can take care of all tasks, from checking your balance to managing domain names to interacting with BNS contracts.

Font-end Update: Transaction History

Transaction history shows both deposit and withdraw information. You may also check directly on blockchain explorer, such as Etherscan.

New feature: Deposit

We want to make sure the design is as simple as possible, so it suitable for both new and old user.

New features: Withdraw

The withdrawal feature is also very straightforward. In the future, we will add other tokens for deposit and withdrawal. Let us know what feature you would like to see next.

Test case updates: Code coverage 47.42%

The smart contract have to be test before launch to the main net. We have to test whole of our contract codes for sure, and we using truffle to test all the smart contract code, and using solidity-coverage to run the code coverage for all line of our code.

We have updated our test cases, which increased our code coverage to 47.42% (https://github.com/PortalNetwork/contracts/blob/master/COVERAGE.md)

The main contracts, PortalNetworkToken.sol, PortalNetworkTokenConfig.sol and UniversalRegistrar.sol have been increase the code coverage over 90%.

Test coverage is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs. A program with high test coverage, measured as a percentage, has had more of its source code executed during testing, which suggests it has a lower chance of containing undetected software bugs compared to a program with low test coverage.

Reference: https://en.wikipedia.org/wiki/Code_coverage

So there it is! We hope that you enjoy reading Portal Network’s Week 5update. We’ve enjoyed creating Domain Market Cap, and we can’t wait to invite all of you to use it.

Please invite friends who are new to crypto to try it out, and let us know how it goes! As always, you can audit our open-source code on Github, reach out to us at telegram, and comment on our social channels.

Always here to help you on your crypto journey,

#teamPortal #itisPortal

www.portal.network
Twitter
Instagram
Reddit
Facebook

--

--