Skip to content

Commit 5ed8c71

Browse files
Update deploying-a-subgraph-to-hosted.mdx (#189)
* Update deploying-a-subgraph-to-hosted.mdx Removed Rinkeby from supported networks and added information about Ropsten, Rinkeby and Kovan being deprecated. * Update developer-faqs.mdx Changed #14 from Rinkeby to Goerli. Since many developers are migrating from Rinkeby to Goerli, I believe it is worth keeping this question. * Update creating-a-subgraph.mdx Removed Rinkeby. Call handlers are now supported on Goerli. Added a note that block handlers with a call filter depend on the Parity tracing API. * Update subgraph-studio.mdx Rinkeby -> Goerli * Update deploying-a-subgraph-to-studio.mdx The graph mainnet currently only supports subgraphs indexing (The studio allows you to create subgraphs for mainnet, rinkeby and goerli, but you are only able to deploy mainnet subgraphs to "The Graph Network" * Update hosted-service.mdx Updated and added link. * Update publishing-a-subgraph.mdx Changed from Rinkeby to Goerli * Update migrating-a-subgraph.mdx Rinkeby to Goerli
1 parent 2db0cf2 commit 5ed8c71

File tree

8 files changed

+16
-13
lines changed

8 files changed

+16
-13
lines changed

pages/en/cookbook/migrating-a-subgraph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ graph codegen && graph build
6868
8. Publish the subgraph on The Graph's Network by hitting the "Publish" button.
6969

7070
- Remember that publishing is an on-chain action and will require gas to be paid for in Ethereum - see an example transaction [here](https://etherscan.io/tx/0xd0c3fa0bc035703c9ba1ce40c1862559b9c5b6ea1198b3320871d535aa0de87b). Prices are roughly around 0.0425 ETH at 100 gwei.
71-
- Any time you need to upgrade your subgraph, you will be charged an upgrade fee. Remember, upgrading is just publishing another version of your existing subgraph on-chain. Because this incurs a cost, it is highly recommended to deploy and test your subgraph on Rinkeby before deploying to mainnet. It can, in some cases, also require some GRT if there is no signal on that subgraph. In the case there is signal/curation on that subgraph version (using auto-migrate), the taxes will be split.
71+
- Any time you need to upgrade your subgraph, you will be charged an upgrade fee. Remember, upgrading is just publishing another version of your existing subgraph on-chain. Because this incurs a cost, it is highly recommended to deploy and test your subgraph on Goerli before deploying to mainnet. It can, in some cases, also require some GRT if there is no signal on that subgraph. In the case there is signal/curation on that subgraph version (using auto-migrate), the taxes will be split.
7272

7373
And that's it! After you are done publishing, you'll be able to view your subgraphs live on the network via [The Graph Explorer](https://thegraph.com/explorer).
7474

@@ -78,7 +78,7 @@ Feel free to leverage the [#Curators channel](https://discord.gg/rC8rBuRtbH) on
7878

7979
If you would like to upgrade an existing subgraph on the network, you can do this by deploying a new version of your subgraph to the Subgraph Studio using the Graph CLI.
8080

81-
1. Make changes to your current subgraph. A good idea is to test small fixes on the Subgraph Studio by publishing to Rinkeby.
81+
1. Make changes to your current subgraph. A good idea is to test small fixes on the Subgraph Studio by publishing to Goerli.
8282
2. Deploy the following and specify the new version in the command (eg. v0.0.1, v0.0.2, etc):
8383

8484
```sh

pages/en/deploying/deploying-a-subgraph-to-hosted.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The following networks are supported in beta on the Hosted Service:
1111
### Ethereum
1212

1313
- `mainnet`
14-
- `rinkeby`
1514
- `goerli`
1615
- `poa-core`
1716
- `poa-sokol`
@@ -38,7 +37,10 @@ The following networks are supported in beta on the Hosted Service:
3837
- `boba`
3938
- `harmony`
4039

41-
> Note that if an EVM compatible chain is not supported on the Hosted Service, you can run your own graph-node to index it.
40+
41+
> Ropsten, Rinkeby and Kovan are being deprecated, and are no longer supported by the Hosted Service. Read more on the [Ethereum Foundation Blog](https://blog.ethereum.org/2022/06/21/testnet-deprecation). Goerli will be maintained by client developers post-merge, and is also supported by the Hosted Service. Developers who currently use Ropsten, Rinkeby or Kovan as their staging/testing environment are encouraged to migrate to Goerli.
42+
43+
> Note that if an EVM compatible chain is not supported on the Hosted Service, you can run your own [graph-node](https://github.com/graphprotocol/graph-node) to index it.
4244
4345
### Near
4446

pages/en/deploying/deploying-a-subgraph-to-studio.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ title: Deploying a Subgraph to the Subgraph Studio
44

55
## Supported Networks
66

7-
The Graph Network supports subgraphs indexing the following chains:
7+
The Graph Network supports subgraphs indexing the following chain:
88

99
### Ethereum
1010

1111
- `mainnet`
12-
- `rinkeby`
1312

1413
Deploying a Subgraph to the Subgraph Studio is quite simple. This will take you through the steps to:
1514

pages/en/deploying/hosted-service.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: What is the Hosted Service?
33
---
44

5-
> Please note, the Hosted Service will begin sunsetting in Q1 2023, but it will remain available to chains that are not supported on the decentralized network. Developers are encouraged to [migrate their subgraphs](https://thegraph.com/blog/how-to-migrate-ethereum-subgraph) as more chains are supported. Each chain will have their hosted service equivalents gradually sunset to ensure developers have enough time to migrate subgraphs to the decentralized network. Read more about the sunsetting of the Hosted Service [here](https://thegraph.com/blog/sunsetting-hosted-service).
5+
> Please note, the Hosted Service will begin sunsetting in Q1 2023, but it will remain available to chains that are not supported on the decentralized network. Developers are encouraged to [migrate their subgraphs](https://thegraph.com/blog/how-to-migrate-ethereum-subgraph) as more chains are supported. Each chain will have their hosted service equivalents gradually sunset to ensure developers have enough time to migrate subgraphs to the decentralized network. Read more about the sunsetting of the Hosted Service [here](https://thegraph.com/blog/sunsetting-hosted-service).
66
77
This section will walk you through deploying a subgraph to the [Hosted Service](https://thegraph.com/hosted-service/).
88

9-
If you don't have an account on the Hosted Service, you can sign up with your Github account. Once you authenticate, you can start creating subgraphs through the UI and deploying them from your terminal. Graph Node supports a number of Ethereum testnets (Rinkeby, Goerli) in addition to mainnet.
9+
If you don't have an account on the Hosted Service, you can sign up with your Github account. Once you authenticate, you can start creating subgraphs through the UI and deploying them from your terminal. The Hosted Service supports a number of evm-compatible networks, such as Polygon, Gnosis Chain, BNB Chain, Optimism and Arbitrum. For a comprehensive list see [Supported Networks](https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-hosted/)
1010

1111
## Create a Subgraph
1212

pages/en/deploying/subgraph-studio.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You’ve made it this far - congrats! Publishing your subgraph means that an IPF
6868

6969
<VideoEmbed youtube="HfDgC2oNnwo" />
7070

71-
Remember, while you’re going through your publishing flow, you’ll be able to push to either mainnet or Rinkeby, the testnet we support. If you’re a first-time subgraph developer, we highly suggest you start with publishing to Rinkeby, which is free to do. This will allow you to see how the subgraph will work in The Graph Explorer and will allow you to test curation elements.
71+
Remember, while you’re going through your publishing flow, you’ll be able to push to either mainnet or Goerli, the testnet we support. If you’re a first-time subgraph developer, we highly suggest you start with publishing to Goerli, which is free to do. This will allow you to see how the subgraph will work in The Graph Explorer and will allow you to test curation elements.
7272

7373
You’ll only be able to index data from mainnet (even if your subgraph was published to a testnet) because only subgraphs that are indexing mainnet data can be published to the network. This is because indexers need to submit mandatory Proof of Indexing records as of a specific block hash. Because publishing a subgraph is an action taken on-chain, remember that the transaction can take up to a few minutes to go through. Any address you use to publish the contract will be the only one able to publish future versions. Choose wisely!
7474

pages/en/developing/creating-a-subgraph.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ While events provide an effective way to collect relevant changes to the state o
710710

711711
Call handlers will only trigger in one of two cases: when the function specified is called by an account other than the contract itself or when it is marked as external in Solidity and called as part of another function in the same contract.
712712

713-
> **Note:** Call handlers are not supported on Rinkeby, Goerli, or Ganache. Call handlers currently depend on the Parity tracing API and these networks do not support it.
713+
> **Note:** Call handlers currently depend on the Parity tracing API. Certain networks, such as BNB chain and Arbitrum, does not support this API. If a subgraph indexing one of these networks contain one or more call handlers, it will not start syncing. Subgraph developers should instead use event handlers. These are far more performant than call handlers, and are supported on every evm network.
714714

715715
### Defining a Call Handler
716716

@@ -773,6 +773,8 @@ filter:
773773

774774
_The defined handler will be called once for every block which contains a call to the contract (data source) the handler is defined under._
775775

776+
> **Note:** The `call` filter currently depend on the Parity tracing API. Certain networks, such as BNB chain and Arbitrum, does not support this API. If a subgraph indexing one of these networks contain one or more block handlers with a `call` filter, it will not start syncing.
777+
776778
The absence of a filter for a block handler will ensure that the handler is called every block. A data source can only contain one block handler for each filter type.
777779

778780
```yaml

pages/en/developing/developer-faqs.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ dataSource.network()
7373
dataSource.address()
7474
```
7575

76-
### 14. Do you support block and call handlers on Rinkeby?
76+
### 14. Do you support block and call handlers on Goerli?
7777

78-
On Rinkeby we support block handlers, but without `filter: call`. Call handlers are not supported for the time being.
78+
Yes. Goerli supports block handlers, call handlers and event handlers. It should be noted that event handlers are far more performant than the other two handlers, and they are supported on every EVM network.
7979

8080
### 15. Can I import ethers.js or other JS libraries into my subgraph mappings?
8181

pages/en/publishing/publishing-a-subgraph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can find the list of the supported networks [Here](/developing/supported-net
1616

1717
Subgraphs can be published to the decentralized network directly from the Subgraph Studio dashboard by clicking on the **Publish** button. Once a subgraph is published, it will be available to view in the [Graph Explorer](https://thegraph.com/explorer/).
1818

19-
- Subgraphs published to Rinkeby can index and query data from either the Rinkeby network or Ethereum Mainnet.
19+
- Subgraphs published to Goerli can index and query data from either the Goerli network or Ethereum Mainnet.
2020

2121
- Subgraphs published to Ethereum Mainnet can only index and query data from Ethereum Mainnet, meaning that you cannot publish subgraphs to the main decentralized network that index and query testnet data.
2222

0 commit comments

Comments
 (0)