You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/ar/deploying/deploying-a-subgraph-to-hosted.mdx
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ If you don't have a `networks.json` file, you'll need to manually create one wit
98
98
99
99
**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.
100
100
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`:
102
102
103
103
```yaml
104
104
# ...
@@ -122,7 +122,7 @@ This is what your networks config file should look like:
122
122
"address": "0x123..."
123
123
}
124
124
},
125
-
"ropsten": {
125
+
"goerli": {
126
126
"Gravity": {
127
127
"address": "0xabc..."
128
128
}
@@ -134,20 +134,20 @@ Now we can run the following command:
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:
144
144
145
145
```yaml
146
146
# ...
147
147
dataSources:
148
148
- kind: ethereum/contract
149
149
name: Gravity
150
-
network: ropsten
150
+
network: goerli
151
151
source:
152
152
address: '0xabc...'
153
153
abi: Gravity
@@ -161,7 +161,7 @@ Now you are ready to `yarn deploy`
161
161
162
162
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/).
163
163
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:
165
165
166
166
```json
167
167
{
@@ -174,7 +174,7 @@ and
174
174
175
175
```json
176
176
{
177
-
"network": "ropsten",
177
+
"network": "goerli",
178
178
"address": "0xabc..."
179
179
}
180
180
```
@@ -204,7 +204,7 @@ In order generate a manifest to either network, you could add two additional com
@@ -213,14 +213,14 @@ In order generate a manifest to either network, you could add two additional com
213
213
}
214
214
```
215
215
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:
217
217
218
218
```sh
219
219
# Mainnet:
220
220
yarn prepare:mainnet && yarn deploy
221
221
222
-
# Ropsten:
223
-
yarn prepare:ropsten && yarn deploy
222
+
# Goerli:
223
+
yarn prepare:goerli && yarn deploy
224
224
```
225
225
226
226
A working example of this can be found [here](https://github.com/graphprotocol/example-subgraph/tree/371232cf68e6d814facf5e5413ad0fef65144759).
Copy file name to clipboardExpand all lines: pages/ar/deploying/hosted-service.mdx
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: ما هي الخدمة المستضافة (Hosted Service)؟
4
4
5
5
سيرشدك هذا القسم لنشر subgraph على الـخدمة المستضافة، والمعروفة باسم [Hosted Service.](https://thegraph.com/hosted-service/) وكتذكير ، الـ Hosted Service لن يغلق قريبا وسننهي الخدمة المستضافة تدريجيا بمجرد أن نصل إلى ميزات مساوية للشبكة اللامركزية. لا تزال الـ subgraphs المنشورة على الخدمة المستضافة متاحة [ هنا. ](https://thegraph.com/hosted-service/)
6
6
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.
يرجى ملاحظة أن الشبكات التالية مدعومة على Hosted Service. والشبكات خارج Ethereum mainnet ('mainnet') غير مدعومة حاليا على [The Graph Explorer.](https://thegraph.com/explorer)
هناك عمل قيد التقدم من أجل دمج ال blockchain الأخرى ، يمكنك قراءة المزيد في مرجعنا: [RFC-0003: Multi-Blockchain Support](https://github.com/graphprotocol/rfcs/pull/8/files).
Copy file name to clipboardExpand all lines: pages/en/deploying/deploying-a-subgraph-to-hosted.mdx
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,7 @@ The following networks are supported in beta on the Hosted Service:
11
11
### Ethereum
12
12
13
13
-`mainnet`
14
-
-`kovan`
15
14
-`rinkeby`
16
-
-`ropsten`
17
15
-`goerli`
18
16
-`poa-core`
19
17
-`poa-sokol`
@@ -34,7 +32,7 @@ The following networks are supported in beta on the Hosted Service:
34
32
-`arbitrum-one`
35
33
-`arbitrum-rinkeby`
36
34
-`optimism`
37
-
-`optimism-kovan`
35
+
-`optimism-goerli`
38
36
-`aurora`
39
37
-`aurora-testnet`
40
38
-`boba`
@@ -148,7 +146,7 @@ If you don't have a `networks.json` file, you'll need to manually create one wit
148
146
149
147
**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.
150
148
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`:
152
150
153
151
```yaml
154
152
# ...
@@ -172,7 +170,7 @@ This is what your networks config file should look like:
172
170
"address": "0x123..."
173
171
}
174
172
},
175
-
"ropsten": {
173
+
"goerli": {
176
174
"Gravity": {
177
175
"address": "0xabc..."
178
176
}
@@ -184,20 +182,20 @@ Now we can run one of the following commands:
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:
194
192
195
193
```yaml
196
194
# ...
197
195
dataSources:
198
196
- kind: ethereum/contract
199
197
name: Gravity
200
-
network: ropsten
198
+
network: goerli
201
199
source:
202
200
address: '0xabc...'
203
201
abi: Gravity
@@ -211,17 +209,17 @@ Now you are ready to `yarn deploy`.
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/).
223
221
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:
225
223
226
224
```json
227
225
{
@@ -234,7 +232,7 @@ and
234
232
235
233
```json
236
234
{
237
-
"network": "ropsten",
235
+
"network": "goerli",
238
236
"address": "0xabc..."
239
237
}
240
238
```
@@ -264,7 +262,7 @@ In order to generate a manifest to either network, you could add two additional
@@ -273,14 +271,14 @@ In order to generate a manifest to either network, you could add two additional
273
271
}
274
272
```
275
273
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:
277
275
278
276
```sh
279
277
# Mainnet:
280
278
yarn prepare:mainnet && yarn deploy
281
279
282
-
# Ropsten:
283
-
yarn prepare:ropsten && yarn deploy
280
+
# Goerli:
281
+
yarn prepare:goerli && yarn deploy
284
282
```
285
283
286
284
A working example of this can be found [here](https://github.com/graphprotocol/example-subgraph/tree/371232cf68e6d814facf5e5413ad0fef65144759).
Copy file name to clipboardExpand all lines: pages/en/deploying/hosted-service.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ title: What is the Hosted Service?
6
6
7
7
This section will walk you through deploying a subgraph to the [Hosted Service](https://thegraph.com/hosted-service/).
8
8
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.
Copy file name to clipboardExpand all lines: pages/en/developing/developer-faqs.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ If only one entity is created during the event and if there's nothing better ava
62
62
63
63
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.
64
64
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?
66
66
67
67
Yes. You can do this by importing `graph-ts` as per the example below:
Copy file name to clipboardExpand all lines: pages/es/deploying/deploying-a-subgraph-to-hosted.mdx
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ If you don't have a `networks.json` file, you'll need to manually create one wit
98
98
99
99
**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.
100
100
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`:
102
102
103
103
```yaml
104
104
# ...
@@ -122,7 +122,7 @@ This is what your networks config file should look like:
122
122
"address": "0x123..."
123
123
}
124
124
},
125
-
"ropsten": {
125
+
"goerli": {
126
126
"Gravity": {
127
127
"address": "0xabc..."
128
128
}
@@ -134,20 +134,20 @@ Now we can run the following command:
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:
144
144
145
145
```yaml
146
146
# ...
147
147
dataSources:
148
148
- kind: ethereum/contract
149
149
name: Gravity
150
-
network: ropsten
150
+
network: goerli
151
151
source:
152
152
address: '0xabc...'
153
153
abi: Gravity
@@ -161,7 +161,7 @@ Now you are ready to `yarn deploy`
161
161
162
162
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/).
163
163
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:
165
165
166
166
```json
167
167
{
@@ -174,7 +174,7 @@ and
174
174
175
175
```json
176
176
{
177
-
"network": "ropsten",
177
+
"network": "goerli",
178
178
"address": "0xabc..."
179
179
}
180
180
```
@@ -204,7 +204,7 @@ In order generate a manifest to either network, you could add two additional com
@@ -213,14 +213,14 @@ In order generate a manifest to either network, you could add two additional com
213
213
}
214
214
```
215
215
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:
217
217
218
218
```sh
219
219
# Mainnet:
220
220
yarn prepare:mainnet && yarn deploy
221
221
222
-
# Ropsten:
223
-
yarn prepare:ropsten && yarn deploy
222
+
# Goerli:
223
+
yarn prepare:goerli && yarn deploy
224
224
```
225
225
226
226
A working example of this can be found [here](https://github.com/graphprotocol/example-subgraph/tree/371232cf68e6d814facf5e5413ad0fef65144759).
0 commit comments