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: CONTRIBUTING.md
+10-5
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,20 @@
2
2
3
3
Welcome to the Graph Protocol! Thanks a ton for your interest in contributing.
4
4
5
-
If you run into any problems feel free to create an issue. PRs are much appreciated for simple things. If it's something more complex we'd appreciate having a quick chat in GitHub Issues or Discord.
5
+
If you run into any problems feel free to create an issue. PRs are much appreciated for simple
6
+
things. If it's something more complex we'd appreciate having a quick chat in GitHub Issues or
7
+
Discord.
6
8
7
9
Join the conversation on our [Discord](https://discord.gg/9a5VCua).
8
10
9
-
Please follow the [Code of Conduct](https://github.com/graphprotocol/graph-node/blob/master/CODE_OF_CONDUCT.md) for all the communications and at events. Thank you!
11
+
Please follow the
12
+
[Code of Conduct](https://github.com/graphprotocol/graph-node/blob/master/CODE_OF_CONDUCT.md) for
13
+
all the communications and at events. Thank you!
10
14
11
15
## Commit messages
12
16
13
-
We use the following format for commit messages:
14
-
`{component-name}: {Brief description of changes}`, for example: `cli: Print stacktrace of codegen errors`.
17
+
We use the following format for commit messages:`{component-name}: {Brief description of changes}`,
18
+
for example: `cli: Print stacktrace of codegen errors`.
15
19
16
-
If multiple components are being changed list them all like this: `src/cli, src/runtime: Fix accessing EthereumEvent params`
20
+
If multiple components are being changed list them all like this:
-`graph auth` — Stores a [Graph Node](https://github.com/graphprotocol/graph-node) access token in
18
+
the system's keychain.
19
+
-`graph local` — Runs tests against a [Graph Node](https://github.com/graphprotocol/graph-node)
20
+
test environment (using Ganache by default).
21
+
-`graph test` — Downloads and runs the [Matchstick](https://github.com/LimeChain/matchstick) rust
22
+
binary in order to test a subgraph.
23
+
-`graph add` - Adds a new datasource to the yaml file and writes the necessary changes to other
24
+
files - schema.graphql, abi and mapping.
20
25
21
26
## How It Works
22
27
@@ -26,7 +31,9 @@ The Graph CLI takes a subgraph manifest (defaults to `subgraph.yaml`) with refer
26
31
- Smart contract ABIs, and
27
32
- Mappings written in AssemblyScript.
28
33
29
-
It compiles the mappings to WebAssembly, builds a ready-to-use version of the subgraph saved to IPFS or a local directory for debugging, and deploys the subgraph to a [Graph Node](https://github.com/graphprotocol/graph-node).
34
+
It compiles the mappings to WebAssembly, builds a ready-to-use version of the subgraph saved to IPFS
35
+
or a local directory for debugging, and deploys the subgraph to a
@@ -42,24 +49,34 @@ yarn global add @graphprotocol/graph-cli
42
49
43
50
### On Linux
44
51
45
-
`libsecret` is used for storing access tokens, so you may need to install it before getting started. Use one of the following commands depending on your distribution:
52
+
`libsecret` is used for storing access tokens, so you may need to install it before getting started.
53
+
Use one of the following commands depending on your distribution:
The Graph CLI can be used with a local or self-hosted [Graph Node](https://github.com/graphprotocol/graph-node) or with the [Hosted Service](https://thegraph.com/explorer/). To help you get going, there are [quick start guides](https://thegraph.com/docs/en/developer/quick-start/) available for both.
61
+
The Graph CLI can be used with a local or self-hosted
62
+
[Graph Node](https://github.com/graphprotocol/graph-node) or with the
63
+
[Hosted Service](https://thegraph.com/explorer/). To help you get going, there are
64
+
[quick start guides](https://thegraph.com/docs/en/developer/quick-start/) available for both.
54
65
55
-
If you are ready to dive into the details of building a subgraph from scratch, there is a [detailed walkthrough](https://thegraph.com/docs/en/developer/create-subgraph-hosted/) for that as well, along with API documentation for the [AssemblyScript API](https://thegraph.com/docs/en/developer/assemblyscript-api/).
66
+
If you are ready to dive into the details of building a subgraph from scratch, there is a
67
+
[detailed walkthrough](https://thegraph.com/docs/en/developer/create-subgraph-hosted/) for that as
The Graph CLI is dual-licensed under the [MIT license](LICENSE-MIT) and the [Apache License, Version 2.0](LICENSE-APACHE).
107
+
The Graph CLI is dual-licensed under the [MIT license](LICENSE-MIT) and the
108
+
[Apache License, Version 2.0](LICENSE-APACHE).
89
109
90
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied. See the License for the specific language governing permissions and limitations under the License.
110
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
111
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or
112
+
implied. See the License for the specific language governing permissions and limitations under the
0 commit comments