Skip to content

peeramid-labs/rankify-indexer

Repository files navigation

Envio Indexer for Peeramid

Please refer to the documentation website for a thorough guide on all Envio indexer features

Local Development

This project uses Envio to index blockchain events from the Peeramid contracts.

Quick Start

# Install dependencies
pnpm install

# Start the development environment with local contract addresses
pnpm dev:local

Custom Port Configuration

You can specify a custom port for the RPC connection:

# Use explicit port 8300
pnpm dev:local:port

# Or specify a custom port
node scripts/start-local.js --port=9000

⚠️ Important: Stopping the Environment ⚠️

The Envio development environment runs in Docker containers and continues running even after you exit the terminal. To properly stop all containers and services, always run:

pnpm envio stop

Failure to stop the environment can cause port conflicts, database inconsistencies, and resource issues when you restart.

Available Scripts

  • pnpm dev:local - Start local development with contract addresses from localhost deployments
  • pnpm dev - Start Envio development server
  • pnpm codegen - Generate code from schema
  • pnpm test - Run tests
  • pnpm build - Build the project

See scripts directory for more utilities and documentation.

Manual Indexer Updates

# Pull latest changes
git fetch && git pull

# Deploy to production
docker compose -f docker-compose-prod.yml build --no-cache --build-arg RPC_URL="put rpc url here"
docker compose -f docker-compose-prod.yml up -d
sudo docker system prune --all --force

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages