
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@santiment-network/eth-exporter
Advanced tools
A library that allows to easily export data to the Santiment data pipeline
This package defines an easy to use class for exporting data from the ETH blockchain to the Santiment Data Pipeline.
There is a Yeoman generator for new exporters, so using that is the easiest. Make sure you have docker and docker-compose installed first and then run:
$ npm install -g yo
$ npm install -g @santiment-network/generator-eth-exporter
Then create a folder for the new exporter and initialize the skeleton:
$ mkdir my-exporter && cd my-exporter
$ yo @santiment-network/eth-exporter
Running the exporter is done with
$ docker-compose up --build
If you want to cleanup the current state and run from the beginning run
$ docker-compose rm
The pipeline uses (ClickHouse)[https://clickhouse.yandex] as an analytics DB. This is a very fast columnar DB, which allows to use SQL to query the data. In order to connect to the DB run:
$ docker-compose exec clickhouse clickhouse-client
To run the tests run
$ docker-compose run --no-deps --rm exporter npm test
The main way to use the extractor is to extract all the events defined into an ABI. You can do it like this:
const { ETHExporter } = require('@santiment-network/eth-exporter')
const contractAbi = require('./abi.json')
const exporter = new ETHExporter("contract-events")
exporter.extractEventsWithAbi(contractAbi)
This is going to extract all the events defined in the ABI from all contracts deployed on Ethereum.
The function extractEventsWithAbi accepts the following parameters:
null is passed, all the events in the ABI will be decoded.null is passes, the events from all addresses will be decoded.null, the decoded events won't be saved in the DB.FAQs
A library that allows to easily export data to the Santiment data pipeline
We found that @santiment-network/eth-exporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.