Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

LedgerHQ/starknet-watcher

Repository files navigation

Starknet watcher

Quality checks

Open source watcher for Starknet. This module is expected to respond to predetermined events by monitoring a dynamic list of issuers. It is used by Ledger Fresh, our open source web wallet based on the account abstraction.

Wanna chat with us? Join our Telegram channel

Setup

Install the dependencies using pnpm

pnpm install

Install the pre-push hook

npx lefhook install

Testing

Start a database locally

Getting Started

First, run the database:

docker run \
    -it -p 3306:3306 \
    -e MYSQL_ROOT_PASSWORD="default_password" \
    -e MYSQL_DATABASE="checkpoint" mysql:8.0 \
    "--default-authentication-plugin=mysql_native_password"

Then start the indexing script with the following command:

pnpm dev