File tree 1 file changed +42
-27
lines changed
1 file changed +42
-27
lines changed Original file line number Diff line number Diff line change @@ -7,51 +7,66 @@ This is the Fetch ledger SubQuery project, an indexer for the Fetch network.
7
7
8
8
## Getting Started
9
9
10
- ### 1. Ensure submodules are updated
10
+ 1 . ** Ensure submodules are updated**
11
11
12
- ``` shell
13
- git submodule update --init --recursive
14
- ```
12
+ ``` shell
13
+ git submodule update --init --recursive
14
+ ```
15
15
16
- ### 2 . Install dependencies
16
+ 1 . Install dependencies
17
17
18
- ``` shell
19
- yarn
18
+ ``` shell
19
+ yarn
20
20
21
- # install submodule dependencies
22
- (cd ./subql && yarn)
23
- ```
21
+ # install submodule dependencies
22
+ (cd ./subql && yarn)
23
+ ```
24
24
25
- ### 3. Generate types
25
+ 1 . Link local (non-workspace) dependencies
26
26
27
- ``` shell
28
- yarn codegen
29
- ```
27
+ ``` shell
28
+ # register non-workspace package for linking
29
+ (cd ./docker/types-cosmos && yarn link)
30
+
31
+ # link to repo package (ledger-subquery)
32
+ yarn link @subql/types-cosmos
33
+ ```
34
+
35
+ 1 . Generate types
30
36
31
- ### 4. Build
37
+ ``` shell
38
+ yarn codegen
39
+ ```
32
40
33
- ``` shell
34
- yarn build
41
+ 1 . Build
35
42
36
- # build submodule
37
- (cd ./subql && yarn build)
38
- ```
43
+ ``` shell
44
+ yarn build
39
45
40
- ### 5. Run locally
46
+ # build submodule
47
+ (cd ./subql && yarn build)
48
+ ```
41
49
42
- ``` shell
43
- yarn start:docker
44
- ```
50
+ 1 . Run locally
51
+
52
+ ``` shell
53
+ yarn start:docker
54
+ ```
45
55
46
56
## End-to-end Testing
47
57
48
- ### 1. Install dependencies
58
+ ### Installing python dependencies
49
59
50
60
``` shell
51
- pipenv install
61
+ # ensure pipenv is installed
62
+ pip install --user pipenv
63
+ # (see: https://pipenv.pypa.io/en/latest/index.html)
64
+
65
+ # ensure local dependencies match Pipfile.lock
66
+ pipenv sync --dev
52
67
```
53
68
54
- ### 2. Run e2e tests
69
+ ### Run e2e tests
55
70
56
71
_ Note: end-to-end tests will truncate tables in the DB and interact with the configured fetchd node._
57
72
You can’t perform that action at this time.
0 commit comments