Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
b48b34f
New translations introduction.mdx (Spanish)
benface Jan 12, 2022
9ffbc3f
New translations developer-faq.mdx (Japanese)
benface Jan 12, 2022
99b11c9
New translations define-subgraph-hosted.mdx (Korean)
benface Jan 12, 2022
21a1252
New translations define-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 12, 2022
eb874e3
New translations deprecating-a-subgraph.mdx (Spanish)
benface Jan 12, 2022
49f40f2
New translations deprecating-a-subgraph.mdx (Arabic)
benface Jan 12, 2022
64c79cb
New translations deprecating-a-subgraph.mdx (Japanese)
benface Jan 12, 2022
3d5b213
New translations deprecating-a-subgraph.mdx (Korean)
benface Jan 12, 2022
2bc5854
New translations deprecating-a-subgraph.mdx (Chinese Simplified)
benface Jan 12, 2022
d6024de
New translations developer-faq.mdx (Spanish)
benface Jan 12, 2022
0857897
New translations developer-faq.mdx (Arabic)
benface Jan 12, 2022
50ab7aa
New translations developer-faq.mdx (Korean)
benface Jan 12, 2022
b6d5166
New translations define-subgraph-hosted.mdx (Arabic)
benface Jan 12, 2022
3fae33c
New translations developer-faq.mdx (Chinese Simplified)
benface Jan 12, 2022
2cee427
New translations distributed-systems.mdx (Spanish)
benface Jan 12, 2022
4241d92
New translations distributed-systems.mdx (Arabic)
benface Jan 12, 2022
68230a9
New translations distributed-systems.mdx (Japanese)
benface Jan 12, 2022
8c4ba3d
New translations distributed-systems.mdx (Korean)
benface Jan 12, 2022
c4732f4
New translations distributed-systems.mdx (Chinese Simplified)
benface Jan 12, 2022
8059c00
New translations graphql-api.mdx (Spanish)
benface Jan 12, 2022
280a484
New translations graphql-api.mdx (Arabic)
benface Jan 12, 2022
4316752
New translations graphql-api.mdx (Japanese)
benface Jan 12, 2022
13a21e8
New translations graphql-api.mdx (Korean)
benface Jan 12, 2022
1aa88c9
New translations define-subgraph-hosted.mdx (Japanese)
benface Jan 12, 2022
76e9aa8
New translations define-subgraph-hosted.mdx (Spanish)
benface Jan 12, 2022
9b8bc10
New translations introduction.mdx (Arabic)
benface Jan 12, 2022
03d912a
New translations assemblyscript-api.mdx (Japanese)
benface Jan 12, 2022
0bb1c52
New translations introduction.mdx (Japanese)
benface Jan 12, 2022
ac0e804
New translations introduction.mdx (Korean)
benface Jan 12, 2022
350d306
New translations introduction.mdx (Chinese Simplified)
benface Jan 12, 2022
99ceb80
New translations network.mdx (Spanish)
benface Jan 12, 2022
f253e07
New translations network.mdx (Arabic)
benface Jan 12, 2022
b6f1342
New translations network.mdx (Japanese)
benface Jan 12, 2022
c363e37
New translations network.mdx (Korean)
benface Jan 12, 2022
dd53853
New translations network.mdx (Chinese Simplified)
benface Jan 12, 2022
b501fa6
New translations assemblyscript-api.mdx (Spanish)
benface Jan 12, 2022
77c21dc
New translations assemblyscript-api.mdx (Arabic)
benface Jan 12, 2022
626c638
New translations assemblyscript-api.mdx (Korean)
benface Jan 12, 2022
ab46e4f
New translations create-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 12, 2022
b01634a
New translations assemblyscript-api.mdx (Chinese Simplified)
benface Jan 12, 2022
1d4a29a
New translations assemblyscript-migration-guide.mdx (Spanish)
benface Jan 12, 2022
2213be2
New translations assemblyscript-migration-guide.mdx (Arabic)
benface Jan 12, 2022
82803f9
New translations assemblyscript-migration-guide.mdx (Japanese)
benface Jan 12, 2022
0ed5cc3
New translations assemblyscript-migration-guide.mdx (Korean)
benface Jan 12, 2022
472e339
New translations assemblyscript-migration-guide.mdx (Chinese Simplified)
benface Jan 12, 2022
4cac17a
New translations create-subgraph-hosted.mdx (Spanish)
benface Jan 12, 2022
aec2e10
New translations create-subgraph-hosted.mdx (Arabic)
benface Jan 12, 2022
9f8e4fd
New translations create-subgraph-hosted.mdx (Japanese)
benface Jan 12, 2022
e333f29
New translations create-subgraph-hosted.mdx (Korean)
benface Jan 12, 2022
31f463d
New translations graphql-api.mdx (Chinese Simplified)
benface Jan 12, 2022
d67e304
New translations matchstick.mdx (Spanish)
benface Jan 12, 2022
1a35e1b
New translations query-hosted-service.mdx (Japanese)
benface Jan 12, 2022
b8d44b3
New translations deploy-subgraph-hosted.mdx (Korean)
benface Jan 12, 2022
99148a6
New translations deploy-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 12, 2022
7816916
New translations migrating-subgraph.mdx (Spanish)
benface Jan 12, 2022
bba8f0a
New translations migrating-subgraph.mdx (Arabic)
benface Jan 12, 2022
8bfd7f7
New translations migrating-subgraph.mdx (Japanese)
benface Jan 12, 2022
c735a40
New translations migrating-subgraph.mdx (Korean)
benface Jan 12, 2022
54717e1
New translations migrating-subgraph.mdx (Chinese Simplified)
benface Jan 12, 2022
ca49bfc
New translations query-hosted-service.mdx (Spanish)
benface Jan 12, 2022
86937bc
New translations query-hosted-service.mdx (Arabic)
benface Jan 12, 2022
09d40ba
New translations query-hosted-service.mdx (Korean)
benface Jan 12, 2022
cb2b7bd
New translations deploy-subgraph-hosted.mdx (Arabic)
benface Jan 12, 2022
fa0a980
New translations query-hosted-service.mdx (Chinese Simplified)
benface Jan 12, 2022
8e67ce0
New translations what-is-hosted-service.mdx (Spanish)
benface Jan 12, 2022
17db000
New translations what-is-hosted-service.mdx (Arabic)
benface Jan 12, 2022
3cefc52
New translations what-is-hosted-service.mdx (Japanese)
benface Jan 12, 2022
ae6c5b2
New translations what-is-hosted-service.mdx (Korean)
benface Jan 12, 2022
ea35975
New translations what-is-hosted-service.mdx (Chinese Simplified)
benface Jan 12, 2022
1708d81
New translations billing.mdx (Spanish)
benface Jan 12, 2022
4c2e632
New translations billing.mdx (Arabic)
benface Jan 12, 2022
4003169
New translations billing.mdx (Japanese)
benface Jan 12, 2022
5d268d8
New translations billing.mdx (Korean)
benface Jan 12, 2022
ec97e6f
New translations deploy-subgraph-hosted.mdx (Japanese)
benface Jan 12, 2022
0677412
New translations deploy-subgraph-hosted.mdx (Spanish)
benface Jan 12, 2022
3996145
New translations matchstick.mdx (Arabic)
benface Jan 12, 2022
b74bceb
New translations query-the-graph.mdx (Japanese)
benface Jan 12, 2022
7533c39
New translations matchstick.mdx (Japanese)
benface Jan 12, 2022
bc982ae
New translations matchstick.mdx (Korean)
benface Jan 12, 2022
865f6d0
New translations matchstick.mdx (Chinese Simplified)
benface Jan 12, 2022
ca84ded
New translations publish-subgraph.mdx (Spanish)
benface Jan 12, 2022
2cfdf12
New translations publish-subgraph.mdx (Arabic)
benface Jan 12, 2022
af7d020
New translations publish-subgraph.mdx (Japanese)
benface Jan 12, 2022
b88541e
New translations publish-subgraph.mdx (Korean)
benface Jan 12, 2022
46f9cd8
New translations publish-subgraph.mdx (Chinese Simplified)
benface Jan 12, 2022
e7144b4
New translations query-the-graph.mdx (Spanish)
benface Jan 12, 2022
0e6b1b9
New translations query-the-graph.mdx (Arabic)
benface Jan 12, 2022
2a0945a
New translations query-the-graph.mdx (Korean)
benface Jan 12, 2022
df6b0c4
New translations quick-start.mdx (Chinese Simplified)
benface Jan 12, 2022
2507b57
New translations query-the-graph.mdx (Chinese Simplified)
benface Jan 12, 2022
fc78ef4
New translations querying-from-your-app.mdx (Spanish)
benface Jan 12, 2022
9da2db4
New translations querying-from-your-app.mdx (Arabic)
benface Jan 12, 2022
453b749
New translations querying-from-your-app.mdx (Japanese)
benface Jan 12, 2022
07d7f14
New translations querying-from-your-app.mdx (Korean)
benface Jan 12, 2022
667ba8a
New translations querying-from-your-app.mdx (Chinese Simplified)
benface Jan 12, 2022
7447273
New translations quick-start.mdx (Spanish)
benface Jan 12, 2022
2c9661f
New translations quick-start.mdx (Arabic)
benface Jan 12, 2022
0b138a0
New translations quick-start.mdx (Japanese)
benface Jan 12, 2022
316df66
New translations quick-start.mdx (Korean)
benface Jan 12, 2022
90006d1
New translations billing.mdx (Chinese Simplified)
benface Jan 12, 2022
de2e40c
New translations deploy-subgraph-studio.mdx (Spanish)
benface Jan 12, 2022
8a9a8f6
New translations delegating.mdx (Korean)
benface Jan 12, 2022
3e4edd3
New translations curating.mdx (Spanish)
benface Jan 12, 2022
4b062a1
New translations curating.mdx (Arabic)
benface Jan 12, 2022
accd0ca
New translations curating.mdx (Japanese)
benface Jan 12, 2022
fd80b39
New translations curating.mdx (Korean)
benface Jan 12, 2022
4c66771
New translations curating.mdx (Chinese Simplified)
benface Jan 12, 2022
934c8e0
New translations delegating.mdx (Spanish)
benface Jan 12, 2022
db3e6ff
New translations delegating.mdx (Arabic)
benface Jan 12, 2022
d262672
New translations delegating.mdx (Japanese)
benface Jan 12, 2022
5efb9dd
New translations delegating.mdx (Chinese Simplified)
benface Jan 12, 2022
023b7a4
New translations near.mdx (Korean)
benface Jan 12, 2022
7355a58
New translations explorer.mdx (Spanish)
benface Jan 12, 2022
9f5f505
New translations explorer.mdx (Arabic)
benface Jan 12, 2022
e39d5d2
New translations explorer.mdx (Japanese)
benface Jan 12, 2022
ca74f58
New translations explorer.mdx (Korean)
benface Jan 12, 2022
2cd2d84
New translations explorer.mdx (Chinese Simplified)
benface Jan 12, 2022
0078c5d
New translations indexing.mdx (Spanish)
benface Jan 12, 2022
d5ce081
New translations indexing.mdx (Arabic)
benface Jan 12, 2022
5b4b95a
New translations indexing.mdx (Japanese)
benface Jan 12, 2022
6088391
New translations indexing.mdx (Korean)
benface Jan 12, 2022
a971688
New translations near.mdx (Chinese Simplified)
benface Jan 12, 2022
e9b024c
New translations near.mdx (Japanese)
benface Jan 12, 2022
630c950
New translations deploy-subgraph-studio.mdx (Arabic)
benface Jan 12, 2022
f925338
New translations studio-faq.mdx (Spanish)
benface Jan 12, 2022
9e50f19
New translations deploy-subgraph-studio.mdx (Japanese)
benface Jan 12, 2022
10bdbfe
New translations deploy-subgraph-studio.mdx (Korean)
benface Jan 12, 2022
e557cf4
New translations deploy-subgraph-studio.mdx (Chinese Simplified)
benface Jan 12, 2022
cdf7e94
New translations multisig.mdx (Spanish)
benface Jan 12, 2022
f53647b
New translations multisig.mdx (Arabic)
benface Jan 12, 2022
83dfdf4
New translations multisig.mdx (Japanese)
benface Jan 12, 2022
f8f5d13
New translations multisig.mdx (Korean)
benface Jan 12, 2022
340c875
New translations multisig.mdx (Chinese Simplified)
benface Jan 12, 2022
2e87e8d
New translations studio-faq.mdx (Arabic)
benface Jan 12, 2022
f0dc49a
New translations near.mdx (Arabic)
benface Jan 12, 2022
3742a57
New translations studio-faq.mdx (Japanese)
benface Jan 12, 2022
e3b3b19
New translations studio-faq.mdx (Korean)
benface Jan 12, 2022
20e400e
New translations studio-faq.mdx (Chinese Simplified)
benface Jan 12, 2022
cd81656
New translations subgraph-studio.mdx (Spanish)
benface Jan 12, 2022
d88603a
New translations subgraph-studio.mdx (Arabic)
benface Jan 12, 2022
1b5a094
New translations subgraph-studio.mdx (Japanese)
benface Jan 12, 2022
2a04533
New translations subgraph-studio.mdx (Korean)
benface Jan 12, 2022
d81f203
New translations subgraph-studio.mdx (Chinese Simplified)
benface Jan 12, 2022
813638e
New translations near.mdx (Spanish)
benface Jan 12, 2022
f3bfcf4
New translations indexing.mdx (Chinese Simplified)
benface Jan 12, 2022
0e07c4d
New translations matchstick.mdx (Spanish)
benface Jan 12, 2022
11aef07
New translations matchstick.mdx (Arabic)
benface Jan 12, 2022
527fa4a
New translations matchstick.mdx (Japanese)
benface Jan 12, 2022
39361c4
New translations matchstick.mdx (Korean)
benface Jan 12, 2022
4d2b964
New translations matchstick.mdx (Chinese Simplified)
benface Jan 12, 2022
5fa4954
New translations curating.mdx (Chinese Simplified)
benface Jan 12, 2022
dcfcd1c
New translations delegating.mdx (Chinese Simplified)
benface Jan 12, 2022
d8dd3c2
New translations indexing.mdx (Chinese Simplified)
benface Jan 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions pages/ar/about/introduction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: Introduction
---

