Skip to content

Commit 86f0391

Browse files
committed
feat(subgraph): add redact shield native
1 parent 93fc585 commit 86f0391

14 files changed

Lines changed: 1363 additions & 9 deletions

File tree

.github/workflows/subgraph.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ jobs:
2626
- name: Install dependencies
2727
run: pnpm install --frozen-lockfile
2828

29-
- name: Codegen and build
29+
- name: Codegen and build (mainnet)
3030
run: |-
31-
pnpm run codegen
32-
pnpm run build
31+
pnpm run codegen:mainnet
32+
pnpm run build:mainnet
33+
working-directory: subgraph
34+
35+
- name: Codegen and build (sepolia)
36+
run: |-
37+
pnpm run codegen:sepolia
38+
pnpm run build:sepolia
3339
working-directory: subgraph
3440

3541
- name: Test

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subgraph/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Subgraph
2+
3+
Build the required subgraph to fetch metrics data for the benchmarks.
4+
5+
# Build and deploy
6+
7+
```bash
8+
# 0. merge the schema files into a single one
9+
# happens automatically in the next command
10+
# 1. generate the code types for the subgraph
11+
pnpm run codegen:mainnet
12+
pnpm run codegen:sepolia
13+
14+
# 2. build the subgraph
15+
pnpm run build:mainnet
16+
pnpm run build:sepolia
17+
18+
# 3. Authenticate graph CLI
19+
graph auth --studio <DEPLOY_KEY_DIFFERENT_FROM_API_KEY>
20+
21+
# 4. deploy the subgraph to The Graph Studio
22+
pnpm run deploy:mainnet
23+
pnpm run deploy:sepolia
24+
```
25+
26+
**Note**: A subgraph can only point to one network at the time. We need multiple subgraph.yaml files for each network. More info [here](https://thegraph.com/docs/en/subgraphs/developing/creating/subgraph-manifest/#subgraph-capabilities).
File renamed without changes.

0 commit comments

Comments
 (0)