Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.24 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.24 KB

event-watcher

Microservice that watches onchain events to onchain events.

How

We will define an array of events that the service should be watch.

Event Definition

[
  {
    chainId: number,
    contractAddress: string,
    event: string,
    target: {
      queue: string,
      name: string,
    },
  },
]

When the application is started, it will load the events and start watching them.

When an event is seen, the service will emit the event as a payload to the given target queue.

Installation

$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.