This page will explain what The Graph is and how you can get started.

## What The Graph Is

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.

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.

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.

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.

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.

**Indexing blockchain data is really, really hard.**

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.

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).

## How The Graph Works

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.

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.

This diagram gives more detail about the flow of data once a subgraph manifest has been deployed, dealing with Ethereum transactions:

![](/img/graph-dataflow.png)

The flow follows these steps:

1. A decentralized application adds data to Ethereum through a transaction on a smart contract.
2. The smart contract emits one or more events while processing the transaction.
3. Graph Node continually scans Ethereum for new blocks and the data for your subgraph they may contain.
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.
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.

## Next Steps

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.

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.
15 changes: 15 additions & 0 deletions pages/ar/about/network.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Network Overview
---

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.

> GRT Token Address: [0xc944e90c64b2c07662a292be6244bdf05cda44a7](https://etherscan.io/token/0xc944e90c64b2c07662a292be6244bdf05cda44a7)

## Overview

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.

![Token Economics](/img/Network-roles@2x.png)

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.
2 changes: 1 addition & 1 deletion pages/ar/curating.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ title: (التنسيق) curating
title="مشغل فيديو يوتيوب"
frameBorder="0"
allowFullScreen
></iframe>
></iframe>
</figure>
6 changes: 4 additions & 2 deletions pages/ar/delegating.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ This guide will explain how to be an effective delegator in the Graph Network. D

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

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

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

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