This document provides instructions for setting up, running, building with Docker, and deploying the intmax2-functions
project.
First, install the project dependencies, build the project, and set up the environment.
# install
yarn
# build:shared
yarn build:shared
# build
yarn build
# setup env
cp .env.example .env
To start the development mode for each workspace, use the following commands:
API
yarn workspace <package-name> dev
# ex.
yarn workspace indexer dev
JOB
yarn workspace <package-name> dev
# ex.
yarn workspace block-sync-monitor dev
packages
├── block-sync-monitor
├── deposit-analyzer
├── indexer
├── indexer-monitor
├── messenger-relayer
├── mock-l1-to-l2-relayer
├── mock-l2-to-l1-relayer
├── predicate
├── shared
├── token
├── token-data-fetcher
├── token-mapper
└── wallet-observer
gcloud emulators firestore start
export FIRESTORE_EMULATOR_HOST="HOST:PORT" # We will use what is displayed in the console.