Files
pezkuwi-subquery/scripts/local-publish.sh
T
pezkuwichain 0812cf9e7a Initial commit: Pezkuwi SubQuery indexer
- pezkuwi.yaml: Relay chain staking indexer (rewards, slashes, pools, transfers, era info)
- pezkuwi-assethub.yaml: Asset Hub indexer (NominationPools, asset transfers)
- GraphQL schema for staking data entities
- Handler mappings from Nova SubQuery base
2026-02-12 23:55:13 +03:00

19 lines
517 B
Bash
Executable File

#!/bin/bash
# Get a list of YAML files in alphabetical order
yamlFiles=($(ls ../*.yaml | sort))
for file in "${yamlFiles[@]}"; do
outputFileName=".$(basename "$file" .yaml)-cid"
# Execute subql publish command
subql codegen -f "$file" && subql publish -f "$file"
# Move or create the output file in the ipfs-cids folder
mv "../$outputFileName" "../ipfs-cids/$outputFileName"
echo "Command executed for $file. Output file: $outputFileName"
done
echo "All project published successfully."