Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update graph and grafting #576

Merged
merged 4 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/graph-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -105,7 +105,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -128,7 +128,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -151,7 +151,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -174,7 +174,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -197,7 +197,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graph-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/graph-studio-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/graph-studio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -113,7 +113,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -105,7 +105,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -128,7 +128,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -151,7 +151,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -174,7 +174,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand All @@ -197,7 +197,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Assets
Expand Down
2 changes: 2 additions & 0 deletions manifest.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ features:
graft:
base: {{graft_pruned.base}}
block: {{graft_pruned.block}}
indexerHints:
prune: {{graft_pruned.prune}}
{{/if}}
repository: https://github.com/balancer-labs/balancer-subgraph-v2
schema:
Expand Down
20 changes: 11 additions & 9 deletions networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,18 @@ goerli:
polygon:
network: matic
graft:
# CSP V6 start block
block: 53996258
# FXPoolDeployerTracker start block
block: 54559455
# this will be the base of the unpruned deployment, so make sure it has not been pruned
# it should be possible to run time travel queries on it going back to the vault's startBlock
base: QmRCGtj72CHWPWhmfQW75SuvFhziHbBkr2aNm7rHGrsmth
base: QmfFmtcLKRugnPe8HFmmvdtUgM6gvUSSsFXGeCTX6sH4Zg
graft_pruned:
# CSP V6 start block
block: 53996258
# FXPoolDeployerTracker start block
block: 54559455
# this will be the base of the pruned deployment, so it is ok if it is a pruned subgraph
base: QmRCGtj72CHWPWhmfQW75SuvFhziHbBkr2aNm7rHGrsmth
base: Qmerm61ru3khP6zoAgU512KnRQgAwKa1zve5rAP93PnUt9
# number of blocks retained for time travel queries - must keep at least 24h of blocks
prune: 100000
EventEmitter:
address: "0xcdcECFa416EE3022030E707dC3EA13a8997D74c8"
startBlock: 38152461
Expand Down Expand Up @@ -376,11 +378,11 @@ polygon:
arbitrum:
network: arbitrum-one
graft:
# CSP V6 start block
block: 184805448
# FXPoolDeployerTracker start block
block: 191573392
# always make sure the base subgraph has not been pruned
# it should be possible to run time travel queries on it going back to the vault's startBlock
base: QmNqkQ3BMMjsDm1WschCn9uSdXLM49QtuB6wKuYpUC1izo
base: QmZewqKt12daEoy7P9SjDfsGheVq8VqPj1ytVr9usKaBtq
EventEmitter:
address: "0x8f32D631093B5418d0546f77442c5fa66187E59D"
startBlock: 53475240
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"create": "graph create balancer-labs/balancer-v2 --node https://api.thegraph.com/deploy/",
"create:local": "graph create balancer-labs/balancer-v2 --node http://127.0.0.1:8020",
"codegen": "yarn generate-manifests && graph codegen --output-dir src/types/",
"codegen": "yarn generate-manifests subgraph.polygon.yaml && graph codegen --output-dir src/types/",
"build": "graph build",
"lint": "eslint --max-warnings 0 . --ext .ts",
"test": "jest ./test/*.test.ts",
Expand All @@ -24,8 +24,8 @@
"@babel/core": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@babel/preset-typescript": "^7.12.13",
"@graphprotocol/graph-cli": "0.52.0",
"@graphprotocol/graph-ts": "0.31.0",
"@graphprotocol/graph-cli": "0.69.0",
"@graphprotocol/graph-ts": "0.34.0",
"@types/jest": "^26.0.20",
"@types/node": "^16.4.1",
"@typescript-eslint/eslint-plugin": "^4.1.1",
Expand Down
Loading
Loading