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/pages/en/network/developing.mdx
+11-16Lines changed: 11 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
title: Developing
3
3
---
4
4
5
-
Learn developer fundamentals and review the basics of a subgraph’s lifecycle. To start coding right away and build on The Graph, go to [Developer Quick Start](/quick-start/)
5
+
Learn developer fundamentals and review the basics of a subgraph’s lifecycle. To start coding right away and build on The Graph, go to [Developer Quick Start](/quick-start/).
6
6
7
7
## Overview
8
8
9
9
As a developer, you need important data to build and power your dapps. Querying and indexing that blockchain data can be challenging, but The Graph provides a solution to this issue.
10
10
11
11
On The Graph, you can:
12
12
13
-
1. Create, deploy and publish subgraphs to The Graph using **Graph CLI** and [Subgraph Studio](https://thegraph.com/studio/).
13
+
1. Create, deploy and publish subgraphs to The Graph using Graph CLI and [Subgraph Studio](https://thegraph.com/studio/).
14
14
2. Use GraphQL to query live subgraphs and power dapps.
15
15
16
16
### What is GraphQL?
@@ -31,23 +31,21 @@ A subgraph is a custom API built on blockchain data. It extracts data from a blo
31
31
32
32
A subgraph primarily consists of the following files:
33
33
34
-
-`subgraph.yaml`: this YAML file contains the [subgraph manifest](/developing/creating-a-subgraph/#the-subgraph-manifest)
35
-
-`subgraph.graphql`: this GraphQL schema defines what data is stored for your subgraph, and how to query it via [GraphQL](/developing/creating-a-subgraph/#the-graphql-schema)
36
-
-`AssemblyScript Mappings`: [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) mappings translates data from the event data to the entities defined in your schema
34
+
-`subgraph.yaml`: this YAML file contains the [subgraph manifest](/developing/creating-a-subgraph/#the-subgraph-manifest).
35
+
-`subgraph.graphql`: this GraphQL schema defines what data is stored for your subgraph, and how to query it via [GraphQL](/developing/creating-a-subgraph/#the-graphql-schema).
36
+
-`mappings`: this [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) mappings file translates data from the event data to the entities defined in your schema.
37
37
38
38
Learn the detailed specifics to [create a subgraph](/developing/creating-a-subgraph/).
Great subgraphs start with a local development environment and unit tests. Developers can use `graph-cli,``graph-ts,` and [Matchstick](/developing/unit-testing-framework/) to build robust subgraphs that deploy to The Graph Network.
49
-
50
-
> Developers use [Graph CLI](https://github.com/graphprotocol/graph-tooling/tree/main/packages/cli), a command line interface tool for building and deploying subgraphs in The Graph.
48
+
Great subgraphs start with a local development environment and unit tests. Developers use [Graph CLI](https://github.com/graphprotocol/graph-tooling/tree/main/packages/cli), a command-line interface tool for building and deploying subgraphs in The Graph. They can also use [Graph TypeScript](/developing/graph-ts/) and [Matchstick](/developing/unit-testing-framework/) to create robust subgraphs that deploy to The Graph Network.
51
49
52
50
## Deploy to Subgraph Studio
53
51
@@ -58,11 +56,10 @@ Once defined, a subgraph can be deployed to [Subgraph Studio](/deploying/deployi
58
56
59
57
## Publish to the Network
60
58
61
-
When you are happy with your subgraph, you can [publish it](/publishing/publishing-a-subgraph/) to The Graph Network.
59
+
When you are happy with your subgraph, you can put it into production and [publish it](/publishing/publishing-a-subgraph/) to The Graph Network. This ensures Indexers can index it.
62
60
63
-
- To put your subgraph into production and ensure indexers can index it, you must publish it to The Graph Network.
64
-
- This is an on-chain action, which registers the subgraph and makes it discoverable by Indexers.
65
-
- Published subgraphs have a corresponding NFT, which is then easily transferable.
61
+
- This is an on-chain action, which registers the subgraph and makes it discoverable by Indexers.
62
+
- Published subgraphs have a corresponding NFT, which defines the ownership of the subgraph. You can [transfer the subgraph's ownership](/managing/transfer-and-deprecate-a-subgraph) by sending the NFT.
66
63
- Published subgraphs have associated metadata, which provides other network participants with useful context and information.
67
64
68
65
## Add Signal for Indexing
@@ -93,9 +90,7 @@ To update your subgraph with bug fixes or new functionalities, initiate a transa
93
90
94
91
## Deprecating & Transferring Subgraphs
95
92
96
-
If you no longer need a published subgraph, you can deprecate or transfer a subgraph. Deprecating a subgraph returns any signaled GRT to [Curators](/network/curating/).
97
-
98
-
- To deprecate or transfer a subgraph, check out [this guide](/managing/transfer-and-deprecate-a-subgraph/#deprecating-a-subgraph).
93
+
If you no longer need a published subgraph, you can deprecate or transfer a subgraph. Deprecating a subgraph returns any signaled GRT to [Curators](/network/curating/). To deprecate or transfer a subgraph, check out [this guide](/managing/transfer-and-deprecate-a-subgraph/#deprecating-a-subgraph).
0 commit comments