This repository has been archived on 2026-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
stack-orchestrator/app/data/stacks/mobymask
2023-08-29 18:03:40 +05:30
..
README.md Update mobymask v1 watcher with new contract 2023-08-29 18:03:40 +05:30
stack.yml Update mobymask v1 watcher with new contract 2023-08-29 18:03:40 +05:30

MobyMask

The MobyMask watcher is a Laconic Network component that provides efficient access to MobyMask contract data from Ethereum, along with evidence allowing users to verify the correctness of that data. The watcher source code is available in this repository and a developer-oriented Docker Compose setup for the watcher can be found here. The watcher can be deployed automatically using the Laconic Stack Orchestrator tool as detailed below:

Deploy the MobyMask Watcher

The instructions below show how to deploy a MobyMask watcher using laconic-stack-orchestrator (the installation of which is covered here).

This deployment expects that ipld-eth-server's endpoints are available on the local machine at http://ipld-eth-server.example.com:8083/graphql and http://ipld-eth-server.example.com:8082. More advanced configurations are supported by modifying the watcher's config file.

Clone required repositories

$ laconic-so --stack mobymask setup-repositories

Build the watcher container

$ laconic-so --stack mobymask build-containers

This should create a container with tag cerc/watcher-mobymask in the local image registry.

Deploy the stack

First the watcher database has to be initialized. Start only the mobymask-watcher-db service:

$ laconic-so --stack mobymask deploy-system up mobymask-watcher-db

Next find the container's id using docker ps then run the following command to initialize the database:

$ docker exec -i <mobymask-watcher-db-container> psql -U vdbm mobymask-watcher < config/watcher-mobymask/mobymask-watcher-db.sql

Finally start the remaining containers:

$ laconic-so --stack mobymask deploy-system up

Correct operation should be verified by following the instructions here, checking GraphQL queries return valid results in the watcher's playground.

Clean up

Stop all the services running in background:

$ laconic-so --stack mobymask deploy-system down