Skip to content

Commit

Permalink
add 8th deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Sep 10, 2024
1 parent f00752f commit 4a8ba8e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 75 deletions.
134 changes: 67 additions & 67 deletions .github/workflows/graph.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
name: Deploy Graph Studio Prod
on:
push:
branches: main
# name: Deploy Graph Studio Prod
# on:
# push:
# branches: main

jobs:
deploy-pools-sepolia:
runs-on: ubuntu-latest
environment: graph
steps:
- uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Generate manifests
run: pnpm generate-manifests
- name: Graph Codegen
working-directory: subgraphs/pools
run: pnpm codegen subgraph.sepolia.yaml
- name: Graph Build
working-directory: subgraphs/pools
run: pnpm build subgraph.sepolia.yaml
- uses: balancer-labs/[email protected]
with:
graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
graph_version_label: ${GITHUB_SHA::8}
graph_subgraph_name: "balancer-pools-v3-sepolia-7th"
graph_account: "mendesfabio"
graph_config_file: "subgraphs/pools/subgraph.sepolia.yaml"
graph_deploy_studio: true
# jobs:
# deploy-pools-sepolia:
# runs-on: ubuntu-latest
# environment: graph
# steps:
# - uses: actions/checkout@v3
# - name: Install node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8
# - name: Install dependencies
# run: pnpm install
# - name: Generate manifests
# run: pnpm generate-manifests
# - name: Graph Codegen
# working-directory: subgraphs/pools
# run: pnpm codegen subgraph.sepolia.yaml
# - name: Graph Build
# working-directory: subgraphs/pools
# run: pnpm build subgraph.sepolia.yaml
# - uses: balancer-labs/[email protected]
# with:
# graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
# graph_version_label: ${GITHUB_SHA::8}
# graph_subgraph_name: "balancer-pools-v3-sepolia-7th"
# graph_account: "mendesfabio"
# graph_config_file: "subgraphs/pools/subgraph.sepolia.yaml"
# graph_deploy_studio: true

deploy-vault-sepolia:
runs-on: ubuntu-latest
environment: graph
steps:
- uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Generate manifests
run: pnpm generate-manifests
- name: Graph Codegen
working-directory: subgraphs/vault
run: pnpm codegen subgraph.sepolia.yaml
- name: Graph Build
working-directory: subgraphs/vault
run: pnpm build subgraph.sepolia.yaml
- uses: balancer-labs/[email protected]
with:
graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
graph_version_label: ${GITHUB_SHA::8}
graph_subgraph_name: "balancer-v3-sepolia-7th"
graph_account: "mendesfabio"
graph_config_file: "subgraphs/vault/subgraph.sepolia.yaml"
graph_deploy_studio: true
# deploy-vault-sepolia:
# runs-on: ubuntu-latest
# environment: graph
# steps:
# - uses: actions/checkout@v3
# - name: Install node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8
# - name: Install dependencies
# run: pnpm install
# - name: Generate manifests
# run: pnpm generate-manifests
# - name: Graph Codegen
# working-directory: subgraphs/vault
# run: pnpm codegen subgraph.sepolia.yaml
# - name: Graph Build
# working-directory: subgraphs/vault
# run: pnpm build subgraph.sepolia.yaml
# - uses: balancer-labs/[email protected]
# with:
# graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
# graph_version_label: ${GITHUB_SHA::8}
# graph_subgraph_name: "balancer-v3-sepolia-7th"
# graph_account: "mendesfabio"
# graph_config_file: "subgraphs/vault/subgraph.sepolia.yaml"
# graph_deploy_studio: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ This repository contains the subgraph implementations for Balancer v3, including

| Subgraph | Version | Endpoint |
| -------- | ------- | ---------------------------------------------------------------------------------------- |
| Vault | 6th | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-6th/version/latest |
| Pools | 6th | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-6th/version/latest |
| Vault | 8th | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-8th/version/latest |
| Pools | 8th | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-8th/version/latest |
| Vault | 7th | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-7th/version/latest |
| Pools | 7th | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-7th/version/latest |

Expand Down
12 changes: 6 additions & 6 deletions networks.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"sepolia": {
"Vault": {
"address": "0x7966FE92C59295EcE7FB5D9EfDB271967BFe2fbA",
"startBlock": 6450339
"address": "0x0EF1c156a7986F394d90eD1bEeA6483Cc435F542",
"startBlock": 6638943
},
"WeightedPoolFactory": {
"address": "0x765ce16dbb3D7e89a9beBc834C5D6894e7fAA93c",
"startBlock": 6454545
"address": "0x7c5E586ed4EC1793a6076FC0Dcad03Ca2442f7F8",
"startBlock": 6638995
},
"StablePoolFactory": {
"address": "0x4b4b45Edf6Ca26ae894377Cf4FeD1FA9F82D85C6",
"startBlock": 6454538
"address": "0x2a55364B7948a460f9DEfFFc4440cB838A10dc26",
"startBlock": 6639020
}
}
}
2 changes: 2 additions & 0 deletions subgraphs/pools/src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ export namespace PoolType {
export const Weighted = "Weighted";
export const Stable = "Stable";
}

export const ONE_HUNDRED_PERCENT = 1000000000000000000;

0 comments on commit 4a8ba8e

Please sign in to comment.