Skip to content

Commit e8731a1

Browse files
authored
docs[refactor]: Update all occurrences of goerli to sepolia (#680)
docs refactor: change all occurances of goerli to sepolia
1 parent b2d199a commit e8731a1

File tree

157 files changed

+951
-951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+951
-951
lines changed

website/pages/ar/cookbook/grafting.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ By adhering to these guidelines, you minimize risks and ensure a smoother migrat
4444

4545
Building subgraphs is an essential part of The Graph, described more in depth [here](http://localhost:3000/en/cookbook/quick-start/). To be able to build and deploy the existing subgraph used in this tutorial, the following repo is provided:
4646

47-
- [Subgraph example repo](https://github.com/t-proctor/grafting-tutorial)
47+
- [Subgraph example repo](https://github.com/Shiyasmohd/grafting-tutorial)
4848

4949
> Note: The contract used in the subgraph was taken from the following [Hackathon Starterkit](https://github.com/schmidsi/hackathon-starterkit).
5050
@@ -59,11 +59,11 @@ schema:
5959
dataSources:
6060
- kind: ethereum
6161
name: Lock
62-
network: goerli
62+
network: sepolia
6363
source:
64-
address: '0x4Ed995e775D3629b0566D2279f058729Ae6EA493'
64+
address: '0xb3aabe721794b85fe4e72134795c2f93b4eb7e63'
6565
abi: Lock
66-
startBlock: 7674603
66+
startBlock: 5955690
6767
mapping:
6868
kind: ethereum/events
6969
apiVersion: 0.0.6
@@ -80,7 +80,7 @@ dataSources:
8080
```
8181
8282
- The `Lock` data source is the abi and contract address we will get when we compile and deploy the contract
83-
- The network should correspond to a indexed network being queried. Since we're running on Goerli testnet, the network is `goerli`
83+
- The network should correspond to a indexed network being queried. Since we're running on Sepolia testnet, the network is `sepolia`
8484
- The `mapping` section defines the triggers of interest and the functions that should be run in response to those triggers. In this case, we are listening for the `Withdrawal` event and calling the `handleWithdrawal` function when it is emitted.
8585

8686
## Grafting Manifest Definition
@@ -103,7 +103,7 @@ The `base` and `block` values can be found by deploying two subgraphs: one for t
103103

104104
## Deploying the Base Subgraph
105105

106-
1. Go to [The Graph Studio UI](https://thegraph.com/studio/) and create a subgraph on Goerli testnet called `graft-example`
106+
1. Go to [The Graph Studio UI](https://thegraph.com/studio/) and create a subgraph on Sepolia testnet called `graft-example`
107107
2. Follow the directions in the `AUTH & DEPLOY` section on your subgraph page in the `graft-example` folder from the repo
108108
3. Once finished, verify the subgraph is indexing properly. If you run the following command in The Graph Playground
109109

@@ -124,14 +124,14 @@ It returns something like this:
124124
"data": {
125125
"withdrawals": [
126126
{
127-
"id": "0x13098b538a61837e9f29b32fb40527bbbe63c9120c250242b02b69bb42c287e5-5",
127+
"id": "0xe8323d21c4f104607b10b0fff9fc24b9612b9488795dea8196b2d5f980d3dc1d0a000000",
128128
"amount": "0",
129-
"when": "1664367528"
129+
"when": "1716394824"
130130
},
131131
{
132-
"id": "0x800c92fcc0edbd26f74e19ad058c62008a47c7789f2064023b987028343dd498-3",
132+
"id": "0xea1cee35036f2cacb72f2a336be3e54ab911f5bebd58f23400ebb8ecc5cfc45203000000",
133133
"amount": "0",
134-
"when": "1664367648"
134+
"when": "1716394848"
135135
}
136136
]
137137
}
@@ -144,8 +144,8 @@ Once you have verified the subgraph is indexing properly, you can quickly update
144144

145145
The graft replacement subgraph.yaml will have a new contract address. This could happen when you update your dapp, redeploy a contract, etc.
146146

147-
1. Go to [The Graph Studio UI](https://thegraph.com/studio/) and create a subgraph on Goerli testnet called `graft-replacement`
148-
2. Create a new manifest. The `subgraph.yaml` for `graph-replacement` contains a different contract address and new information about how it should graft. These are the `block` of the [last event emitted](https://goerli.etherscan.io/tx/0x800c92fcc0edbd26f74e19ad058c62008a47c7789f2064023b987028343dd498) you care about by the old contract and the `base` of the old subgraph. The `base` subgraph ID is the `Deployment ID` of your original `graph-example` subgraph. You can find this in The Graph Studio UI.
147+
1. Go to [The Graph Studio UI](https://thegraph.com/studio/) and create a subgraph on Sepolia testnet called `graft-replacement`
148+
2. Create a new manifest. The `subgraph.yaml` for `graph-replacement` contains a different contract address and new information about how it should graft. These are the `block` of the [last event emitted](https://sepolia.etherscan.io/tx/0xea1cee35036f2cacb72f2a336be3e54ab911f5bebd58f23400ebb8ecc5cfc452) you care about by the old contract and the `base` of the old subgraph. The `base` subgraph ID is the `Deployment ID` of your original `graph-example` subgraph. You can find this in The Graph Studio UI.
149149
3. Follow the directions in the `AUTH & DEPLOY` section on your subgraph page in the `graft-replacement` folder from the repo
150150
4. Once finished, verify the subgraph is indexing properly. If you run the following command in The Graph Playground
151151

@@ -166,26 +166,26 @@ It should return the following:
166166
"data": {
167167
"withdrawals": [
168168
{
169-
"id": "0x13098b538a61837e9f29b32fb40527bbbe63c9120c250242b02b69bb42c287e5-5",
169+
"id": "0xe8323d21c4f104607b10b0fff9fc24b9612b9488795dea8196b2d5f980d3dc1d0a000000",
170170
"amount": "0",
171-
"when": "1664367528"
171+
"when": "1716394824"
172172
},
173173
{
174-
"id": "0x800c92fcc0edbd26f74e19ad058c62008a47c7789f2064023b987028343dd498-3",
174+
"id": "0xea1cee35036f2cacb72f2a336be3e54ab911f5bebd58f23400ebb8ecc5cfc45203000000",
175175
"amount": "0",
176-
"when": "1664367648"
176+
"when": "1716394848"
177177
},
178178
{
179-
"id": "0xb4010e4c76f86762beb997a13cf020231778eaf7c64fa3b7794971a5e6b343d3-22",
179+
"id": "0x2410475f76a44754bae66d293d14eac34f98ec03a3689cbbb56a716d20b209af06000000",
180180
"amount": "0",
181-
"when": "1664371512"
181+
"when": "1716429732"
182182
}
183183
]
184184
}
185185
}
186186
```
187187

188-
You can see that the `graft-replacement` subgraph is indexing from older `graph-example` data and newer data from the new contract address. The original contract emitted two `Withdrawal` events, [Event 1](https://goerli.etherscan.io/tx/0x800c92fcc0edbd26f74e19ad058c62008a47c7789f2064023b987028343dd498) and [Event 2](https://goerli.etherscan.io/address/0x4ed995e775d3629b0566d2279f058729ae6ea493). The new contract emitted one `Withdrawal` after, [Event 3](https://goerli.etherscan.io/tx/0xb4010e4c76f86762beb997a13cf020231778eaf7c64fa3b7794971a5e6b343d3). The two previously indexed transactions (Event 1 and 2) and the new transaction (Event 3) were combined together in the `graft-replacement` subgraph.
188+
You can see that the `graft-replacement` subgraph is indexing from older `graph-example` data and newer data from the new contract address. The original contract emitted two `Withdrawal` events, [Event 1](https://sepolia.etherscan.io/tx/0xe8323d21c4f104607b10b0fff9fc24b9612b9488795dea8196b2d5f980d3dc1d) and [Event 2](https://sepolia.etherscan.io/tx/0xea1cee35036f2cacb72f2a336be3e54ab911f5bebd58f23400ebb8ecc5cfc452). The new contract emitted one `Withdrawal` after, [Event 3](https://sepolia.etherscan.io/tx/0x2410475f76a44754bae66d293d14eac34f98ec03a3689cbbb56a716d20b209af). The two previously indexed transactions (Event 1 and 2) and the new transaction (Event 3) were combined together in the `graft-replacement` subgraph.
189189

190190
Congrats! You have succesfully grafted a subgraph onto another subgraph.
191191

website/pages/ar/cookbook/upgrading-a-subgraph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ graph deploy --studio <SUBGRAPH_SLUG>
7272

7373
- Updating is just publishing another version of your existing subgraph on-chain.
7474
- Because this incurs a cost, it is highly recommended to deploy and test your subgraph in the Subgraph Studio, using the "Development Query URL" before publishing. See an example transaction [here](https://etherscan.io/tx/0xd0c3fa0bc035703c9ba1ce40c1862559b9c5b6ea1198b3320871d535aa0de87b). Prices are roughly around 0.0425 ETH at 100 gwei.
75-
- Any time you need to update your subgraph, you will be charged an update fee. 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.
75+
- Any time you need to update your subgraph, you will be charged an update fee. Because this incurs a cost, it is highly recommended to deploy and test your subgraph on Sepolia 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.
7676

7777
7. Publish the subgraph on The Graph's decentralized network by hitting the "Publish" button.
7878

@@ -146,7 +146,7 @@ More information about the nature of the network and how to handle re-orgs are d
146146

147147
If you would like to update 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.
148148

149-
1. Make changes to your current subgraph. A good idea is to test small fixes on the Subgraph Studio by publishing to Goerli.
149+
1. Make changes to your current subgraph. A good idea is to test small fixes on the Subgraph Studio by publishing to Sepolia.
150150
2. انشر ما يلي وحدد الإصدار الجديد في الأمر (مثل v0.0.1 ، v0.0.2 ، إلخ):
151151

152152
```sh

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ If you don't have a `networks.json` file, you'll need to manually create one wit
100100

101101
**Note:** You don't have to specify any of the `templates` (if you have any) in the config file, only the `dataSources`. If there are any `templates` declared in the `subgraph.yaml` file, their network will be automatically updated to the one specified with the `--network` option.
102102

103-
Now, let's assume you want to be able to deploy your subgraph to the `mainnet` and `goerli` networks, and this is your `subgraph.yaml`:
103+
Now, let's assume you want to be able to deploy your subgraph to the `mainnet` and `sepolia` networks, and this is your `subgraph.yaml`:
104104

105105
```yaml
106106
# ...
@@ -124,7 +124,7 @@ This is what your networks config file should look like:
124124
"address": "0x123..."
125125
}
126126
},
127-
"goerli": {
127+
"sepolia": {
128128
"Gravity": {
129129
"address": "0xabc..."
130130
}
@@ -136,20 +136,20 @@ Now we can run one of the following commands:
136136

137137
```sh
138138
# Using default networks.json file
139-
yarn build --network goerli
139+
yarn build --network sepolia
140140

141141
# Using custom named file
142-
yarn build --network goerli --network-file path/to/config
142+
yarn build --network sepolia --network-file path/to/config
143143
```
144144

145-
The `build` command will update your `subgraph.yaml` with the `goerli` configuration and then re-compile the subgraph. Your `subgraph.yaml` file now should look like this:
145+
The `build` command will update your `subgraph.yaml` with the `sepolia` configuration and then re-compile the subgraph. Your `subgraph.yaml` file now should look like this:
146146

147147
```yaml
148148
# ...
149149
dataSources:
150150
- kind: ethereum/contract
151151
name: Gravity
152-
network: goerli
152+
network: sepolia
153153
source:
154154
address: '0xabc...'
155155
abi: Gravity
@@ -163,17 +163,17 @@ Now you are ready to `yarn deploy`.
163163

164164
```sh
165165
# Using default networks.json file
166-
yarn deploy --network goerli
166+
yarn deploy --network sepolia
167167
168168
# Using custom named file
169-
yarn deploy --network goerli --network-file path/to/config
169+
yarn deploy --network sepolia --network-file path/to/config
170170
```
171171

172172
### Using subgraph.yaml template
173173

174174
One solution for older graph-cli versions that allows to parameterize aspects like contract addresses is to generate parts of it using a templating system like [Mustache](https://mustache.github.io/) or [Handlebars](https://handlebarsjs.com/).
175175

176-
To illustrate this approach, let's assume a subgraph should be deployed to mainnet and Goerli using different contract addresses. You could then define two config files providing the addresses for each network:
176+
To illustrate this approach, let's assume a subgraph should be deployed to mainnet and Sepolia using different contract addresses. You could then define two config files providing the addresses for each network:
177177

178178
```json
179179
{
@@ -186,7 +186,7 @@ and
186186

187187
```json
188188
{
189-
"network": "goerli",
189+
"network": "sepolia",
190190
"address": "0xabc..."
191191
}
192192
```
@@ -216,7 +216,7 @@ In order to generate a manifest to either network, you could add two additional
216216
"scripts": {
217217
...
218218
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
219-
"prepare:goerli": "mustache config/goerli.json subgraph.template.yaml > subgraph.yaml"
219+
"prepare:sepolia": "mustache config/sepolia.json subgraph.template.yaml > subgraph.yaml"
220220
},
221221
"devDependencies": {
222222
...
@@ -225,14 +225,14 @@ In order to generate a manifest to either network, you could add two additional
225225
}
226226
```
227227

228-
To deploy this subgraph for mainnet or Goerli you would now simply run one of the two following commands:
228+
To deploy this subgraph for mainnet or sepolia you would now simply run one of the two following commands:
229229

230230
```sh
231231
# Mainnet:
232232
yarn prepare:mainnet && yarn deploy
233233
234-
# Goerli:
235-
yarn prepare:goerli && yarn deploy
234+
# Sepolia:
235+
yarn prepare:sepolia && yarn deploy
236236
```
237237

238238
A working example of this can be found [here](https://github.com/graphprotocol/example-subgraph/tree/371232cf68e6d814facf5e5413ad0fef65144759).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Check out the video overview below as well:
6666

6767
<VideoEmbed youtube="HfDgC2oNnwo" />
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 mainnet or sepolia. If you’re a first-time subgraph developer, we highly suggest you start with publishing to 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

website/pages/ar/developing/developer-faqs.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Unfortunately, this is currently not possible. `graph init` is intended as a bas
6666

6767
ضمن ال Subgraph ، تتم معالجة الأحداث دائمًا بالترتيب الذي تظهر به في الكتل ، بغض النظر عما إذا كان ذلك عبر عقود متعددة أم لا.
6868

69-
## 14. Is it possible to differentiate between networks (mainnet, Goerli, local) from within event handlers?
69+
## 14. Is it possible to differentiate between networks (mainnet, sepolia, local) from within event handlers?
7070

7171
نعم. يمكنك القيام بذلك عن طريق استيراد `graph-ts` كما في المثال أدناه:
7272

@@ -77,9 +77,9 @@ Unfortunately, this is currently not possible. `graph init` is intended as a bas
7777
()dataSource.address
7878
```
7979

80-
## 15. Do you support block and call handlers on Goerli?
80+
## 15. Do you support block and call handlers on Sepolia?
8181

82-
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-compatible network.
82+
Yes. Sepolia 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-compatible network.
8383

8484
## 16. Can I import ethers.js or other JS libraries into my subgraph mappings?
8585

website/pages/ar/developing/supported-networks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const getStaticProps = getStaticPropsForSupportedNetworks(__filename)
1414

1515
The hosted service relies on the stability and reliability of the underlying technologies, namely the provided JSON RPC endpoints.
1616

17-
Ropsten, Rinkeby and Kovan are being deprecated. Read more on the [Ethereum Foundation Blog](https://blog.ethereum.org/2022/06/21/testnet-deprecation). As of Feb 25th 2023, Ropsten, Rinkeby and Kovan are no longer supported by the hosted service. 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.
17+
Ropsten, Rinkeby and Kovan are being deprecated. Read more on the [Ethereum Foundation Blog](https://blog.ethereum.org/2022/06/21/testnet-deprecation). As of Feb 25th 2023, Ropsten, Rinkeby and Kovan are no longer supported by the hosted service. Sepolia 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 Sepolia.
1818

1919
Subgraphs indexing Gnosis Chain can now be deployed with the `gnosis` network identifier. `xdai` is still supported for existing hosted service subgraphs.
2020

website/pages/ar/publishing/publishing-a-subgraph.mdx

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

1515
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/).
1616

17-
- Subgraphs can be published to Goerli, Arbitrum goerli, Arbitrum One, or Ethereum mainnet.
17+
- Subgraphs can be published to Sepolia, Arbitrum Sepolia, Arbitrum One, or Ethereum mainnet.
1818

1919
- Regardless of the network the subgraph was published on, it can index data on any of the [supported networks](/developing/supported-networks).
2020

0 commit comments

Comments
 (0)