second-state/smart-contract-search-engine

Add statistics to the ethereum and cmt demo sites

juntao opened this issue · 2 comments

The demo sites should say how many ABIs and how many contracts are indexed so far.

This has now been achieved on the TestNet as per the image below.
Screen Shot 2019-07-08 at 9 18 38 pm
The MainNet is still running V1 code, which does not have the separate indices for ABI, and All. When we update the MainNet to the new code base the statistics will then be able to be displayed.

This is now part of the es-ss.js
These values can be accessed via a single command (with the API taking care of the index location/name as well as the authentication/access control).

Just returns a single integer to the es-ss.js call

https://github.com/second-state/es-ss.js#get-abi-count
https://github.com/second-state/es-ss.js#get-all-count
https://github.com/second-state/es-ss.js#get-contract-count

These can now bee seen on both CMT TestNet [1] and ETH MainNet [2]

[1] https://cmt-testnet.search.secondstate.io/
[2] https://ethereum.search.secondstate.io/ethIndex.html