Socket
Book a DemoInstallSign in
Socket

@energyweb/event-listener

Package Overview
Dependencies
Maintainers
7
Versions
397
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@energyweb/event-listener

## Warning

3.4.2
latest
Source
npmnpm
Version published
Weekly downloads
1
-87.5%
Maintainers
7
Weekly downloads
 
Created
Source

Energy Web Foundation: Event Listener

Warning

This repository/package is not designed for productive usage. Instead it should be used for demonstration and learning purposes.

How to use

Edit your root .env file to the following properties:

REQUIRED

  • EVENT_LISTENER_PRIV_KEY variable that contains the private key to the root .env file. Event listener will use this private key to perform transactions on-chain.

OPTIONAL (necessary for e-mail notifications)

  • MANDRILL_API_KEY - API key generated in Mandrill (mandrill.com)
  • EMAIL_FROM - E-mail from which you want to send email addresses
  • EMAIL_REPLY_TO - E-mail to which we the users would be able to reply

Run

From the root of the monorepo, run the following commands in two separate terminals:

  • yarn run:origin
  • yarn run:event-listener

The listener is now running and will react to every event that might occur on the blockchain.

About

Event listeners listen to events on the blockchain and react accordingly.

Components of this repo:

  • Event Service
    • Contains and manages starting/stopping multiple listeners
  • Listener
    • A listener is a custom component that
  • Email service and adapters
    • Adapters for different email services

FAQs

Package last updated on 16 Mar 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.