Skip to content

INTMAX2 Function — likely a modular backend system for supporting various Layer 2 (L2) blockchain operations.

Notifications You must be signed in to change notification settings

InternetMaximalism/intmax2-function

Repository files navigation

intmax2-function

This document provides instructions for setting up, running, building with Docker, and deploying the intmax2-function project.

Installing Dependencies

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

Running the Project

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 Structure

The project is divided into the following workspaces:

packages
├── block-sync-monitor
├── deposit-analyzer
├── indexer
├── indexer-event-watcher
├── indexer-monitor
├── messenger-relayer
├── mint-executor
├── mock-l1-to-l2-relayer
├── mock-l2-to-l1-relayer
├── predicate
├── referral
├── shared
├── token
├── token-map-register
├── token-metadata-sync
├── tx-map
├── tx-map-cleaner
└── wallet-observer

Local Emulator

If your development workflow involves Firestore, you can start a local emulator:

gcloud emulators firestore start
export FIRESTORE_EMULATOR_HOST="HOST:PORT" # We will use what is displayed in the console.

Docker

Build and run the project in a Docker container:

docker build -f docker/Dockerfile -t intmax2-function .
docker run --rm -p 3000:3000 --env-file .env intmax2-function workspace token start

Bootstrap Tasks

# Bootstrap token map configuration
yarn token-map-bootstrap

# Bootstrap token image assets
yarn token-image-bootstrap

About

INTMAX2 Function — likely a modular backend system for supporting various Layer 2 (L2) blockchain operations.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •