Skip to content

Commit 0016c58

Browse files
authored
remove ropsten and kovan (#185)
* remove ropsten and goerli * Update developer-faqs.mdx
1 parent 8790a1b commit 0016c58

28 files changed

+119
-161
lines changed

.husky/pre-push

Lines changed: 0 additions & 4 deletions
This file was deleted.

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

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

9999
**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.
100100

101-
Now, let's assume you want to be able to deploy your subgraph to the `mainnet` and `ropsten` networks, and this is your `subgraph.yaml`:
101+
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`:
102102

103103
```yaml
104104
# ...
@@ -122,7 +122,7 @@ This is what your networks config file should look like:
122122
"address": "0x123..."
123123
}
124124
},
125-
"ropsten": {
125+
"goerli": {
126126
"Gravity": {
127127
"address": "0xabc..."
128128
}
@@ -134,20 +134,20 @@ Now we can run the following command:
134134

135135
```sh
136136
# Using default networks.json file
137-
yarn build --network ropsten
137+
yarn build --network goerli
138138

139139
# Using custom named file
140-
yarn build --network ropsten --network-file path/to/config
140+
yarn build --network goerli --network-file path/to/config
141141
```
142142

143-
The `build` command will update your `subgraph.yaml` with the `ropsten` configuration and then re-compile the subgraph. Your `subgraph.yaml` file now should look like this:
143+
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:
144144

145145
```yaml
146146
# ...
147147
dataSources:
148148
- kind: ethereum/contract
149149
name: Gravity
150-
network: ropsten
150+
network: goerli
151151
source:
152152
address: '0xabc...'
153153
abi: Gravity
@@ -161,7 +161,7 @@ Now you are ready to `yarn deploy`
161161

162162
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/).
163163

164-
To illustrate this approach, let's assume a subgraph should be deployed to mainnet and Ropsten using different contract addresses. You could then define two config files providing the addresses for each network:
164+
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:
165165

166166
```json
167167
{
@@ -174,7 +174,7 @@ and
174174

175175
```json
176176
{
177-
"network": "ropsten",
177+
"network": "goerli",
178178
"address": "0xabc..."
179179
}
180180
```
@@ -204,7 +204,7 @@ In order generate a manifest to either network, you could add two additional com
204204
"scripts": {
205205
...
206206
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
207-
"prepare:ropsten": "mustache config/ropsten.json subgraph.template.yaml > subgraph.yaml"
207+
"prepare:goerli": "mustache config/goerli.json subgraph.template.yaml > subgraph.yaml"
208208
},
209209
"devDependencies": {
210210
...
@@ -213,14 +213,14 @@ In order generate a manifest to either network, you could add two additional com
213213
}
214214
```
215215

216-
To deploy this subgraph for mainnet or Ropsten you would now simply run one of the two following commands:
216+
To deploy this subgraph for mainnet or Goerli you would now simply run one of the two following commands:
217217

218218
```sh
219219
# Mainnet:
220220
yarn prepare:mainnet && yarn deploy
221221
222-
# Ropsten:
223-
yarn prepare:ropsten && yarn deploy
222+
# Goerli:
223+
yarn prepare:goerli && yarn deploy
224224
```
225225

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

pages/ar/deploying/hosted-service.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: ما هي الخدمة المستضافة (Hosted Service)؟
44

55
سيرشدك هذا القسم لنشر subgraph على الـخدمة المستضافة، والمعروفة باسم [Hosted Service.](https://thegraph.com/hosted-service/) وكتذكير ، الـ Hosted Service لن يغلق قريبا وسننهي الخدمة المستضافة تدريجيا بمجرد أن نصل إلى ميزات مساوية للشبكة اللامركزية. لا تزال الـ subgraphs المنشورة على الخدمة المستضافة متاحة [ هنا. ](https://thegraph.com/hosted-service/)
66

7-
إذا لم يكن لديك حساب على Hosted Service ، فيمكنك التسجيل باستخدام حساب Github الخاص بك. وبمجرد المصادقة ، يمكنك البدء في إنشاء subgraphs من خلال واجهة المستخدم ونشرها من الـ terminal الخاص بك. يدعم Graph Node عددا من Ethereum testnets (Rinkeby و Ropsten و Kovan) بالإضافة إلى mainnet.
7+
إذا لم يكن لديك حساب على Hosted Service ، فيمكنك التسجيل باستخدام حساب Github الخاص بك. وبمجرد المصادقة ، يمكنك البدء في إنشاء subgraphs من خلال واجهة المستخدم ونشرها من الـ terminal الخاص بك. يدعم Graph Node عددا من Ethereum testnets (Rinkeby و Goerli) بالإضافة إلى mainnet.
88

99
## إنشاء الـ Subgraph
1010

@@ -47,9 +47,7 @@ graph init --from-example --product hosted-service <GITHUB_USER>/<SUBGRAPH_NAME>
4747
يرجى ملاحظة أن الشبكات التالية مدعومة على Hosted Service. والشبكات خارج Ethereum mainnet ('mainnet') غير مدعومة حاليا على [The Graph Explorer.](https://thegraph.com/explorer)
4848

4949
- `mainnet`
50-
- `kovan`
5150
- `rinkeby`
52-
- `ropsten`
5351
- `goerli`
5452
- `poa-core`
5553
- `poa-sokol`
@@ -73,7 +71,7 @@ graph init --from-example --product hosted-service <GITHUB_USER>/<SUBGRAPH_NAME>
7371
- `arbitrum-one`
7472
- `arbitrum-rinkeby`
7573
- `optimism`
76-
- `optimism-kovan`
74+
- `optimism-goerli`
7775
- `aurora`
7876
- `aurora-testnet`
7977
- `harmony`

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ title: إنشاء الـ Subgraph
1515
**يتم دعم الشبكات الإضافية في الإصدار beta على Hosted Service**:
1616

1717
- `mainnet`
18-
- `kovan`
1918
- `rinkeby`
20-
- `ropsten`
2119
- `goerli`
2220
- `poa-core`
2321
- `poa-sokol`
@@ -40,7 +38,7 @@ title: إنشاء الـ Subgraph
4038
- `arbitrum-one`
4139
- `arbitrum-rinkeby`
4240
- `optimism`
43-
- `optimism-kovan`
41+
- `optimism-goerli`
4442
- `aurora`
4543
- `aurora-testnet`
4644
- `harmony`

pages/ar/developing/developer-faqs.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ docker pull graphprotocol/graph-node:latest
6262

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

65-
### 13. هل من الممكن التفريق بين الشبكات (mainnet، Kovan، Ropsten، local) من داخل معالجات الأحداث؟
65+
### 13. هل من الممكن التفريق بين الشبكات (mainnet، Goerli، local) من داخل معالجات الأحداث؟
6666

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

@@ -108,9 +108,7 @@ curl -X POST -d '{ "query": "{indexingStatusForCurrentVersion(subgraphName: \"or
108108
في ال Hosted Service ، يتم دعم الشبكات التالية:
109109

110110
- Ethereum mainnet
111-
- Kovan
112111
- Rinkeby
113-
- Ropsten
114112
- Goerli
115113
- PoA-Core
116114
- PoA-Sokol
@@ -133,7 +131,7 @@ curl -X POST -d '{ "query": "{indexingStatusForCurrentVersion(subgraphName: \"or
133131
- Arbitrum One
134132
- (Arbitrum Testnet (on Rinkeby
135133
- Optimism
136-
- (Optimism Testnet (on Kovan
134+
- (Optimism Testnet (on Goerli)
137135

138136
هناك عمل قيد التقدم من أجل دمج ال blockchain الأخرى ، يمكنك قراءة المزيد في مرجعنا: [RFC-0003: Multi-Blockchain Support](https://github.com/graphprotocol/rfcs/pull/8/files).
139137

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

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

1313
- `mainnet`
14-
- `kovan`
1514
- `rinkeby`
16-
- `ropsten`
1715
- `goerli`
1816
- `poa-core`
1917
- `poa-sokol`
@@ -34,7 +32,7 @@ The following networks are supported in beta on the Hosted Service:
3432
- `arbitrum-one`
3533
- `arbitrum-rinkeby`
3634
- `optimism`
37-
- `optimism-kovan`
35+
- `optimism-goerli`
3836
- `aurora`
3937
- `aurora-testnet`
4038
- `boba`
@@ -148,7 +146,7 @@ If you don't have a `networks.json` file, you'll need to manually create one wit
148146

149147
**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.
150148

151-
Now, let's assume you want to be able to deploy your subgraph to the `mainnet` and `ropsten` networks, and this is your `subgraph.yaml`:
149+
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`:
152150

153151
```yaml
154152
# ...
@@ -172,7 +170,7 @@ This is what your networks config file should look like:
172170
"address": "0x123..."
173171
}
174172
},
175-
"ropsten": {
173+
"goerli": {
176174
"Gravity": {
177175
"address": "0xabc..."
178176
}
@@ -184,20 +182,20 @@ Now we can run one of the following commands:
184182

185183
```sh
186184
# Using default networks.json file
187-
yarn build --network ropsten
185+
yarn build --network goerli
188186

189187
# Using custom named file
190-
yarn build --network ropsten --network-file path/to/config
188+
yarn build --network goerli --network-file path/to/config
191189
```
192190

193-
The `build` command will update your `subgraph.yaml` with the `ropsten` configuration and then re-compile the subgraph. Your `subgraph.yaml` file now should look like this:
191+
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:
194192

195193
```yaml
196194
# ...
197195
dataSources:
198196
- kind: ethereum/contract
199197
name: Gravity
200-
network: ropsten
198+
network: goerli
201199
source:
202200
address: '0xabc...'
203201
abi: Gravity
@@ -211,17 +209,17 @@ Now you are ready to `yarn deploy`.
211209

212210
```sh
213211
# Using default networks.json file
214-
yarn deploy --network ropsten
212+
yarn deploy --network goerli
215213
216214
# Using custom named file
217-
yarn deploy --network ropsten --network-file path/to/config
215+
yarn deploy --network goerli --network-file path/to/config
218216
```
219217

220218
### Using subgraph.yaml template
221219

222220
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/).
223221

224-
To illustrate this approach, let's assume a subgraph should be deployed to mainnet and Ropsten using different contract addresses. You could then define two config files providing the addresses for each network:
222+
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:
225223

226224
```json
227225
{
@@ -234,7 +232,7 @@ and
234232

235233
```json
236234
{
237-
"network": "ropsten",
235+
"network": "goerli",
238236
"address": "0xabc..."
239237
}
240238
```
@@ -264,7 +262,7 @@ In order to generate a manifest to either network, you could add two additional
264262
"scripts": {
265263
...
266264
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
267-
"prepare:ropsten": "mustache config/ropsten.json subgraph.template.yaml > subgraph.yaml"
265+
"prepare:goerli": "mustache config/goerli.json subgraph.template.yaml > subgraph.yaml"
268266
},
269267
"devDependencies": {
270268
...
@@ -273,14 +271,14 @@ In order to generate a manifest to either network, you could add two additional
273271
}
274272
```
275273

276-
To deploy this subgraph for mainnet or Ropsten you would now simply run one of the two following commands:
274+
To deploy this subgraph for mainnet or Goerli you would now simply run one of the two following commands:
277275

278276
```sh
279277
# Mainnet:
280278
yarn prepare:mainnet && yarn deploy
281279
282-
# Ropsten:
283-
yarn prepare:ropsten && yarn deploy
280+
# Goerli:
281+
yarn prepare:goerli && yarn deploy
284282
```
285283

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

pages/en/deploying/hosted-service.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: What is the 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, Ropsten, Kovan) 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. Graph Node supports a number of Ethereum testnets (Rinkeby, Goerli) in addition to mainnet.
1010

1111
## Create a Subgraph
1212

pages/en/developing/developer-faqs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If only one entity is created during the event and if there's nothing better ava
6262

6363
Within a subgraph, the events are always processed in the order they appear in the blocks, regardless of whether that is across multiple contracts or not.
6464

65-
### 13. Is it possible to differentiate between networks (mainnet, Kovan, Ropsten, local) from within event handlers?
65+
### 13. Is it possible to differentiate between networks (mainnet, Goerli, local) from within event handlers?
6666

6767
Yes. You can do this by importing `graph-ts` as per the example below:
6868

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

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

9999
**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.
100100

101-
Now, let's assume you want to be able to deploy your subgraph to the `mainnet` and `ropsten` networks, and this is your `subgraph.yaml`:
101+
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`:
102102

103103
```yaml
104104
# ...
@@ -122,7 +122,7 @@ This is what your networks config file should look like:
122122
"address": "0x123..."
123123
}
124124
},
125-
"ropsten": {
125+
"goerli": {
126126
"Gravity": {
127127
"address": "0xabc..."
128128
}
@@ -134,20 +134,20 @@ Now we can run the following command:
134134

135135
```sh
136136
# Using default networks.json file
137-
yarn build --network ropsten
137+
yarn build --network goerli
138138

139139
# Using custom named file
140-
yarn build --network ropsten --network-file path/to/config
140+
yarn build --network goerli --network-file path/to/config
141141
```
142142

143-
The `build` command will update your `subgraph.yaml` with the `ropsten` configuration and then re-compile the subgraph. Your `subgraph.yaml` file now should look like this:
143+
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:
144144

145145
```yaml
146146
# ...
147147
dataSources:
148148
- kind: ethereum/contract
149149
name: Gravity
150-
network: ropsten
150+
network: goerli
151151
source:
152152
address: '0xabc...'
153153
abi: Gravity
@@ -161,7 +161,7 @@ Now you are ready to `yarn deploy`
161161

162162
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/).
163163

164-
To illustrate this approach, let's assume a subgraph should be deployed to mainnet and Ropsten using different contract addresses. You could then define two config files providing the addresses for each network:
164+
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:
165165

166166
```json
167167
{
@@ -174,7 +174,7 @@ and
174174

175175
```json
176176
{
177-
"network": "ropsten",
177+
"network": "goerli",
178178
"address": "0xabc..."
179179
}
180180
```
@@ -204,7 +204,7 @@ In order generate a manifest to either network, you could add two additional com
204204
"scripts": {
205205
...
206206
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
207-
"prepare:ropsten": "mustache config/ropsten.json subgraph.template.yaml > subgraph.yaml"
207+
"prepare:goerli": "mustache config/goerli.json subgraph.template.yaml > subgraph.yaml"
208208
},
209209
"devDependencies": {
210210
...
@@ -213,14 +213,14 @@ In order generate a manifest to either network, you could add two additional com
213213
}
214214
```
215215

216-
To deploy this subgraph for mainnet or Ropsten you would now simply run one of the two following commands:
216+
To deploy this subgraph for mainnet or Goerli you would now simply run one of the two following commands:
217217

218218
```sh
219219
# Mainnet:
220220
yarn prepare:mainnet && yarn deploy
221221
222-
# Ropsten:
223-
yarn prepare:ropsten && yarn deploy
222+
# Goerli:
223+
yarn prepare:goerli && yarn deploy
224224
```
225225

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

0 commit comments

Comments
 (0)