Skip to content

Commit

Permalink
Merge pull request #418 from BalancerMaxis/feat/use_prod_subgraphs
Browse files Browse the repository at this point in the history
chore: bump bal tools version in order to use new subgraph urls
  • Loading branch information
gosuto-inzasheru authored Aug 16, 2024
2 parents 8cc0e14 + b693ace commit 1bd1b66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/generate_addressbooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bal_addresses/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pathlib>=1.0
git+https://github.com/BalancerMaxis/[email protected].4
git+https://github.com/BalancerMaxis/[email protected].5
requests
pandas
web3
Expand Down
4 changes: 4 additions & 0 deletions gen_subgraph_urls.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"web3",
"gql[requests]",
"requests",
"bal_tools @ git+https://github.com/BalancerMaxis/[email protected].4",
"bal_tools @ git+https://github.com/BalancerMaxis/[email protected].5",
],
keywords=["python", "first package"],
classifiers=[
Expand Down

0 comments on commit 1bd1b66

Please sign in to comment.