Skip to content

TestnetManiac/subsquid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Subsquid Tech Section Complete Tasks

Preparation

  1. Setting VPS or you can use Codespaces from Github
  2. Install and Configure NodeJS, Docker, git
sudo apt-get update && sudo apt install git -y && sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install 18
nvm use 18
  1. Install Subsquid CLI
npm install --global @subsquid/cli@latest

Main Tasks

Run a Single-proc Squid

Create Folder and Initialize Configuration Project

mkdir proc
cd proc
sqd init single-proc -t https://github.com/subsquid-quests/single-chain-squid
cd single-proc

Download Key

  • Navigate to https://app.subsquid.io/quests
  • Download "single-proc squid" (check this picture) image
  • Move this key file to this folder /proc/single-proc/query-gateway/keys Start Docker
docker compose up -d

Buid Docker

npm ci
sqd build
sqd migration:apply

Running Docker

sqd run .

Wait for several minutes, if from quest website showing claim or was 100%, you can stop process using CTRL+C then copy this command

docker compose down -v

Run a Double-proc Squid

Create Folder and Initialize Configuration Project

cd ~/proc
sqd init double-proc -t https://github.com/subsquid-quests/double-chain-squid
cd double-proc

Download Key

  • Navigate to https://app.subsquid.io/quests
  • Download "double-proc squid" (check this picture) image
  • Move this key file to this folder /proc/double-proc/query-gateway/keys Start Docker
docker compose up -d

Buid Docker

npm ci
sqd build
sqd migration:apply

Running Docker

sqd run .

Wait for several minutes, if from quest website showing claim or was 100%, you can stop process using CTRL+C then copy this command

docker compose down -v

Run a Triple-proc Squid

Create Folder and Initialize Configuration Project

cd ~/proc
sqd init triple-proc -t https://github.com/subsquid-quests/triple-chain-squid
cd triple-proc

Download Key

  • Navigate to https://app.subsquid.io/quests
  • Download "triple-proc squid" (check this picture) image
  • Move this key file to this folder /proc/triple-proc/query-gateway/keys Start Docker
docker compose up -d

Buid Docker

npm ci
sqd build
sqd migration:apply

Running Docker

sqd run .

Wait for several minutes, if from quest website showing claim or was 100%, you can stop process using CTRL+C then copy this command

docker compose down -v

Run a Quad-proc Squid

Create Folder and Initialize Configuration Project

cd ~/proc
sqd init quad-proc -t https://github.com/subsquid-quests/quad-chain-squid
cd quad-proc

Download Key

  • Navigate to https://app.subsquid.io/quests
  • Download "quad-proc squid" (check this picture) image
  • Move this key file to this folder /proc/quad-proc/query-gateway/keys Start Docker
docker compose up -d

Buid Docker

npm ci
sqd build
sqd migration:apply

Running Docker

sqd run .

Wait for several minutes, if from quest website showing claim or was 100%, you can stop process using CTRL+C then copy this command

docker compose down -v

Run a Snaphot Squid

Create Folder and Initialize Configuration Project

cd ~/proc
sqd init snapshot-squid -t https://github.com/subsquid-quests/snapshot-squid
cd snapshot-squid

Download Key

  • Navigate to https://app.subsquid.io/quests
  • Download "snapshot squid" (check this picture) brave_8Sxc3YWtbH
  • Move this key file to this folder /proc/snapshot-squid/query-gateway/keys Start Docker
docker compose up -d

Buid Docker

npm ci
sqd build
sqd migration:apply

Running Docker

sqd run .

Wait for several minutes, if from quest website showing claim or was 100%, you can stop process using CTRL+C then copy this command

docker compose down -v

About

Simple Tutorial to Join Subsquid Testnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors