TheGraph exposes a GraphQL endpoint to query the events and entities within Abracadabra ecosystem.
Currently, there are multiple subgraphs, but additional subgraphs can be added to this repository, following the current architecture.
This repository contains multiple subgraphs:
-
Blocks: Tracks all blocks on Chain.
-
Cauldrons: Tracks all Abracadabra Cauldrons data with price, volume
-
Magic APE: Tracks Magic APE rewards,apy and tvl
-
Magic GLP: Tracks Magic GLP rewards
-
Level Finance: Tracks Level Finance rewards
-
Beam: Tracks Beam
-
sSpell: Tracks sSpell
-
mSpell: Tracks mSpell
-
Spell: Tracks Spell
-
Curve:
NETWORK=ethereum pnpm exec turbo run build --scope=<SUBGRAPH_NAME> --force
# Run all tests
pnpm exec turbo run test --scope=<SUBGRAPH_NAME>
# Run single test
pnpm exec turbo run test -- <TEST> --scope=<SUBGRAPH_NAME>
add a deploy.sh in the root dir with:
# V3 DEPLOYMENT
declare -a networks=("ethereum" "avalance" "arbitrum")
SUBGRAPH=v3
DIRECTORY=v3
USER=wagmi
ACCESS_TOKEN=SET_YOUR_ACCESS_TOKEN_HERE
for network in "${networks[@]}"
do
echo "BUILD $network $DIRECTORY"
NETWORK=$network pnpm exec turbo run build --scope=$DIRECTORY --force
echo "DEPLOYING TO $USER/$SUBGRAPH-$network"
cd subgraphs/$DIRECTORY/ && pnpm exec graph deploy --product hosted-service $USER/$SUBGRAPH-$network --access-token $ACCESS_TOKEN
cd ../../
done;