Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Old utility to informs centralized API of events emitted by Streamr Marketplace smart contract. Now obsolete.

License

Notifications You must be signed in to change notification settings

streamr-dev/streamr-ethereum-watcher

Repository files navigation

CI & CD

Marketplace Watcher

Service of the Streamr Network that listens to events emitted by the Streamr Marketplace smart contract and informs Core API of changes to products.

For redundancy, run multiple instances in parallel attached to different Ethereum nodes.

Building

Project uses npm for package management.

  • Start off by selecting correct Node and Npm version nvm use
  • Install required dependencies with make node_modules
  • To run tests make test
  • To run ethereum-watcher locally make run
  • To build local Docker image, start Streamr Docker stack and to see logs run make docker-build start log

Running

In most cases, you will want to run this service as a pre-built Docker image. See https://github.com/streamr-dev/streamr-docker-dev for more information on how to run the Streamr stack.

If you are developing this service in particular, or are otherwise inclined, you can run this service with make run.

Publishing

The project is automatically tested and built using GitHub Actions. If and when all tests pass, a Docker image is built and pushed to DockerHub by GitHub Actions.

Updating Brubeck Production

Runs on integrations.streamr.network.

Systemd service file:

/lib/systemd/system/ethereum-watcher-brubeck-mainnet.service

If Systemd service files are updated run: sudo systemctl daemon-reload

Commands to exercise:

sudo journalctl -f -u ethereum-watcher-brubeck-mainnet

sudo systemctl show ethereum-watcher-brubeck-mainnet
sudo systemctl status ethereum-watcher-brubeck-mainnet
sudo systemctl stop ethereum-watcher-brubeck-mainnet
sudo systemctl start ethereum-watcher-brubeck-mainnet

docker logs -f ethereum-watcher-brubeck-mainnet
docker inspect ethereum-watcher-brubeck-mainnet

Updating Corea Production

Run on streamr.com:

cd ~/streamr-ethereum-watcher
git pull
nvm use
npm ci

If Systemd service files are updated run: systemctl daemon-reload

Restart services:

systemctl restart ethereum-watcher-mainnet.service
systemctl restart ethereum-watcher-pocket.service

License

This software is open source, and dual licensed under AGPLv3 and an enterprise-friendly commercial license.

About

Old utility to informs centralized API of events emitted by Streamr Marketplace smart contract. Now obsolete.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published