A sample Squid project to demonstrate how to store the ETL results in a local CSV file.
This squid collects all the relevant XCMPallet
calls to track the XCM transfers on Kusama. For a full reference see the docs
- node 16.x
- docker
- npm -- note that
yarn
package manager is not supported
Example commands below use make(1). Please, have a look at commands in Makefile if your platform doesn't support it. On Windows we recommend to use WSL.
# 1. Install dependencies
npm ci
# 2. Compile typescript files
make build
# 3. Start target Postgres database and detach
make up
# 4. Start the processor
make process
The squid output CSV file is located at assets/xcm_transfers.csv
. To restart the indexing from scratch, delete the file and drop the database with
make down