To index your smart contract events, use The Graph middleware.
First, edit subgraph.config.json
to set the addresses of your smart contracts. You can find them in the deployment folder created under ignation
. Then, run:
bunx settlemint login
This logs you in to the platform. This command only needs to be run once, so you can skip it if you've already logged in.
Then, run:
bunx settlemint scs subgraph deploy
To get info about the tasks, run:
bunx settlemint scs subgraph --help