Skip to content

YARlabs/YAR-connector-evm

Repository files navigation

Interconnector (YAR Bridge)

See website for more information.


Documentation

Monorepository managed by turborepo.

Contains 2 applications - validator and frontend. The validator is responsible for performing the functions of the bridge. Frontend is a ReactJS client.



Before all

Request the .env file and place it in the root of the monorepo


Install all dependencies

npm install

Build repository

npm run build_repo


Validator

Build validators

npm run build_validator

To run the validator, run the command

npm run run_validator

This will launch a docker container with the application and all its environment


To see the status, you can use the docker utilities, or look in the database interface at http://host:8888/db/AppLog/AppStatus


E2E test:

npm run build_validator npm run local_node (wait private keys) npm run run_validator_dev (wait ready status in http://host:8888/db/AppLog/AppStatus) npm run test_e2e



Frontend

For development tools, you can raise a daemon that will update the ui when the code changes. To do this, you need to run the command

npm run frontend_dev

To build the application, use the command

npm run build_frontend

This will create a frontend build at /apps/frontend/build