Skip to content

dzhelezov/xcmpallet-transfers-squid

 
 

Repository files navigation

XCM squid

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

Prerequisites

  • node 16.x
  • docker
  • npm -- note that yarn package manager is not supported

Quickly running the sample

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

About

A squid indexing XCM transfers on Kusama

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.3%
  • JavaScript 1.9%
  • Other 1.8%