mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-06-12 14:51:04 +00:00
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
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user