mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-21 23:37:56 +00:00
0812cf9e7a
- 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
19 lines
517 B
Bash
Executable File
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."
|