From 12087b1fbeede860e5f50257c7c01299f0f525ab Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Tue, 17 Oct 2023 16:15:13 +0100 Subject: [PATCH 1/5] Add initializing subgraphs indexing Proxy Contracts --- website/pages/en/deploying/hosted-service.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/website/pages/en/deploying/hosted-service.mdx b/website/pages/en/deploying/hosted-service.mdx index 2e6093531110..e6b54025a01f 100644 --- a/website/pages/en/deploying/hosted-service.mdx +++ b/website/pages/en/deploying/hosted-service.mdx @@ -46,6 +46,22 @@ graph init --from-example --product hosted-service / The example subgraph is based on the Gravity contract by Dani Grant that manages user avatars and emits `NewGravatar` or `UpdateGravatar` events whenever avatars are created or updated. The subgraph handles these events by writing `Gravatar` entities to the Graph Node store and ensuring these are updated according to the events. Continue on to the [subgraph manifest](/developing/creating-a-subgraph#the-subgraph-manifest) to better understand which events from your smart contracts to pay attention to, mappings, and more. +<<<<<<< HEAD ## Supported Networks on the hosted service +======= + +### From a Proxy Contract + +To initialize a subgraph that tracks a Proxy contract. You need to initialzie the subgraph with the implementation contract address. After the initialization wizard is complete, you can update the `subgraph.yaml` file to point to the proxy contract address. + +```sh +graph init \ + --product hosted-service + --from-contract \ + / [] +``` + +## Supported Networks on the Hosted Service +>>>>>>> 7c14edf (Add initializing subgraphs indexing Proxy Contracts) You can find the list of the supported networks [Here](/developing/supported-networks). From af14e1312cc00cb748f1bda9f17faeaf3f97dd56 Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Tue, 17 Oct 2023 21:47:22 +0100 Subject: [PATCH 2/5] minor fixes --- website/pages/en/deploying/hosted-service.mdx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/website/pages/en/deploying/hosted-service.mdx b/website/pages/en/deploying/hosted-service.mdx index e6b54025a01f..1e38b1415b7a 100644 --- a/website/pages/en/deploying/hosted-service.mdx +++ b/website/pages/en/deploying/hosted-service.mdx @@ -2,11 +2,11 @@ title: What is the Hosted Service? --- -> Please note, the hosted service will begin sunsetting in 2023, but it will remain available to networks that are not supported on the decentralized network. Developers are encouraged to [upgrade their subgraphs to The Graph Network](/cookbook/upgrading-a-subgraph) as more networks are supported. Each network will have their hosted service equivalents gradually sunset to ensure developers have enough time to upgrade subgraphs to the decentralized network. Read more about the sunsetting of the hosted service [here](https://thegraph.com/blog/sunsetting-hosted-service). +> Please note, the hosted service will begin sunsetting in Q1 2023, but it will remain available to networks 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 networks are supported. Each network 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). -This section will walk you through deploying a subgraph to the [hosted service](https://thegraph.com/hosted-service/). +This section will walk you through deploying a subgraph to the [Hosted Service](https://thegraph.com/hosted-service/). -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 networks, such as Polygon, Gnosis Chain, BNB Chain, Optimism, Arbitrum, and more. +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 networks, such as Polygon, Gnosis Chain, BNB Chain, Optimism, Arbitrum, and more. For a comprehensive list, see [Supported Networks](/developing/supported-networks/#hosted-service). @@ -46,13 +46,11 @@ graph init --from-example --product hosted-service / The example subgraph is based on the Gravity contract by Dani Grant that manages user avatars and emits `NewGravatar` or `UpdateGravatar` events whenever avatars are created or updated. The subgraph handles these events by writing `Gravatar` entities to the Graph Node store and ensuring these are updated according to the events. Continue on to the [subgraph manifest](/developing/creating-a-subgraph#the-subgraph-manifest) to better understand which events from your smart contracts to pay attention to, mappings, and more. -<<<<<<< HEAD -## Supported Networks on the hosted service -======= ### From a Proxy Contract -To initialize a subgraph that tracks a Proxy contract. You need to initialzie the subgraph with the implementation contract address. After the initialization wizard is complete, you can update the `subgraph.yaml` file to point to the proxy contract address. +To build a subgraph tailored for monitoring a Proxy contract, initialize the subgraph by specifying the address of the implementation contract. Once the initialization process is concluded, the last step involves updating the network name in the subgraph.yaml file to the address of the Proxy contract. +You can use the command below. ```sh graph init \ @@ -62,6 +60,5 @@ graph init \ ``` ## Supported Networks on the Hosted Service ->>>>>>> 7c14edf (Add initializing subgraphs indexing Proxy Contracts) You can find the list of the supported networks [Here](/developing/supported-networks). From 3071838fa0f449366e6d5d8b678ee7254e1ac325 Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Fri, 20 Oct 2023 11:56:52 +0100 Subject: [PATCH 3/5] update hosted-service.mdx to current version --- website/pages/en/deploying/hosted-service.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/pages/en/deploying/hosted-service.mdx b/website/pages/en/deploying/hosted-service.mdx index 1e38b1415b7a..3020ef838f5d 100644 --- a/website/pages/en/deploying/hosted-service.mdx +++ b/website/pages/en/deploying/hosted-service.mdx @@ -2,11 +2,11 @@ title: What is the Hosted Service? --- -> Please note, the hosted service will begin sunsetting in Q1 2023, but it will remain available to networks 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 networks are supported. Each network 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). +> Please note, the hosted service will begin sunsetting in 2023, but it will remain available to networks that are not supported on the decentralized network. Developers are encouraged to [upgrade their subgraphs to The Graph Network](/cookbook/upgrading-a-subgraph) as more networks are supported. Each network will have their hosted service equivalents gradually sunset to ensure developers have enough time to upgrade subgraphs to the decentralized network. Read more about the sunsetting of the hosted service [here](https://thegraph.com/blog/sunsetting-hosted-service). -This section will walk you through deploying a subgraph to the [Hosted Service](https://thegraph.com/hosted-service/). +This section will walk you through deploying a subgraph to the [hosted service](https://thegraph.com/hosted-service/). -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 networks, such as Polygon, Gnosis Chain, BNB Chain, Optimism, Arbitrum, and more. +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 networks, such as Polygon, Gnosis Chain, BNB Chain, Optimism, Arbitrum, and more. For a comprehensive list, see [Supported Networks](/developing/supported-networks/#hosted-service). From 4138318f87c2fd18635a2c6e2defeb38c9e79714 Mon Sep 17 00:00:00 2001 From: Jerry Okolo <73024324+itsjerryokolo@users.noreply.github.com> Date: Mon, 23 Oct 2023 09:24:41 +0100 Subject: [PATCH 4/5] Update website/pages/en/deploying/hosted-service.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: BenoƮt Rouleau --- website/pages/en/deploying/hosted-service.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/en/deploying/hosted-service.mdx b/website/pages/en/deploying/hosted-service.mdx index 3020ef838f5d..de4a85aa0fa2 100644 --- a/website/pages/en/deploying/hosted-service.mdx +++ b/website/pages/en/deploying/hosted-service.mdx @@ -59,6 +59,6 @@ graph init \ / [] ``` -## Supported Networks on the Hosted Service +## Supported Networks on the hosted service You can find the list of the supported networks [Here](/developing/supported-networks). From 42576cc7d028b5191f5f78c0eb1652a54e1032fd Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Mon, 23 Oct 2023 09:31:27 +0100 Subject: [PATCH 5/5] fix text placement --- website/pages/en/deploying/hosted-service.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/pages/en/deploying/hosted-service.mdx b/website/pages/en/deploying/hosted-service.mdx index de4a85aa0fa2..79301caedc92 100644 --- a/website/pages/en/deploying/hosted-service.mdx +++ b/website/pages/en/deploying/hosted-service.mdx @@ -49,8 +49,7 @@ The example subgraph is based on the Gravity contract by Dani Grant that manages ### From a Proxy Contract -To build a subgraph tailored for monitoring a Proxy contract, initialize the subgraph by specifying the address of the implementation contract. Once the initialization process is concluded, the last step involves updating the network name in the subgraph.yaml file to the address of the Proxy contract. -You can use the command below. +To build a subgraph tailored for monitoring a Proxy contract, initialize the subgraph by specifying the address of the implementation contract. Once the initialization process is concluded, the last step involves updating the network name in the subgraph.yaml file to the address of the Proxy contract. You can use the command below. ```sh graph init \