Skip to content

Commit 90e4f2f

Browse files
authored
New Crowdin updates (#29)
* New translations introduction.mdx (Spanish) * New translations developer-faq.mdx (Japanese) * New translations define-subgraph-hosted.mdx (Korean) * New translations define-subgraph-hosted.mdx (Chinese Simplified) * New translations deprecating-a-subgraph.mdx (Spanish) * New translations deprecating-a-subgraph.mdx (Arabic) * New translations deprecating-a-subgraph.mdx (Japanese) * New translations deprecating-a-subgraph.mdx (Korean) * New translations deprecating-a-subgraph.mdx (Chinese Simplified) * New translations developer-faq.mdx (Spanish) * New translations developer-faq.mdx (Arabic) * New translations developer-faq.mdx (Korean) * New translations define-subgraph-hosted.mdx (Arabic) * New translations developer-faq.mdx (Chinese Simplified) * New translations distributed-systems.mdx (Spanish) * New translations distributed-systems.mdx (Arabic) * New translations distributed-systems.mdx (Japanese) * New translations distributed-systems.mdx (Korean) * New translations distributed-systems.mdx (Chinese Simplified) * New translations graphql-api.mdx (Spanish) * New translations graphql-api.mdx (Arabic) * New translations graphql-api.mdx (Japanese) * New translations graphql-api.mdx (Korean) * New translations define-subgraph-hosted.mdx (Japanese) * New translations define-subgraph-hosted.mdx (Spanish) * New translations introduction.mdx (Arabic) * New translations assemblyscript-api.mdx (Japanese) * New translations introduction.mdx (Japanese) * New translations introduction.mdx (Korean) * New translations introduction.mdx (Chinese Simplified) * New translations network.mdx (Spanish) * New translations network.mdx (Arabic) * New translations network.mdx (Japanese) * New translations network.mdx (Korean) * New translations network.mdx (Chinese Simplified) * New translations assemblyscript-api.mdx (Spanish) * New translations assemblyscript-api.mdx (Arabic) * New translations assemblyscript-api.mdx (Korean) * New translations create-subgraph-hosted.mdx (Chinese Simplified) * New translations assemblyscript-api.mdx (Chinese Simplified) * New translations assemblyscript-migration-guide.mdx (Spanish) * New translations assemblyscript-migration-guide.mdx (Arabic) * New translations assemblyscript-migration-guide.mdx (Japanese) * New translations assemblyscript-migration-guide.mdx (Korean) * New translations assemblyscript-migration-guide.mdx (Chinese Simplified) * New translations create-subgraph-hosted.mdx (Spanish) * New translations create-subgraph-hosted.mdx (Arabic) * New translations create-subgraph-hosted.mdx (Japanese) * New translations create-subgraph-hosted.mdx (Korean) * New translations graphql-api.mdx (Chinese Simplified) * New translations matchstick.mdx (Spanish) * New translations query-hosted-service.mdx (Japanese) * New translations deploy-subgraph-hosted.mdx (Korean) * New translations deploy-subgraph-hosted.mdx (Chinese Simplified) * New translations migrating-subgraph.mdx (Spanish) * New translations migrating-subgraph.mdx (Arabic) * New translations migrating-subgraph.mdx (Japanese) * New translations migrating-subgraph.mdx (Korean) * New translations migrating-subgraph.mdx (Chinese Simplified) * New translations query-hosted-service.mdx (Spanish) * New translations query-hosted-service.mdx (Arabic) * New translations query-hosted-service.mdx (Korean) * New translations deploy-subgraph-hosted.mdx (Arabic) * New translations query-hosted-service.mdx (Chinese Simplified) * New translations what-is-hosted-service.mdx (Spanish) * New translations what-is-hosted-service.mdx (Arabic) * New translations what-is-hosted-service.mdx (Japanese) * New translations what-is-hosted-service.mdx (Korean) * New translations what-is-hosted-service.mdx (Chinese Simplified) * New translations billing.mdx (Spanish) * New translations billing.mdx (Arabic) * New translations billing.mdx (Japanese) * New translations billing.mdx (Korean) * New translations deploy-subgraph-hosted.mdx (Japanese) * New translations deploy-subgraph-hosted.mdx (Spanish) * New translations matchstick.mdx (Arabic) * New translations query-the-graph.mdx (Japanese) * New translations matchstick.mdx (Japanese) * New translations matchstick.mdx (Korean) * New translations matchstick.mdx (Chinese Simplified) * New translations publish-subgraph.mdx (Spanish) * New translations publish-subgraph.mdx (Arabic) * New translations publish-subgraph.mdx (Japanese) * New translations publish-subgraph.mdx (Korean) * New translations publish-subgraph.mdx (Chinese Simplified) * New translations query-the-graph.mdx (Spanish) * New translations query-the-graph.mdx (Arabic) * New translations query-the-graph.mdx (Korean) * New translations quick-start.mdx (Chinese Simplified) * New translations query-the-graph.mdx (Chinese Simplified) * New translations querying-from-your-app.mdx (Spanish) * New translations querying-from-your-app.mdx (Arabic) * New translations querying-from-your-app.mdx (Japanese) * New translations querying-from-your-app.mdx (Korean) * New translations querying-from-your-app.mdx (Chinese Simplified) * New translations quick-start.mdx (Spanish) * New translations quick-start.mdx (Arabic) * New translations quick-start.mdx (Japanese) * New translations quick-start.mdx (Korean) * New translations billing.mdx (Chinese Simplified) * New translations deploy-subgraph-studio.mdx (Spanish) * New translations delegating.mdx (Korean) * New translations curating.mdx (Spanish) * New translations curating.mdx (Arabic) * New translations curating.mdx (Japanese) * New translations curating.mdx (Korean) * New translations curating.mdx (Chinese Simplified) * New translations delegating.mdx (Spanish) * New translations delegating.mdx (Arabic) * New translations delegating.mdx (Japanese) * New translations delegating.mdx (Chinese Simplified) * New translations near.mdx (Korean) * New translations explorer.mdx (Spanish) * New translations explorer.mdx (Arabic) * New translations explorer.mdx (Japanese) * New translations explorer.mdx (Korean) * New translations explorer.mdx (Chinese Simplified) * New translations indexing.mdx (Spanish) * New translations indexing.mdx (Arabic) * New translations indexing.mdx (Japanese) * New translations indexing.mdx (Korean) * New translations near.mdx (Chinese Simplified) * New translations near.mdx (Japanese) * New translations deploy-subgraph-studio.mdx (Arabic) * New translations studio-faq.mdx (Spanish) * New translations deploy-subgraph-studio.mdx (Japanese) * New translations deploy-subgraph-studio.mdx (Korean) * New translations deploy-subgraph-studio.mdx (Chinese Simplified) * New translations multisig.mdx (Spanish) * New translations multisig.mdx (Arabic) * New translations multisig.mdx (Japanese) * New translations multisig.mdx (Korean) * New translations multisig.mdx (Chinese Simplified) * New translations studio-faq.mdx (Arabic) * New translations near.mdx (Arabic) * New translations studio-faq.mdx (Japanese) * New translations studio-faq.mdx (Korean) * New translations studio-faq.mdx (Chinese Simplified) * New translations subgraph-studio.mdx (Spanish) * New translations subgraph-studio.mdx (Arabic) * New translations subgraph-studio.mdx (Japanese) * New translations subgraph-studio.mdx (Korean) * New translations subgraph-studio.mdx (Chinese Simplified) * New translations near.mdx (Spanish) * New translations indexing.mdx (Chinese Simplified) * New translations matchstick.mdx (Spanish) * New translations matchstick.mdx (Arabic) * New translations matchstick.mdx (Japanese) * New translations matchstick.mdx (Korean) * New translations matchstick.mdx (Chinese Simplified) * New translations curating.mdx (Chinese Simplified) * New translations delegating.mdx (Chinese Simplified) * New translations indexing.mdx (Chinese Simplified)
1 parent 6b89be3 commit 90e4f2f

File tree

145 files changed

+22840
-107
lines changed

Some content is hidden

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

145 files changed

+22840
-107
lines changed

pages/ar/about/introduction.mdx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Introduction
3+
---
4+
5+
This page will explain what The Graph is and how you can get started.
6+
7+
## What The Graph Is
8+
9+
The Graph is a decentralized protocol for indexing and querying data from blockchains, starting with Ethereum. It makes it possible to query data that is difficult to query directly.
10+
11+
Projects with complex smart contracts like [Uniswap](https://uniswap.org/) and NFTs initiatives like [Bored Ape Yacht Club](https://boredapeyachtclub.com/) store data on the Ethereum blockchain, making it really difficult to read anything other than basic data directly from the blockchain.
12+
13+
In the case of Bored Ape Yacht Club, we can perform basic read operations on [the contract](https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code) like getting the owner of a certain Ape, getting the content URI of an Ape based on their ID, or the total supply, as these read operations are programmed directly into the smart contract, but more advanced real-world queries and operations like aggregation, search, relationships, and non-trivial filtering are not possible. For example, if we wanted to query for apes that are owned by a certain address, and filter by one of its characteristics, we would not be able to get that information by interacting directly with the contract itself.
14+
15+
To get this data, you would have to process every single [`transfer`](https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code#L1746) event ever emitted, read the metadata from IPFS using the Token ID and IPFS hash, and then aggregate it. Even for these types of relatively simple questions, it would take **hours or even days** for a decentralized application (dapp) running in a browser to get an answer.
16+
17+
You could also build out your own server, process the transactions there, save them to a database, and build an API endpoint on top of it all in order to query the data. However, this option is resource intensive, needs maintenance, presents a single point of failure, and breaks important security properties required for decentralization.
18+
19+
**Indexing blockchain data is really, really hard.**
20+
21+
Blockchain properties like finality, chain reorganizations, or uncled blocks complicate this process further, and make it not just time consuming but conceptually hard to retrieve correct query results from blockchain data.
22+
23+
The Graph solves this with a decentralized protocol that indexes and enables the performant and efficient querying of blockchain data. These APIs (indexed "subgraphs") can then be queried with a standard GraphQL API. Today, there is a hosted service as well as a decentralized protocol with the same capabilities. Both are backed by the open source implementation of [Graph Node](https://github.com/graphprotocol/graph-node).
24+
25+
## How The Graph Works
26+
27+
The Graph learns what and how to index Ethereum data based on subgraph descriptions, known as the subgraph manifest. The subgraph description defines the smart contracts of interest for a subgraph, the events in those contracts to pay attention to, and how to map event data to data that The Graph will store in its database.
28+
29+
Once you have written a `subgraph manifest`, you use the Graph CLI to store the definition in IPFS and tell the indexer to start indexing data for that subgraph.
30+
31+
This diagram gives more detail about the flow of data once a subgraph manifest has been deployed, dealing with Ethereum transactions:
32+
33+
![](/img/graph-dataflow.png)
34+
35+
The flow follows these steps:
36+
37+
1. A decentralized application adds data to Ethereum through a transaction on a smart contract.
38+
2. The smart contract emits one or more events while processing the transaction.
39+
3. Graph Node continually scans Ethereum for new blocks and the data for your subgraph they may contain.
40+
4. Graph Node finds Ethereum events for your subgraph in these blocks and runs the mapping handlers you provided. The mapping is a WASM module that creates or updates the data entities that Graph Node stores in response to Ethereum events.
41+
5. The decentralized application queries the Graph Node for data indexed from the blockchain, using the node's [GraphQL endpoint](https://graphql.org/learn/). The Graph Node in turn translates the GraphQL queries into queries for its underlying data store in order to fetch this data, making use of the store's indexing capabilities. The decentralized application displays this data in a rich UI for end-users, which they use to issue new transactions on Ethereum. The cycle repeats.
42+
43+
## Next Steps
44+
45+
In the following sections we will go into more detail on how to define subgraphs, how to deploy them, and how to query data from the indexes that Graph Node builds.
46+
47+
Before you start writing your own subgraph, you might want to have a look at the Graph Explorer and explore some of the subgraphs that have already been deployed. The page for each subgraph contains a playground that lets you query that subgraph's data with GraphQL.

pages/ar/about/network.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Network Overview
3+
---
4+
5+
The Graph Network is a decentralized indexing protocol for organizing blockchain data. Applications use GraphQL to query open APIs called subgraphs, to retrieve data that is indexed on the network. With The Graph, developers can build serverless applications that run entirely on public infrastructure.
6+
7+
> GRT Token Address: [0xc944e90c64b2c07662a292be6244bdf05cda44a7](https://etherscan.io/token/0xc944e90c64b2c07662a292be6244bdf05cda44a7)
8+
9+
## Overview
10+
11+
The Graph Network consists of Indexers, Curators and Delegators that provide services to the network, and serve data to Web3 applications. Consumers use the applications and consume the data.
12+
13+
![Token Economics](/img/Network-roles@2x.png)
14+
15+
To ensure economic security of The Graph Network and the integrity of data being queried, participants stake and use Graph Tokens (GRT). GRT is a work token that is an ERC-20 on the Ethereum blockchain, used to allocate resources in the network. Active Indexers, Curators and Delegators can provide services and earn income from the network, proportional to the amount of work they perform and their GRT stake.

pages/ar/curating.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ title: (التنسيق) curating
100100
title="مشغل فيديو يوتيوب"
101101
frameBorder="0"
102102
allowFullScreen
103-
></iframe>
103+
></iframe>
104104
</figure>

pages/ar/delegating.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ This guide will explain how to be an effective delegator in the Graph Network. D
2828

2929
يجب اختيار المفهرس بحكمة. إذا اخترت مفهرسا ليس جديرا بالثقة ، أو لا يقوم بعمل جيد ، فستحتاج إلى إلغاء التفويض ، مما يعني أنك ستفقد الكثير من الفرص لكسب المكافآت والتي يمكن أن تكون سيئة مثل حرق GRT.
3030

31-
<div sx={{ mx: 'auto', maxWidth: '400px' }}>لاحظ 0.5٪ رسوم التفويض ، بالإضافة إلى فترة 28 يوما لإلغاء التفويض.</div>
31+
<div sx={{ mx: 'auto', maxWidth: '400px' }}>
32+
لاحظ 0.5٪ رسوم التفويض ، بالإضافة إلى فترة 28 يوما لإلغاء التفويض.
33+
</div>
3234

3335
### اختيار مفهرس جدير بالثقة مع عائد جيد للمفوضين
3436

@@ -86,5 +88,5 @@ Using this formula, we can see that it is actually possible for an indexer who i
8688
title="مشغل فيديو يوتيوب"
8789
frameBorder="0"
8890
allowFullScreen
89-
></iframe>
91+
></iframe>
9092
</figure>

0 commit comments

Comments
 (0)