Whenever deploying a new smart contract for Markee,

  1. Update subgraph.yaml with the new addresses
  2. Redeploy the subgraphs from the terminal

From Terminal

mv markee markee-backup-$(date +%s)

curl -L <https://github.com/1Hive/markee/archive/refs/heads/main.zip> -o markee.zip

unzip markee.zip

mv markee-main markee

rm markee.zip

cd ~/markee/subgraphs

yarn install

graph codegen

cp -r generated ../

graph build

graph auth <YOUR_DEPLOY_KEY>

npm run deploy
  1. Publish in The Graph Studio and wait until new published version is indexed