Giter Site home page Giter Site logo

buildonviction / tomoscan Goto Github PK

View Code? Open in Web Editor NEW
47.0 9.0 56.0 6.65 MB

TomoScan provides a user friendly, details and perfection-oriented user interface for TomoChain block explorer. From a user perspective, TomoScan brings TomoChain’s transparency to users, because all block, transaction, finality, smart contracts, DApp and token information are read from TomoChain and shown to users

Home Page: https://scan.tomochain.com

License: MIT License

CSS 0.16% Vue 50.47% JavaScript 42.18% HTML 0.26% Shell 0.07% SCSS 6.85%
blockexplorer blockchain tomochain tomoscan

tomoscan's Introduction

TomoChain Explorer - Tomoscan

Join the chat at https://gitter.im/tomochain/tomoscan

Tomoscan is a BlockExplorer for TomoChain, built with VueJS, Nuxt and MongoDB. Tomoscan allows you to explore and search the TomoChain for transactions, addresses, tokens, prices and other activities taking place on TomoChain.

A demo instance connected to the TomoChain testnet is available at scan.testnet.tomochain.com.

Current Features

  • Browse blocks, transactions, accounts and contracts
  • View pending transactions
  • Upload & verify contract sources
  • Display the current state of verified contracts
  • Responsive layout

Missing a feature? Please request it by creating a new Issue.

Usage notes

The explorer is still under heavy development, if you find any problems please create an issue or prepare a pull request.

Getting started

Requirements

Setup

Copy and modify your config

cp client/.env.example client/.env
cp server/config/default.json server/config/local.json

Install library

cd client/ && npm install
cd server/ && npm install

Run

After modify your config & install library. Your environment is ready to start

  • Run client to view in browser
cd client/ && npm run dev
  • Run API server for client
cd server/ && npm run server-dev
  • Run crawl data for API server
cd server/ && npm run crawl-dev
  • Get transaction pending
cd server/ && npm run subscribe-pending-tx-dev

tomoscan's People

Contributors

0xvoidmain avatar dependabot[bot] avatar dinhln89 avatar etienne-napoleone avatar gitter-badger avatar hoangkianh avatar khaihkd avatar pqv199x avatar thanhson1085 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tomoscan's Issues

endpoint urls

api endpoint links show parameters in the url, e.g.

/address/0x20f6cef208a0e6bd82ec14e1388b637ceaa3e2f2?page=1&limit=15&address=0x20f6cef208a0e6bd82ec14e1388b637ceaa3e2f2

nicer would be just /address/0x20f6cef208a0e6bd82ec14e1388b637ceaa3e2f2

Speed up docker build

COPY server .

RUN apk --no-cache --virtual deps add \
      python \
      make \
      g++ \
      bash \
      git \
    && npm install -g \
       npm@latest \
       dotenv \
       node-gyp \
       pm2 \
    && npm install \
    && npm run build \
    && apk del deps

You should copy package*json and npm install before doing COPY server .
Same as you did with Tomomaster

Update README

We should update README:

  • introduction
  • guide for installation

High cpu load on DB

There seems to be something wrong between the DB and the tomoscan crawler. The CPU usage of the mongodb container keeps increasing.

(over ~12 hours:)
tomoscan

After restarting the crawler, the CPU consumption it's back to normal but starts to increase again

Develop "read contract" tab

In contract details page, we should have "read contract" tab.

For example, if the contract is ERC20, "read contract" tab should support read totalSupply, decimals ...

Update the order in the menu, update footer

Move blocks to the last position in the top menu, and lists under search box
Change wallets to accounts

At the footer, update the text to tomo/v1.8.4-unstable-ee4379f0/linux-amd64/go1.9.4

Show signers list

In block list and block details, we should show who sign the block.

Reward info

TomoChain POSV has new reward engine, so Tomoscan should show reward detail for masternodes.

Repo naming

So the project names and the app names are different, which seems like a good thing to me (tomo-explorer -> tomoscan).

But what do you think about keeping a consistent naming scheme for all projects? For now we have different naming like tomo-*, tomochain-*.

In my opinion, tomochain-* makes more sense as tomo may refer to the coin more than the blockchain in people's mind.

Therefor would it be possible to rename the repo tomo-explorer to tomochain-explorer? I'm asking that now because you can rename a github repo quire easily but it's not possible for docker repo for example, so fixing the naming convention now could help keeping a cleaner infrastructure

Block status

Show status of block, it is finalized or not yet

Activate Travis on this repo

Travis is necessary on this repo to enable building and pushing images to docker cloud.
Also it would be a great thing to add unit tests and linting test later.

Vulnerable dependencies

Please check if those dependencies can be updated (audit run against server/package.json) :

/app # npm audit
                                                                                
                       === npm audit security report ===                        
                                                                                
                                                                                
                                 Manual Review                                  
             Some vulnerabilities require your attention to resolve             
                                                                                
          Visit https://go.npm.me/audit-guide for additional guidance           
                                                                                
                                                                                
  Low             Prototype Pollution                                           
                                                                                
  Package         lodash                                                        
                                                                                
  Patched in      >=4.17.5                                                      
                                                                                
  Dependency of   nodemailer-sendgrid-transport                                 
                                                                                
  Path            nodemailer-sendgrid-transport > sendgrid > lodash             
                                                                                
  More info       https://nodesecurity.io/advisories/577                        
                                                                                
                                                                                
  Low             Prototype Pollution                                           
                                                                                
  Package         lodash                                                        
                                                                                
  Patched in      >=4.17.5                                                      
                                                                                
  Dependency of   npm                                                           
                                                                                
  Path            npm > cli-table2 > lodash                                     
                                                                                
  More info       https://nodesecurity.io/advisories/577                        
                                                                                
                                                                                
  Low             Prototype Pollution                                           
                                                                                
  Package         lodash                                                        
                                                                                
  Patched in      >=4.17.5                                                      
                                                                                
  Dependency of   npm                                                           
                                                                                
  Path            npm > npm-audit-report > cli-table2 > lodash                  
                                                                                
  More info       https://nodesecurity.io/advisories/577                        
                                                                                
                                                                                
  Low             Prototype Pollution                                           
                                                                                
  Package         lodash                                                        
                                                                                
  Patched in      >=4.17.5                                                      
                                                                                
  Dependency of   slack-notify                                                  
                                                                                
  Path            slack-notify > lodash                                         
                                                                                
  More info       https://nodesecurity.io/advisories/577                        
                                                                                
found 4 low severity vulnerabilities in 96004 scanned packages
  4 vulnerabilities require manual review. See the full report for details.

Color for tx status

TxReceipt Status: Success should be blue (or green), to make it more visible

fail or revert should be red

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.