Skip to content

Commit f14a396

Browse files
authored
[fix] outdated changes (#647)
* [fix] outdated changes * [fix] requested changes * [fix] remove en path
1 parent 8b1fa6e commit f14a396

10 files changed

+46
-57
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Deploying a Subgraph to the Hosted Service
44

55
> Hosted service endpoints will be deprecated on June 12th 2024. [Learn more](/sunrise).
66
7-
This page explains how to deploy a subgraph to the hosted service. To deploy a subgraph you need to first install the [Graph CLI](https://github.com/graphprotocol/graph-cli). If you have not created a subgraph already, see [creating a subgraph](/developing/creating-a-subgraph).
7+
This page explains how to deploy a subgraph to the hosted service. To deploy a subgraph you need to first install the [Graph CLI](https://github.com/graphprotocol/graph-tooling/tree/main/packages/cli). If you have not created a subgraph already, see [creating a subgraph](/developing/creating-a-subgraph).
88

99
## Create a hosted service account
1010

@@ -32,7 +32,7 @@ Before deploying the subgraph, you need to create it in The Graph Explorer. Go t
3232

3333
**Hide** - Switching this on hides the subgraph in the Graph Explorer.
3434

35-
After saving the new subgraph, you are shown a screen with help on how to install the Graph CLI, how to generate the scaffolding for a new subgraph, and how to deploy your subgraph. The first two steps were covered in the [Defining a Subgraph section](/developing/defining-a-subgraph).
35+
After saving the new subgraph, you are shown a screen with help on how to install the Graph CLI, how to generate the scaffolding for a new subgraph, and how to deploy your subgraph. The first two steps were covered in the [Creating a Subgraph section](/developing/creating-a-subgraph/).
3636

3737
## Deploy a Subgraph on the hosted service
3838

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
title: Deploying a Subgraph to the Subgraph Studio
2+
title: Deploying a Subgraph to Subgraph Studio
33
---
44

55
> Learn how you can deploy non rate-limited subgraphs to Subgraph Studio [here](https://www.notion.so/edgeandnode/The-Graph-Subgraph-Studio-Non-Rate-Limited-Chain-Integration-889fe061ee6b4423a7f8e2c8070b9294).
66
7-
These are the steps to deploy your subgraph to the Subgraph Studio:
7+
These are the steps to deploy your subgraph to Subgraph Studio:
88

99
- Install The Graph CLI (with either yarn or npm)
10-
- Create your Subgraph in the Subgraph Studio
10+
- Create your Subgraph in Subgraph Studio
1111
- Authenticate your account from the CLI
12-
- Deploying a Subgraph to the Subgraph Studio
12+
- Deploying a Subgraph to Subgraph Studio
1313

1414
## Installing Graph CLI
1515

16-
There is a CLI to deploy subgraphs to [Subgraph Studio](https://thegraph.com/studio/). Here are the commands to install graph-cli. This can be done using npm or yarn.
16+
There is a CLI to deploy subgraphs to [Subgraph Studio](https://thegraph.com/studio/). Here are the commands to install `graph-cli`. This can be done using npm or yarn.
1717

1818
**Install with yarn:**
1919

website/pages/en/deploying/hosted-service.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ For a comprehensive list, see [Supported Networks](/developing/supported-network
1212

1313
## Create a Subgraph
1414

15-
First follow the instructions [here](/developing/defining-a-subgraph) to install the Graph CLI. Create a subgraph by passing in `graph init --product hosted-service`
15+
First follow the instructions [here](/developing/creating-a-subgraph/#install-the-graph-cli) to install the Graph CLI. Create a subgraph by passing in `graph init --product hosted-service`
1616

1717
### From an Existing Contract
1818

1919
If you already have a smart contract deployed to your network of choice, bootstrapping a new subgraph from this contract can be a good way to get started on the hosted service.
2020

21-
You can use this command to create a subgraph that indexes all events from an existing contract. This will attempt to fetch the contract ABI from [Etherscan](https://etherscan.io/).
21+
You can use this command to create a subgraph that indexes all events from an existing contract. This will attempt to fetch the contract ABI from the block explorer.
2222

2323
```sh
2424
graph init \
@@ -27,7 +27,7 @@ graph init \
2727
<GITHUB_USER>/<SUBGRAPH_NAME> [<DIRECTORY>]
2828
```
2929

30-
Additionally, you can use the following optional arguments. If the ABI cannot be fetched from Etherscan, it falls back to requesting a local file path. If any optional arguments are missing from the command, it takes you through an interactive form.
30+
Additionally, you can use the following optional arguments. If the ABI cannot be fetched from the block explorer, it falls back to requesting a local file path. If any optional arguments are missing from the command, it takes you through an interactive form.
3131

3232
```sh
3333
--network <ETHEREUM_NETWORK> \

website/pages/en/deploying/subgraph-studio-faqs.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Subgraph Studio FAQs
88

99
## 2. How do I create an API Key?
1010

11-
To create an API, navigate to the Subgraph Studio and connect your wallet. You will be able to click the API keys tab at the top. There, you will be able to create an API key.
11+
To create an API, navigate to Subgraph Studio and connect your wallet. You will be able to click the API keys tab at the top. There, you will be able to create an API key.
1212

1313
## 3. Can I create multiple API Keys?
1414

@@ -20,12 +20,12 @@ After creating an API Key, in the Security section, you can define the domains t
2020

2121
## 5. Can I transfer my subgraph to another owner?
2222

23-
Yes, subgraphs that have been published to Mainnet can be transferred to a new wallet or a Multisig. You can do so by clicking the three dots next to the 'Publish' button on the subgraph's details page and selecting 'Transfer ownership'.
23+
Yes, subgraphs that have been published to Arbitrum One can be transferred to a new wallet or a Multisig. You can do so by clicking the three dots next to the 'Publish' button on the subgraph's details page and selecting 'Transfer ownership'.
2424

2525
Note that you will no longer be able to see or edit the subgraph in Studio once it has been transferred.
2626

2727
## 6. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use?
2828

29-
You can find the query URL of each subgraph in the Subgraph Details section of The Graph Explorer. When you click on the “Query” button, you will be directed to a pane wherein you can view the query URL of the subgraph you’re interested in. You can then replace the `<api_key>` placeholder with the API key you wish to leverage in the Subgraph Studio.
29+
You can find the query URL of each subgraph in the Subgraph Details section of The Graph Explorer. When you click on the “Query” button, you will be directed to a pane wherein you can view the query URL of the subgraph you’re interested in. You can then replace the `<api_key>` placeholder with the API key you wish to leverage in Subgraph Studio.
3030

3131
Remember that you can create an API key and query any subgraph published to the network, even if you build a subgraph yourself. These queries via the new API key, are paid queries as any other on the network.

website/pages/en/deploying/subgraph-studio.mdx

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: How to Use the Subgraph Studio
2+
title: How to Use Subgraph Studio
33
---
44

55
Welcome to your new launchpad 👩🏽‍🚀
66

7-
The Subgraph Studio is your place to build and create subgraphs, add metadata, and publish them to the new decentralized Explorer (more on that [here](/network/explorer)).
7+
Subgraph Studio is your place to build and create subgraphs, add metadata, and publish them to the new decentralized Explorer (more on that [here](/network/explorer)).
88

9-
What you can do in the Subgraph Studio:
9+
What you can do in Subgraph Studio:
1010

1111
- Create a subgraph through the Studio UI
1212
- Deploy a subgraph using the CLI
@@ -15,7 +15,7 @@ What you can do in the Subgraph Studio:
1515
- Integrate it in staging using the query URL
1616
- Create and manage your API keys for specific subgraphs
1717

18-
Here in the Subgraph Studio, you have full control over your subgraphs. Not only can you test your subgraphs before you publish them, but you can also restrict your API keys to specific domains and only allow certain Indexers to query from their API keys.
18+
Here in Subgraph Studio, you have full control over your subgraphs. Not only can you test your subgraphs before you publish them, but you can also restrict your API keys to specific domains and only allow certain Indexers to query from their API keys.
1919

2020
Querying subgraphs generates query fees, used to reward [Indexers](/network/indexing) on the Graph network. If you’re a dapp developer or subgraph developer, the Studio will empower you to build better subgraphs to power your or your community’s queries. The Studio is comprised of 5 main parts:
2121

@@ -27,7 +27,7 @@ Querying subgraphs generates query fees, used to reward [Indexers](/network/inde
2727

2828
## How to Create Your Account
2929

30-
1. Sign in with your wallet - you can do this via MetaMask or WalletConnect
30+
1. Sign in with your wallet - you can do this via MetaMask, WalletConnect, Coinbase Wallet or Safe.
3131
1. Once you sign in, you will see your unique deploy key on your account home page. This will allow you to either publish your subgraphs or manage your API keys + billing. You will have a unique deploy key that can be re-generated if you think it has been compromised.
3232

3333
## How to Create a Subgraph in Subgraph Studio
@@ -50,7 +50,7 @@ More features & networks will be added to The Graph Network incrementally.
5050

5151
![Subgraph Lifecycle](/img/subgraph-lifecycle.png)
5252

53-
After you have created your subgraph, you will be able to deploy it using the [CLI](https://github.com/graphprotocol/graph-cli), or command-line interface. Deploying a subgraph with the CLI will push the subgraph to the Studio where you’ll be able to test subgraphs using the playground. This will eventually allow you to publish to the Graph Network. For more information on CLI setup, [check this out](/developing/defining-a-subgraph#install-the-graph-cli) (pst, make sure you have your deploy key on hand). Remember, deploying is **not the same as** publishing. When you deploy a subgraph, you just push it to the Studio where you’re able to test it. Versus, when you publish a subgraph, you are publishing it on-chain.
53+
After you have created your subgraph, you will be able to deploy it using the [CLI](https://github.com/graphprotocol/graph-tooling/tree/main/packages/cli), or command-line interface. Deploying a subgraph with the CLI will push the subgraph to the Studio where you’ll be able to test subgraphs using the playground. This will eventually allow you to publish to the Graph Network. For more information on CLI setup, [check this out](/developing/defining-a-subgraph#install-the-graph-cli) (psst, make sure you have your deploy key on hand). Remember, deploying is **not the same as** publishing. When you deploy a subgraph, you just push it to the Studio where you’re able to test it. Versus, when you publish a subgraph, you are publishing it on-chain.
5454

5555
## Testing your Subgraph in Subgraph Studio
5656

@@ -60,13 +60,13 @@ If you’d like to test your subgraph before publishing it to the network, you c
6060

6161
You’ve made it this far - congrats!
6262

63-
In order to publish your subgraph successfully, you’ll need to go through the following steps outlined in this [blog](https://thegraph.com/blog/building-with-subgraph-studio).
63+
In order to publish your subgraph successfully, you’ll need to go through the following steps outlined in this [section](/publishing/publishing-a-subgraph/).
6464

6565
Check out the video overview below as well:
6666

6767
<VideoEmbed youtube="satdwdbvzAQ" />
6868

69-
Remember, while you’re going through your publishing flow, you’ll be able to push to either mainnet or Goerli. 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.
69+
Remember, while you’re going through your publishing flow, you’ll be able to push to either Arbitrum One or Arbitrum Sepolia. If you’re a first-time subgraph developer, we highly suggest you start with publishing to Arbitrum Sepolia, 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.
7070

7171
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!
7272

@@ -84,6 +84,6 @@ Please note that there are costs associated with publishing a new version of a s
8484

8585
### Automatic Archiving of Subgraph Versions
8686

87-
Whenever you deploy a new subgraph version in the Subgraph Studio, the previous version will be archived. Archived versions won't be indexed/synced and therefore cannot be queried. You can unarchive an archived version of your subgraph in the Studio UI. Please note that previous versions of non-published subgraphs deployed to the Studio will be automatically archived.
87+
Whenever you deploy a new subgraph version in Subgraph Studio, the previous version will be archived. Archived versions won't be indexed/synced and therefore cannot be queried. You can unarchive an archived version of your subgraph in the Studio UI. Please note that previous versions of non-published subgraphs deployed to the Studio will be automatically archived.
8888

8989
![Subgraph Studio - Unarchive](/img/Unarchive.png)

0 commit comments

Comments
 (0)