diff --git a/.github/workflows/graph.yml b/.github/workflows/graph.yml index cc3503f..b858ca7 100644 --- a/.github/workflows/graph.yml +++ b/.github/workflows/graph.yml @@ -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/graph-deploy@v0.0.1 - 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/graph-deploy@v0.0.1 +# 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/graph-deploy@v0.0.1 - 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/graph-deploy@v0.0.1 +# 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 diff --git a/README.md b/README.md index 4229187..c5fd542 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/networks.json b/networks.json index 3c056df..59a6506 100644 --- a/networks.json +++ b/networks.json @@ -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 } } } diff --git a/subgraphs/pools/src/helpers/constants.ts b/subgraphs/pools/src/helpers/constants.ts index b7b2a2a..ac7cfb5 100644 --- a/subgraphs/pools/src/helpers/constants.ts +++ b/subgraphs/pools/src/helpers/constants.ts @@ -2,3 +2,5 @@ export namespace PoolType { export const Weighted = "Weighted"; export const Stable = "Stable"; } + +export const ONE_HUNDRED_PERCENT = 1000000000000000000;