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: website/src/pages/ru/subgraphs/quick-start.mdx
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,19 @@ Learn how to easily build, publish and query a [Subgraph](/subgraphs/developing/
7
7
## Предварительные требования
8
8
9
9
- Криптовалютный кошелек
10
-
-A smart contract address on a [supported network](/supported-networks/)
11
-
-[Node.js](https://nodejs.org/)installed
12
-
-A package manager of your choice (`npm`, `yarn`or`pnpm`)
10
+
-Адрес смарт-контракта в [поддерживаемой сети](/supported-networks/)
11
+
-[Node.js](https://nodejs.org/)установлен
12
+
-Менеджер пакетов на Ваш выбор (`npm`, `yarn`или`pnpm`)
13
13
14
-
## How to Build a Subgraph
14
+
## Как создать субграф
15
15
16
16
### 1. Create a Subgraph in Subgraph Studio
17
17
18
18
Перейдите в [Subgraph Studio](https://thegraph.com/studio/) и подключите свой кошелек.
19
19
20
20
Subgraph Studio lets you create, manage, deploy, and publish Subgraphs, as well as create and manage API keys.
21
21
22
-
Click "Create a Subgraph". It is recommended to name the Subgraph in Title Case: "Subgraph Name Chain Name".
22
+
Нажмите "Создать субграф". Рекомендуется называть субграф с использованием Заглавного регистра: "Subgraph Name Chain Name".
23
23
24
24
### 2. Установка Graph CLI
25
25
@@ -49,24 +49,24 @@ The following command initializes your Subgraph from an existing contract:
49
49
graph init
50
50
```
51
51
52
-
If your contract is verified on the respective blockscanner where it is deployed (such as [Etherscan](https://etherscan.io/)), then the ABI will automatically be created in the CLI.
52
+
Если Ваш контракт верифицирован на соответствующем блоксканере, где он развернут (например, [Etherscan](https://etherscan.io/)), то ABI будет автоматически создан в CLI.
53
53
54
54
When you initialize your Subgraph, the CLI will ask you for the following information:
55
55
56
56
-**Protocol**: Choose the protocol your Subgraph will be indexing data from.
57
57
-**Subgraph slug**: Create a name for your Subgraph. Your Subgraph slug is an identifier for your Subgraph.
58
58
-**Directory**: Choose a directory to create your Subgraph in.
59
59
-**Ethereum network** (optional): You may need to specify which EVM-compatible network your Subgraph will be indexing data from.
60
-
-**Contract address**: Locate the smart contract address you’d like to query data from.
61
-
-**ABI**: If the ABI is not auto-populated, you will need to input it manually as a JSON file.
60
+
-**Адрес контракта**: Найдите адрес смарт-контракта, из которого Вы хотите запрашивать данные.
61
+
-**ABI**: Если ABI не заполнен автоматически, Вам придется ввести его вручную в формате JSON.
62
62
-**Start Block**: You should input the start block to optimize Subgraph indexing of blockchain data. Locate the start block by finding the block where your contract was deployed.
63
-
-**Contract Name**: Input the name of your contract.
63
+
-**Имя контракта**: Введите имя Вашего контракта.
64
64
-**Index contract events as entities**: It is suggested that you set this to true, as it will automatically add mappings to your Subgraph for every emitted event.
65
-
-**Add another contract** (optional): You can add another contract.
65
+
-**Добавление еще одного контракта (опционально)**: Вы можете добавить еще один контракт.
66
66
67
67
See the following screenshot for an example for what to expect when initializing your Subgraph:
68
68
69
-

69
+

70
70
71
71
### 4. Edit your Subgraph
72
72
@@ -82,7 +82,7 @@ For a detailed breakdown on how to write your Subgraph, check out [Creating a Su
82
82
83
83
### 5. Deploy your Subgraph
84
84
85
-
> Remember, deploying is not the same as publishing.
85
+
> Помните, развертывание — это не то же самое, что публикация.
86
86
87
87
When you **deploy** a Subgraph, you push it to [Subgraph Studio](https://thegraph.com/studio/), where you can test, stage and review it. A deployed Subgraph's indexing is performed by the [Upgrade Indexer](https://thegraph.com/blog/upgrade-indexer/), which is a single Indexer owned and operated by Edge & Node, rather than by the many decentralized Indexers in The Graph Network. A **deployed** Subgraph is free to use, rate-limited, not visible to the public, and meant to be used for development, staging, and testing purposes.
88
88
@@ -107,7 +107,7 @@ graph deploy <SUBGRAPH_SLUG>
107
107
```
108
108
````
109
109
110
-
The CLI will ask for a version label. It's strongly recommended to use [semantic versioning](https://semver.org/), e.g.`0.0.1`.
110
+
CLI запросит метку версии. Настоятельно рекомендуется использовать [семантическую версию](https://semver.org/), например,`0.0.1`.
111
111
112
112
### 6. Review your Subgraph
113
113
@@ -150,20 +150,20 @@ As of version 0.73.0, you can also publish your Subgraph with the Graph CLI.
150
150
graph codegen && graph build
151
151
```
152
152
153
-
Then,
153
+
Затем,
154
154
155
155
```sh
156
156
graph publish
157
157
```
158
158
````
159
159
160
-
3.A window will open, allowing you to connect your wallet, add metadata, and deploy your finalized Subgraph to a network of your choice.
160
+
3.Откроется окно, где Вы сможете подключить свой кошелек, добавить метаданные и развернуть финализированный субграф в выбранной Вами сети.
161
161
162
162

163
163
164
-
To customize your deployment, see [Publishing a Subgraph](/subgraphs/developing/publishing/publishing-a-subgraph/).
164
+
Чтобы настроить ваше развертывание, смотрите раздел [Публикация субграфа](/subgraphs/developing/publishing/publishing-a-subgraph/).
165
165
166
-
#### Adding signal to your Subgraph
166
+
#### Добавление сигнала к Вашему субграфу
167
167
168
168
1. To attract Indexers to query your Subgraph, you should add GRT curation signal to it.
169
169
@@ -173,11 +173,11 @@ To customize your deployment, see [Publishing a Subgraph](/subgraphs/developing/
173
173
174
174
- It’s recommended to curate at least 3,000 GRT to attract 3 Indexers. Check reward eligibility based on Subgraph feature usage and supported networks.
175
175
176
-
To learn more about curation, read [Curating](/resources/roles/curating/).
176
+
Чтобы узнать больше о кураторстве, прочитайте статью [Курирование](/resources/roles/curating/).
177
177
178
178
To save on gas costs, you can curate your Subgraph in the same transaction you publish it by selecting this option:
0 commit comments