Skip to content

Commit 7b72ab1

Browse files
Updating "Deprecating a Subgraph" (#171)
1 parent 4558ae5 commit 7b72ab1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pages/en/managing/deprecating-a-subgraph.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ title: Deprecating a Subgraph
55
So you'd like to deprecate your subgraph on The Graph Explorer. You've come to the right place! Follow the steps below:
66

77
1. Visit the contract address [here](https://etherscan.io/address/0xadca0dd4729c8ba3acf3e99f3a9f471ef37b6825#writeProxyContract)
8-
2. Call 'deprecateSubgraph' with your own address as the first parameter
9-
3. In the 'subgraphNumber' field, list 0 if it's the first subgraph you're publishing, 1 if it's your second, 2 if it's your third, etc.
10-
4. Inputs for #2 and #3 can be found in your `<SubgraphID>` which is composed of the `{graphAccount}-{subgraphNumber}`. For example, the [Sushi Subgraph's](https://thegraph.com/explorer/subgraph?id=0x4bb4c1b0745ef7b4642feeccd0740dec417ca0a0-0&version=0x4bb4c1b0745ef7b4642feeccd0740dec417ca0a0-0-0&view=Overview) ID is `<0x4bb4c1b0745ef7b4642feeccd0740dec417ca0a0-0>`, which is a combination of `graphAccount` = `<0x4bb4c1b0745ef7b4642feeccd0740dec417ca0a0>` and `subgraphNumber` = `<0>`
11-
5. Voila! Your subgraph will no longer show up on searches on The Graph Explorer. Please note the following:
8+
2. Call 'deprecateSubgraph' with your 'SubgraphID'
9+
3. Voila! Your subgraph will no longer show up on searches on The Graph Explorer. Please note the following:
1210

11+
- The 'deprecateSubgraph' function should be called by the owner's wallet.
1312
- Curators will not be able to signal on the subgraph anymore.
1413
- Curators that already signaled on the subgraph will be able to withdraw their signal at an average share price.
1514
- Deprecated subgraphs will be indicated with an error message.

0 commit comments

Comments
 (0)