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

0.9.3 move queries et al to bal_tools package. #269

Merged
merged 19 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
2 changes: 0 additions & 2 deletions bal_addresses/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@
ChecksumError,
UnexpectedListLengthError,
)
from .subgraph import Subgraph
from .pools_gauges import BalPoolsGauges
215 changes: 0 additions & 215 deletions bal_addresses/pools_gauges.py

This file was deleted.

1 change: 1 addition & 0 deletions bal_addresses/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pathlib>=1.0
git+https://github.com/BalancerMaxis/[email protected]
requests
pandas
web3
Expand Down
91 changes: 0 additions & 91 deletions bal_addresses/subgraph.py

This file was deleted.

2 changes: 1 addition & 1 deletion gen_core_pools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
from bal_addresses.pools_gauges import BalPoolsGauges
from bal_tools import BalPoolsGauges


def main():
Expand Down
4 changes: 2 additions & 2 deletions gen_pools_and_gauges.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import pandas as pd
import requests

from bal_addresses.pools_gauges import BalPoolsGauges
from bal_addresses.subgraph import Subgraph
from bal_tools import BalPoolsGauges
from bal_tools import Subgraph


NO_GAUGE_SUBGRAPH = ["bsc", "kovan", "fantom", "rinkeby"]
Expand Down
3 changes: 1 addition & 2 deletions gen_subgraph_urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import json

import requests

from bal_addresses.subgraph import Subgraph
from bal_tools.subgraph import Subgraph


def main():
Expand Down
21 changes: 12 additions & 9 deletions generate_current_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,28 @@
ALCHEMY_KEY = os.getenv("ALCHEMY_KEY")

w3_by_chain = {
"base": Web3(
Web3.HTTPProvider(f"https://base-mainnet.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"gnosis": Web3(Web3.HTTPProvider(f"https://rpc.gnosischain.com")),
"zkevm": Web3(Web3.HTTPProvider(f"https://zkevm-rpc.com")),
"avalanche": Web3(Web3.HTTPProvider(f"https://api.avax.network/ext/bc/C/rpc")),
"fantom": Web3(Web3.HTTPProvider("https://rpc.fantom.network")),
### Less reliable RPCs first to fail fast :)
"mainnet": Web3(Web3.HTTPProvider(f"https://mainnet.infura.io/v3/{INFURA_KEY}")),
"mainnet": Web3(
Web3.HTTPProvider(f"https://eth-mainnet.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"base": Web3(
Web3.HTTPProvider(f"https://base-mainnet.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"arbitrum": Web3(
Web3.HTTPProvider(f"https://arbitrum-mainnet.infura.io/v3/{INFURA_KEY}")
Web3.HTTPProvider(f"https://arb-mainnet.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"optimism": Web3(
Web3.HTTPProvider(f"https://optimism-mainnet.infura.io/v3/{INFURA_KEY}")
Web3.HTTPProvider(f"https://opt-mainnet.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"polygon": Web3(
Web3.HTTPProvider(f"https://polygon-mainnet.infura.io/v3/{INFURA_KEY}")
Web3.HTTPProvider(f"https://polygon-mainnet.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"sepolia": Web3(
Web3.HTTPProvider(f"https://eth-sepolia.g.alchemy.com/v2/{ALCHEMY_KEY}")
),
"sepolia": Web3(Web3.HTTPProvider(f"https://sepolia.infura.io/v3/{INFURA_KEY}")),
}


Expand Down
Loading
Loading