-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
1,795 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ref: https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.) | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Black | ||
uses: psf/black@stable | ||
with: | ||
options: "--verbose" | ||
version: "24.4.0" | ||
|
||
- name: Auto commit | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: "style: ci lint with `black`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
|
||
class MultipleMatchesError(Exception): | ||
pass | ||
|
||
|
||
class NoResultError(Exception): | ||
pass | ||
|
||
|
||
class ChecksumError(Exception): | ||
pass | ||
|
||
|
||
class GraphQLRequestError(Exception): | ||
pass | ||
|
||
|
||
class UnexpectedListLengthError(Exception): | ||
pass | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"zero": { | ||
"zero": "0x0000000000000000000000000000000000000000" | ||
}, | ||
"tokens": { | ||
"WFTM": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", | ||
"BEETS": "0xF24Bcf4d1e507740041C9cFd2DddB29585aDCe1e" | ||
}, | ||
"beethoven_x": { | ||
"treasury": "0xa1E849B1d6c2Fd31c63EEf7822e9E0632411ada7", | ||
"deployer": "0x4fbe899d37fb7514adf2f41B0630E018Ec275a0C", | ||
"vault": "0x20dd72Ed959b6147912C2e529F0a0C651c33c9ce", | ||
"friendly_fork_vesting": "0x8D381EC09356C3F1805c54B2BB0867e8b417DC3a" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,4 +103,4 @@ def process_deployments(deployments, old=False): | |
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import json | ||
|
||
import requests | ||
|
||
from bal_addresses.subgraph import Subgraph | ||
|
||
|
||
def main(): | ||
urls = {} | ||
|
||
with open("extras/chains.json", "r") as f: | ||
chains = json.load(f) | ||
for chain in chains["CHAIN_IDS_BY_NAME"]: | ||
if chain not in urls: | ||
urls[chain] = {} | ||
for subgraph_type in ["core", "gauges", "blocks", "aura"]: | ||
subgraph = Subgraph(chain) | ||
url = subgraph.get_subgraph_url(subgraph_type) | ||
if url: | ||
code = requests.get(url).status_code | ||
if code == 200: | ||
urls[chain].update({subgraph_type: url}) | ||
else: | ||
# if code not in urls[chain]: | ||
# urls[chain][code] = {} | ||
urls[chain].update({subgraph_type: {code: url}}) | ||
else: | ||
continue | ||
|
||
# dump the collected dict to json file | ||
with open("outputs/subgraph_urls.json", "w") as f: | ||
json.dump(urls, f, indent=2) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.