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
yarn remove-local # if you have already deployed the subgraph
55
-
yarn create-local # create the subgraph locally
56
-
yarn prepare:<network># apply configuration for the network
57
-
yarn codegen # generate the typescript types
58
-
yarn build # build the subgraph code
59
-
yarn deploy-local # deploy the subgraph locally
60
-
```
61
-
62
53
## Run tests
63
54
64
55
```bash
@@ -74,18 +65,17 @@ yarn test:lint # run prettier linter
74
65
1. Add the network configuration [config/<network>.json](config/).
75
66
-`indexerHintPrune` is the number of blocks to keep for the indexer hint, aim for 2 months. Can be set to `"auto"` to prune as much as possible. Recommended for performance and cost. Or set to `"never"` to keep all updates history. ([Thegraph docs](https://thegraph.com/docs/en/cookbook/pruning/#how-to-prune-a-subgraph-with-indexerhints))
76
67
2. Add dev RPCs in graph-node config [docker/graph-node/config.toml](docker/graph-node/config.toml).
77
-
3. Add a new `prepare:<network>` script in [package.json](package.json).
78
-
4. Add the chain in `.github/workflows/Release.yml` to configure deployments.
79
-
5. Test the build
68
+
3. Add the chain in `.github/workflows/Release.yml` to configure deployments.
69
+
4. Test the build
80
70
- Apply the configuration: `npm run prepare:<chain>`
81
71
- Build the application: `npm run build`
82
72
- Run Tests: `npm run test`
83
73
- Deploy the new chain in DEV: `./bin/deploy.sh <chain> <dev provider>`
84
74
- Test the data in the dev provider subgraph explorer
85
75
- Manually deploy the new chain in PROD for the first version: `./bin/deploy.sh <chain> <dev provider>`
86
-
6. Update the `Deployments` section subgraph URLs in this README
87
-
7. Update the [Balances API](https://github.com/beefyfinance/beefy-balances-api)
88
-
8. Standard formatting with `npm run format`
76
+
5. Update the `Deployments` section subgraph URLs in this README
77
+
6. Update the [Balances API](https://github.com/beefyfinance/beefy-balances-api)
0 commit comments