Please refer to the documentation website for a thorough guide on all Envio indexer features
This project uses Envio to index blockchain events from the Peeramid contracts.
# Install dependencies
pnpm install
# Start the development environment with local contract addresses
pnpm dev:localYou 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=9000The 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 stopFailure to stop the environment can cause port conflicts, database inconsistencies, and resource issues when you restart.
pnpm dev:local- Start local development with contract addresses from localhost deploymentspnpm dev- Start Envio development serverpnpm codegen- Generate code from schemapnpm test- Run testspnpm build- Build the project
See scripts directory for more utilities and documentation.
# 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