diff --git a/.github/workflows/generate_addressbooks.yaml b/.github/workflows/generate_addressbooks.yaml index 9b290e81..37e8736f 100644 --- a/.github/workflows/generate_addressbooks.yaml +++ b/.github/workflows/generate_addressbooks.yaml @@ -8,7 +8,8 @@ on: jobs: refresh_books: runs-on: ubuntu-latest - + env: + GRAPH_API_KEY: ${{ secrets.GRAPH_API_KEY }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -27,6 +28,7 @@ jobs: python3 gen_pools_and_gauges.py python3 gen_mono_addressbook.py python3 gen_addresses.py + python3 gen_subgraph_urls.py rm -rf balancer-deployments git add -A diff --git a/bal_addresses/requirements.txt b/bal_addresses/requirements.txt index 05f816a9..5fc2f3cf 100644 --- a/bal_addresses/requirements.txt +++ b/bal_addresses/requirements.txt @@ -1,5 +1,5 @@ pathlib>=1.0 -git+https://github.com/BalancerMaxis/bal_tools@v0.1.4 +git+https://github.com/BalancerMaxis/bal_tools@v0.1.5 requests pandas web3 diff --git a/gen_subgraph_urls.py b/gen_subgraph_urls.py index 5c51d105..57d3c2e7 100644 --- a/gen_subgraph_urls.py +++ b/gen_subgraph_urls.py @@ -1,10 +1,14 @@ import json +import os import requests from bal_tools.subgraph import Subgraph def main(): + # make sure that if thegraph api key somehow finds its way into the env that it is wiped + os.environ["GRAPH_API_KEY"] = "" + urls = {} with open("extras/chains.json", "r") as f: diff --git a/setup.py b/setup.py index 160fa184..0f981201 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ "web3", "gql[requests]", "requests", - "bal_tools @ git+https://github.com/BalancerMaxis/bal_tools@v0.1.4", + "bal_tools @ git+https://github.com/BalancerMaxis/bal_tools@v0.1.5", ], keywords=["python", "first package"], classifiers=[