@ostdotcom/ost-block-scanner
OST Block Scanner parse ethereum based chains and store data in DynamoDB
Last updated 7 months ago by kedaratost .
LGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ostdotcom/ost-block-scanner 
SYNC missed versions from official npm registry.

OST Block Scanner

Latest version Downloads per month

OST Block Scanner parses Ethereum-based chains and stores data in DynamoDB. It supports multiple chains, as well.

Install

  npm install @ostdotcom/ost-block-scanner --save

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 Block Scanner config file

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

Set CONFIG_STRATEGY_PATH environment variable to the path of the configuration file just created.

4. Create Global DynamoDB tables:

  node ./node_modules/@ostdotcom/ost-block-scanner/tools/initialSetup.js --configFile $CONFIG_STRATEGY_PATH

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 config 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 $CONFIG_STRATEGY_PATH --chainId 2000 --networkId 1 --blockShardCount 2 --economyAddressShardCount 2 --transactionShardCount 2

6. Add additional shards to existing chains (optional)

  • Additional block specific data shards:
  node ./node_modules/@ostdotcom/ost-block-scanner/tools/createShards/byBlock.js --configFile $CONFIG_STRATEGY_PATH --chainId 2000 --shardNumber 1
  • Additional economy user(s) specific data shards:
  node ./node_modules/@ostdotcom/ost-block-scanner/tools/createShards/byEconomyAddress.js --configFile $CONFIG_STRATEGY_PATH --chainId 2000 --shardNumber 1
  • Additional transaction specific data shards:
  node ./node_modules/@ostdotcom/ost-block-scanner/tools/createShards/byTransaction.js --configFile $CONFIG_STRATEGY_PATH --chainId 2000 --shardNumber 1

Start Block Scanner

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

Current Tags

  • 1.0.2-beta.4                                ...           beta (2 months ago)
  • 1.0.1                                ...           latest (7 months ago)

40 Versions

  • 1.0.2-beta.4                                ...           2 months ago
  • 1.0.2-beta.3                                ...           5 months ago
  • 1.0.2-beta.2                                ...           6 months ago
  • 1.0.2-beta.1                                ...           6 months ago
  • 1.0.1                                ...           7 months ago
  • 1.0.1-beta.16                                ...           7 months ago
  • 1.0.1-beta.15                                ...           7 months ago
  • 1.0.1-beta.14                                ...           7 months ago
  • 1.0.1-beta.13                                ...           8 months ago
  • 1.0.1-beta.12                                ...           9 months ago
  • 1.0.1-beta.11                                ...           a year ago
  • 1.0.1-beta.10                                ...           a year ago
  • 1.0.1-beta.9                                ...           a year ago
  • 1.0.1-beta.8                                ...           a year ago
  • 1.0.1-beta.7                                ...           a year ago
  • 1.0.1-beta.6                                ...           a year ago
  • 1.0.1-beta.5                                ...           a year ago
  • 1.0.1-beta.4                                ...           a year ago
  • 1.0.1-beta.3                                ...           a year ago
  • 1.0.1-beta.2                                ...           a year ago
  • 1.0.1-beta.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-beta.19                                ...           a year ago
  • 1.0.0-beta.18                                ...           a year ago
  • 1.0.0-beta.17                                ...           a year ago
  • 1.0.0-beta.16                                ...           a year ago
  • 1.0.0-beta.15                                ...           a year ago
  • 1.0.0-beta.14                                ...           a year ago
  • 1.0.0-beta.12                                ...           a year ago
  • 1.0.0-beta.11                                ...           a year ago
  • 1.0.0-beta.10                                ...           a year ago
  • 1.0.0-beta.9                                ...           a year ago
  • 1.0.0-beta.8                                ...           a year ago
  • 1.0.0-beta.7                                ...           a year ago
  • 1.0.0-beta.6                                ...           a year ago
  • 1.0.0-beta.5                                ...           a year ago
  • 1.0.0-beta.4                                ...           a year ago
  • 1.0.0-beta.3                                ...           a year ago
  • 1.0.0-beta.2                                ...           a year ago
  • 1.0.0-beta.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 14
Dependencies (12)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |