Fork of watcher-ts repo that will act as a mirror.
Go to file
prathamesh0 c46d5c3f33
Broadcast peer info over floodsub when requested (#332)
* Refactor discovery handler

* Broadcast peer info over floodsub on requests

* Broadcast peer info from relay nodes

* Make debug reponse handler optional

* Register debug info request handler on peer init

* Move debug info types to types dir

* Return method to unsubscribe from the debug topic

* Make debug info flag optional for relay nodes

* Restructure peer connection info data

* Refactor getting peer info to be used in react app

* Refactor duplicate code to utils

* Rename peer methods

---------

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
2023-03-06 10:20:51 +05:30
.github move dev to CONTRIBUTING 2023-01-16 07:42:28 -05:00
.husky Add husky for setting lint in commit hook. (#248) 2021-09-20 16:25:54 +05:30
docs moar cli & complete address-watcher README 2023-01-16 07:40:39 -05:00
packages Broadcast peer info over floodsub when requested (#332) 2023-03-06 10:20:51 +05:30
.dockerignore docker image and Github Actions to build image 2021-07-23 15:42:50 +03:00
.gitignore Npm gitea publish (#200) 2022-10-13 15:12:24 -04:00
.npmrc Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30
Dockerfile Use graph-ts and graph-cli packages from gitea (#283) 2022-12-29 16:59:42 +05:30
lerna.json Upgrade package versions (#329) 2023-02-21 18:27:28 +05:30
LICENSE Add APGL license and copyright notices (#212) 2021-08-12 15:28:13 +05:30
Makefile Change package name prefixes to cerc-io (#177) 2022-09-09 17:13:01 +05:30
package.json Add script to set package versions in codegen (#270) 2022-11-29 14:52:39 +05:30
README.md nits 2023-01-16 07:45:39 -05:00
yarn.lock Improve connection check with peers by retrying ping on failures (#330) 2023-02-27 12:47:49 +05:30

watcher-ts

Cute Panopticon

Watchers make managing data in Dapp development as frictionless as possible. They do this by querying, transforming, and caching Ethereum state data cheaper and faster compared to existing solutions. This data also comes with evidence for generating cryptographic proofs to provide verification that the data is authentic. Public watchers are found in the packages directory.

Go here for a quick start demo of setting up the stack and deploying/using the erc20 watcher via the Laconic Stack Orchestrator.

Prerequisites

User Mode

The Laconic Stack Orchestrator provides all the tools to quickly get started with watchers.

Developer Mode

You'll need the above if you plan on digging into this repo, writing your own watchers, or experimenting with watchers not currently supported by Stack Orchestrator. See CONTRIBUTING.md for more information.

Services

The default configuration files used by watchers assume the following services are setup and running on localhost:

These services are dockerized by the Laconic Stack Orchestrator (laconic-so). Use it unless you plan on digging into those codebases. For more information on setting up these services up by hand, see here

Setup

From the root of this repository, run:

yarn && yarn build

to download dependencies and build all the watchers.

Orient yourself with the available CLI commands here and in some cases, watchers have in-depth demos (e.g. mobymask)

Tests

Further Reading