This repository/package is not designed for productive usage. Instead it should be used for demonstration and learning purposes.
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 addressesEMAIL_REPLY_TO
- E-mail to which we the users would be able to reply
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.
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