Coder Social home page Coder Social logo

ostdotcom / ost-view Goto Github PK

View Code? Open in Web Editor NEW
30.0 21.0 5.0 2.29 MB

OST VIEW is the custom-built block explorer from OST for OpenST Utility Blockchains

License: GNU General Public License v3.0

JavaScript 88.10% CSS 4.76% HTML 7.14%
ost openst blockchain-explorer dynamodb ost-view economy

ost-view's Introduction

OST View

OST VIEW is the home grown multi-chain block explorer from OST for OpenST Utility Blockchains.

To parse blockchains, OST VIEW uses the OST Block Scanner.

Install

  git clone https://github.com/ostdotcom/ost-view.git
  cd ost-view/
  npm install

Setup

1. Install Prerequisites

2. Run DynamoDBLocal.jar, if you are not using AWS DynamoDB Service

  # NOTE: Make sure to change DYNAMODB_PATH
  export DYNAMODB_PATH=~/dynamodb_local_latest
  java -Djava.library.path=$DYNAMODB_PATH/DynamoDBLocal_lib/ -jar $DYNAMODB_PATH/DynamoDBLocal.jar -sharedDb -dbPath $DYNAMODB_PATH/

3. Create OST VIEW configuration file

Refer to configuration.json.example to create a new configuration file.

4. Create Global DynamoDB tables:

  node ./node_modules/@ostdotcom/ost-block-scanner/tools/initialSetup.js --configFile $(pwd)/configuration.json

5. Add a new chain and create chain-specific shared DynamoDB tables:

  • Mandatory parameters: chainId, networkId, configFile
  • Optional parameters (each defaults to 1):
    • blockShardCount: number of block shards to be created
    • economyAddressShardCount: number of economy address shards to be created
    • transactionShardCount: number of transaction shards to be created
  # NOTE:
  # Make sure chain configuration is present in configuration file before starting this step. 
  # Optional parameters are used to create entity-specific sharded tables. 
  # By default only one shard is created for each entity. 
  node ./node_modules/@ostdotcom/ost-block-scanner/tools/addChain.js --configFile $(pwd)/configuration.json --chainId 2000 --networkId 1 --blockShardCount 2 --economyAddressShardCount 2 --transactionShardCount 2

For additional configuration options, please see documentation for the OST Block Scanner.

6. Add Global Stats DynamoDB table:

  node lib/models/tableCreation.js --configFile $(pwd)/configuration.json

Start Block Scanner

  • Mandatory parameters: chainId, configFile
  • Optional parameters: startBlockNumber, endBlockNumber
  node ./node_modules/@ostdotcom/ost-block-scanner/executables/blockScanner.js --configFile $(pwd)/configuration.json --chainId 2000 --startBlockNumber 0 --endBlockNumber 100

Start Global Stats Aggregator

  node executables/GlobalAggregatorCron.js --configFile $(pwd)/configuration.json

Start OST VIEW application server

  npm start

With the browser of your choice, visit http://<Hostname or IP>:<port mentioned in configuration.json>.

ost-view's People

Contributors

akshayraje avatar alpeshvmodi avatar aman-barbaria avatar anaghamurtarkar avatar ashutoshlodhi avatar bala007 avatar bitsnacker avatar kedarchandrayan avatar puneet-khushwani-eth avatar sachin-chauhan-dev avatar sunilkhedar 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

Watchers

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

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.