Skip to content

jalesfevas/subsquid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

subsquid

Install dependencies: Node.js, 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
mkdir ~/global-node-packages

Config NodeJS

npm config set prefix ~/global-node-packages

Config Home Path

export PATH="${HOME}/global-node-packages/bin:$PATH"

Install Subsquid CLI

npm install --global @subsquid/cli@latest

Check Subsquid Version

sqd --version

Run The Squid

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

Press Get Key button in the quest card to obtain the singleProc.key key file. Save it to the ./query-gateway/keys subfolder of the squid folder. The file will be used by the query gateway container.

sqd up
npm ci
sqd build
sqd migration:apply

Start Squid

sqd run .

Stop Squid

sqd down

About

subsquid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors