Socket
Socket
Sign inDemoInstall

eth-block-tracker

Package Overview
Dependencies
7
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 3.0.0

CHANGELOG.md

17

package.json
{
"name": "eth-block-tracker",
"version": "2.3.0",
"version": "3.0.0",
"description": "This module walks the Ethereum blockchain, keeping track of the latest block. It uses a web3 provider as a data source and will continuously poll for the next block.",
"main": "dist/index.js",
"main": "src/index.js",
"scripts": {
"test": "npm run compile && browserify test/basic.js | node",
"compile": "babel --presets es2015,stage-3 --plugins transform-runtime -d dist/ lib/",
"prepublishOnly": "npm run compile"
"test": "npm run build && node test/index.js",
"prepublish": "npm run build",
"build": "mkdir -p ./dist && npm run bundle",
"bundle": "babel src -d dist/es5/ && npm run bundle-main",
"bundle-main": "browserify -s EthBlockTracker -e src/index.js -t [ babelify --presets [ es2015 ] ] > dist/EthBlockTracker.js"
},
"author": "",
"license": "ISC",
"author": "kumavis",
"license": "MIT",
"dependencies": {
"async-eventemitter": "ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c",
"eth-query": "^2.1.0",

@@ -16,0 +17,0 @@ "ethereumjs-tx": "^1.3.3",

@@ -32,2 +32,7 @@

##### awaitCurrentBlock()
Returns a promise. asynchronously returns the current block.
if not yet available, it will wait until it has the latest block.
##### start({ fromBlock })

@@ -37,2 +42,3 @@

`fromBlock` should be a number as a hex encoded string.
Returns a promise which is rejected if an error in encountered.

@@ -86,2 +92,2 @@ ```js

Does not currently handle forks.
Does not currently handle block reorgs.
const createScaffoldMiddleware = require('json-rpc-engine/src/createScaffoldMiddleware')
const EthTx = require('ethereumjs-tx')
const ethUtil = require('ethereumjs-util')
const incrementHexNumber = require('../../lib/hexUtils').incrementHexNumber
const formatHex = require('../../lib/hexUtils').formatHex
const incrementHexNumber = require('../../src/hexUtils').incrementHexNumber
const formatHex = require('../../src/hexUtils').formatHex

@@ -7,0 +7,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc