# Query Migration notes ## Kleros-display-subgraph Old subgraphs have been renamed to [graph-name]-old, eg. kleros-display-mainnet-old` Todo:- - Update old published subgraphs with the new names - Publish new ones ### Subgraphs - kleros-display-mainnet :- https://thegraph.com/studio/subgraph/kleros-display-mainnet/ - kleros-display-mainnet-old :- https://thegraph.com/studio/subgraph/kleros-display-mainnet-old/ - kleros-display-gnosis :-https://thegraph.com/studio/subgraph/kleros-display-gnosis/ - kleros-display-gnosis-old :- https://thegraph.com/studio/subgraph/kleros-display-gnosis-old/ - kleros-display-sepolia :- https://thegraph.com/studio/subgraph/kleros-display-sepolia/ - kleros-display-sepolia-old :- https://thegraph.com/studio/subgraph/kleros-display-sepolia-old/ ### New endpoints - mainnet :- https://api.studio.thegraph.com/query/61738/kleros-display-mainnet/version/latest - gnosis :- https://api.studio.thegraph.com/query/61738/kleros-display-gnosis/version/latest - sepolia :- https://api.studio.thegraph.com/query/61738/kleros-display-sepolia/version/latest --- #### court v1 (https://github.com/kleros/court/issues/407) - No need to update, the affected enitity is not being queried. ##### PR https://github.com/kleros/court/pull/412 --- #### pnk-merkle-drop (https://github.com/kleros/pnk-merkle-drop/issues/29) - koki said he would work on this?, will get an update from him - need to update the endpoints, no query has been affected --- #### court-functions (https://github.com/kleros/court-functions/issues/10) - no query affected - update subgraph endpoints in https://github.com/search?q=repo%3Akleros%2Fcourt-functions%20api.thegraph&type=code ##### PR https://github.com/kleros/court-functions/pull/12 --- #### kleros-case-display (https://github.com/kleros/kleros-case-display/issues/15) - no query affected - update endpoints and generate gql types - https://github.com/kleros/kleros-case-display/blob/388c459954ffd70dffc8bb5aeef4ee0eb6d5b358/codegen.yml#L2 - https://github.com/kleros/kleros-case-display/blob/388c459954ffd70dffc8bb5aeef4ee0eb6d5b358/src/app/%5Blang%5D/case/%5Bid%5D/data.ts#L15 (env variable) ##### PR https://github.com/kleros/kleros-case-display/pull/16 --- #### Archon (https://github.com/kleros/archon/issues/70) - found this old ipfs gateway, if it's something to change? https://github.com/kleros/archon/blob/e487f567b965fc0abfad77de844691fd6b924ea7/src/utils/uri.js#L21 - It's pointing to this subgraph, which is not the same as the one deployed from multisig(maybe archon is old , so it used old multisig graph?) : - https://api.thegraph.com/subgraphs/name/andreimvp/kleros-display-mainnet - https://api.thegraph.com/subgraphs/name/andreimvp/kleros-display - https://api.studio.thegraph.com/query/50849/kleros-sepolia-ss/version/latest ##### PR https://github.com/kleros/archon/pull/71 https://github.com/kleros/archon/pull/72 --- --- ## Klerosboard subgraph - Gnosis Prod Query: https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/Ck26N16xgimEuuuNSJqYVWBKcWSwPmkk36BWZGtfx1ox Development Query: https://api.studio.thegraph.com/query/66145/klerosboard-gnosis/version/latest - Mainnet Prod query: https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/ECENsJRfqi6Mwj6kF9diShPzFKkgyyo79aSCkSwAShHL Development query: https://api.studio.thegraph.com/query/66145/klerosboard-mainnet/version/latest --- --- ## GTCR subgraph `subgraph names will be in the legacy-curate-[network] convention` Goerli subgraph was not deployed #### Subgraphs - mainnet :- https://api.studio.thegraph.com/query/61738/legacy-curate-mainnet/version/latest - gnosis :- https://api.studio.thegraph.com/query/61738/legacy-curate-gnosis/version/latest - sepolia :- https://api.studio.thegraph.com/query/61738/legacy-curate-sepolia/version/latest --- #### gtcr (https://github.com/kleros/gtcr/issues/331) - Queries updated - Needed a fix for js-fetch, defined content-type explicitly, fixed - Did not update goerli endpoint. ##### PR https://github.com/kleros/gtcr/pull/338 --- #### scout (https://github.com/kleros/scout/issues/9) - updated subgraph links and queries - updated carousels queries in homepage and pointed to publiched subgraph on gnosis ##### PR https://github.com/kleros/scout/pull/16 --- #### Gtcr action bot (https://github.com/kleros/gtcr-action-bot/issues/23) - variable update `GTCR_SUBGRAPH_URL` - no query updates needed #### PR https://github.com/kleros/gtcr-action-bot/pull/24 --- #### Gtcr notifications bot (https://github.com/kleros/gtcr-notifications/issues/35) - variable update `GTR_SUBGRaPH_URL` - no query update ##### PR https://github.com/kleros/gtcr-notifications/pull/36 --- #### tag registry rewards (https://github.com/kleros/tag-registry-rewards/issues/3) - update env variable for `XDAI_GTCR_SUBGRAPH_URL` - updated tag-fetch queries ##### PR https://github.com/kleros/tag-registry-rewards/pull/5 --- #### Scout snap (https://github.com/kleros/scout-snap/issues/55) - update queries in fetchGraphqlData function and Index page ##### PR https://github.com/kleros/scout-snap/pull/56 --- #### Address tags sdk (https://github.com/kleros/address-tags-sdk/issues/9) - there was this link in `GNOSIS_SUGRAPH_CLIENT` : https://api.thegraph.com/subgraphs/name/eccentricexit/curate-xdai-ii - updated query ##### PR (no perms, made a PR from fork) https://github.com/kleros/address-tags-sdk/pull/10 --- #### Curate telegram bot (https://github.com/kleros/curate-telegram-bot/issues/2) - only env variable update needed `https://github.com/kleros/address-tags-sdk/pull/10` - no queries update needed #### PR https://github.com/kleros/curate-telegram-bot/pull/3 --- #### t2cr to ipfs (https://github.com/kleros/t2cr-to-ipfs/issues/6) - `IPFS_GATEWAY` variable set to old ipfs gateway in .env.example, is this updated? - updated token fetch query in utils/get-token.ts ##### PR (no perms, PR made from fork) https://github.com/kleros/t2cr-to-ipfs/pull/7 --- #### Docs (https://github.com/kleros/kleros-docs/issues/34) - will update after everything's merged and done, live during call?