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: README.md
+26-27Lines changed: 26 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,11 @@
1
-
# iExec PoCo v5 - subgraph
1
+
# iExec PoCo Subgraph
2
2
3
-
A subgraph to explore the PoCo smarcontracts
3
+
A subgraph to index the PoCo Smart Contracts.
4
4
5
-
[CHANGELOG](./CHANGELOG.md)
6
5
7
-
#Setup coverage
6
+
## Local development
8
7
9
-
> In order for Matchstick to check which handlers are being run, those handlers need to be exported from the test file.
10
-
11
-
Check how to export handlers with [Matchstick - Test Coverage documentation](https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#test-coverage).
12
-
13
-
> [!NOTE]
14
-
> Since Matchstick code coverage is in very early stages, Matchstick cannot check for branch coverage, but rely on the assertion that a given handler has been called.
15
-
16
-
## local dev
17
-
18
-
run local services:
8
+
Run local services:
19
9
20
10
- blockchain with iExec PoCo deployed
21
11
- graph node (with ipfs + DB)
@@ -24,43 +14,48 @@ run local services:
24
14
docker-compose -f docker/test/docker-compose.yml up -d
25
15
```
26
16
27
-
install project deps
17
+
Install project dependencies
28
18
29
19
```sh
30
20
npm ci
31
21
```
32
22
33
-
build the project and generate the necessary files:
23
+
Build the project and generate the necessary files:
34
24
35
25
```sh
36
26
npm run build
37
27
```
38
28
39
-
deploy the subgraph on local node
29
+
Deploy the subgraph on local node
40
30
41
31
```sh
42
32
npm run start-test-stack
43
33
```
44
34
45
-
run integration tests
35
+
Run integration tests
46
36
47
37
```sh
48
38
npm run itest
49
39
```
50
40
51
-
test/poco subgraph graphql API enpoints:
52
-
41
+
The subgraph `test/poco` graphql API is accessible at:
Here's the revised "Generating Subgraph and Jenkins Configuration Files" section for your README:
45
+
### Coverage setup
46
+
47
+
> In order for Matchstick to check which handlers are being run, those handlers need to be exported from the test file.
48
+
49
+
Check how to export handlers with [Matchstick - Test Coverage documentation](https://thegraph.com/docs/en/subgraphs/developing/creating/unit-testing-framework/#test-coverage).
50
+
51
+
> [!NOTE]
52
+
> Since Matchstick code coverage is in very early stages, Matchstick cannot check for branch coverage, but rely on the assertion that a given handler has been called.
58
53
59
54
## Docker subgraph deployer
60
55
61
-
docker image for deploying the subgraph
56
+
The subgraph is deploy via a generated Docker image.
The project uses a Jenkins pipeline for automated deployment of the subgraph. The deployment can be triggered through Jenkins with interactive parameter selection.
90
85
@@ -141,9 +136,13 @@ choice(
141
136
142
137
The deployment process will automatically generate the appropriate subgraph configuration using the network-specific addresses and start blocks from `networks.json`.
143
138
139
+
## Changelog
140
+
141
+
Changes to this project are tracked in [CHANGELOG.md](./CHANGELOG.md)
0 commit comments