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

chore: bump bal tools version in order to use new subgraph urls #418

Merged
merged 4 commits into from
Aug 16, 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
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