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/en/about.mdx
+11-11
Original file line number
Diff line number
Diff line change
@@ -30,38 +30,38 @@ Blockchain properties, such as finality, chain reorganizations, and uncled block
30
30
31
31
## The Graph Provides a Solution
32
32
33
-
The Graph solves this challenge with a decentralized protocol that indexes and enables the efficient and high-performance querying of blockchain data. These APIs (indexed "subgraphs") can then be queried with a standard GraphQL API.
33
+
The Graph solves this challenge with a decentralized protocol that indexes and enables the efficient and high-performance querying of blockchain data. These APIs (indexed "Subgraphs") can then be queried with a standard GraphQL API.
34
34
35
35
Today, there is a decentralized protocol that is backed by the open source implementation of [Graph Node](https://github.com/graphprotocol/graph-node) that enables this process.
36
36
37
37
### How The Graph Functions
38
38
39
-
Indexing blockchain data is very difficult, but The Graph makes it easy. The Graph learns how to index Ethereum data by using subgraphs. Subgraphs are custom APIs built on blockchain data that extract data from a blockchain, processes it, and stores it so that it can be seamlessly queried via GraphQL.
39
+
Indexing blockchain data is very difficult, but The Graph makes it easy. The Graph learns how to index Ethereum data by using Subgraphs. Subgraphs are custom APIs built on blockchain data that extract data from a blockchain, processes it, and stores it so that it can be seamlessly queried via GraphQL.
40
40
41
41
#### Specifics
42
42
43
-
- The Graph uses subgraph descriptions, which are known as the subgraph manifest inside the subgraph.
43
+
- The Graph uses Subgraph descriptions, which are known as the Subgraph manifest inside the Subgraph.
44
44
45
-
- The subgraph description outlines the smart contracts of interest for a subgraph, the events within those contracts to focus on, and how to map event data to the data that The Graph will store in its database.
45
+
- The Subgraph description outlines the smart contracts of interest for a Subgraph, the events within those contracts to focus on, and how to map event data to the data that The Graph will store in its database.
46
46
47
-
- When creating a subgraph, you need to write a subgraph manifest.
47
+
- When creating a Subgraph, you need to write a Subgraph manifest.
48
48
49
-
- After writing the `subgraph manifest`, you can use the Graph CLI to store the definition in IPFS and instruct an Indexer to start indexing data for that subgraph.
49
+
- After writing the `subgraph manifest`, you can use the Graph CLI to store the definition in IPFS and instruct an Indexer to start indexing data for that Subgraph.
50
50
51
-
The diagram below provides more detailed information about the flow of data after a subgraph manifest has been deployed with Ethereum transactions.
51
+
The diagram below provides more detailed information about the flow of data after a Subgraph manifest has been deployed with Ethereum transactions.
52
52
53
53

54
54
55
55
The flow follows these steps:
56
56
57
57
1. A dapp adds data to Ethereum through a transaction on a smart contract.
58
58
2. The smart contract emits one or more events while processing the transaction.
59
-
3. Graph Node continually scans Ethereum for new blocks and the data for your subgraph they may contain.
60
-
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.
59
+
3. Graph Node continually scans Ethereum for new blocks and the data for your Subgraph they may contain.
60
+
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.
61
61
5. The dapp 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 dapp displays this data in a rich UI for end-users, which they use to issue new transactions on Ethereum. The cycle repeats.
62
62
63
63
## Next Steps
64
64
65
-
The following sections provide a more in-depth look at subgraphs, their deployment and data querying.
65
+
The following sections provide a more in-depth look at Subgraphs, their deployment and data querying.
66
66
67
-
Before you write your own subgraph, it's recommended to explore [Graph Explorer](https://thegraph.com/explorer) and review some of the already deployed subgraphs. Each subgraph's page includes a GraphQL playground, allowing you to query its data.
67
+
Before you write your own Subgraph, it's recommended to explore [Graph Explorer](https://thegraph.com/explorer) and review some of the already deployed Subgraphs. Each Subgraph's page includes a GraphQL playground, allowing you to query its data.
Copy file name to clipboardExpand all lines: website/src/pages/en/archived/arbitrum/arbitrum-faq.mdx
+4-4
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ By scaling The Graph on L2, network participants can now benefit from:
14
14
15
15
- Security inherited from Ethereum
16
16
17
-
Scaling the protocol smart contracts onto L2 allows network participants to interact more frequently at a reduced cost in gas fees. For example, Indexers can open and close allocations more frequently to index a greater number of subgraphs. Developers can deploy and update subgraphs more easily, and Delegators can delegate GRT more frequently. Curators can add or remove signal to a larger number of subgraphs–actions previously considered too cost-prohibitive to perform frequently due to gas.
17
+
Scaling the protocol smart contracts onto L2 allows network participants to interact more frequently at a reduced cost in gas fees. For example, Indexers can open and close allocations more frequently to index a greater number of Subgraphs. Developers can deploy and update Subgraphs more easily, and Delegators can delegate GRT more frequently. Curators can add or remove signal to a larger number of Subgraphs–actions previously considered too cost-prohibitive to perform frequently due to gas.
18
18
19
19
The Graph community decided to move forward with Arbitrum last year after the outcome of the [GIP-0031](https://forum.thegraph.com/t/gip-0031-arbitrum-grt-bridge/3305) discussion.
20
20
@@ -38,7 +38,7 @@ To take advantage of using The Graph on L2, use this dropdown switcher to toggle
38
38
39
39

40
40
41
-
## As a subgraph developer, data consumer, Indexer, Curator, or Delegator, what do I need to do now?
41
+
## As a Subgraph developer, data consumer, Indexer, Curator, or Delegator, what do I need to do now?
42
42
43
43
Network participants must move to Arbitrum to continue participating in The Graph Network. Please refer to [L2 Transfer Tool Guide](/archived/arbitrum/l2-transfer-tools-guide/) for additional support.
44
44
@@ -50,9 +50,9 @@ All smart contracts have been thoroughly [audited](https://github.com/graphproto
50
50
51
51
Everything has been tested thoroughly, and a contingency plan is in place to ensure a safe and seamless transition. Details can be found [here](https://forum.thegraph.com/t/gip-0037-the-graph-arbitrum-deployment-with-linear-rewards-minted-in-l2/3551#risks-and-security-considerations-20).
52
52
53
-
## Are existing subgraphs on Ethereum working?
53
+
## Are existing Subgraphs on Ethereum working?
54
54
55
-
All subgraphs are now on Arbitrum. Please refer to [L2 Transfer Tool Guide](/archived/arbitrum/l2-transfer-tools-guide/) to ensure your subgraphs operate seamlessly.
55
+
All Subgraphs are now on Arbitrum. Please refer to [L2 Transfer Tool Guide](/archived/arbitrum/l2-transfer-tools-guide/) to ensure your Subgraphs operate seamlessly.
56
56
57
57
## Does GRT have a new smart contract deployed on Arbitrum?
0 commit comments