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

snapshot ecosystem, subgraph methods from fee allocator #9

Merged
merged 41 commits into from
Jul 1, 2024

Conversation

jalbrekt85
Copy link
Collaborator

#3 #4

)
return [Pool(**pool) for pool in res["veBalGetVotingList"]]

def get_balancer_pool_snapshots(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still using the traditional endpoints for this, see: #4 (comment)

@gosuto-inzasheru gosuto-inzasheru removed their request for review June 3, 2024 14:06
Copy link
Contributor

@Tritium-VLK Tritium-VLK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loooks pretty good to me. Before I just stamp it. Posted a few comments.

I didn't do a lot of review of new functions/code/gql files, nor tests. I assume that we can hash this out once we start using it a bit, and we are still in early versions of bal_tools. What's important is that we don't break anything, or notice/change it fast if/when we do.

@@ -115,3 +120,82 @@ def get_aura_pid_from_gauge(self, deposit_gauge_address: str) -> int:
f"Got a list result with something other than 1 member when compiling aura PID mapping: {result}"
)
return result[0]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not review this file in detail but it is not in operation anywhere yet so we will see how it works

blocks(
first: 1
orderBy: number
orderDirection: asc
where: { timestamp_gt: $timestamp }
where: { timestamp_gt: $timestamp_gt, timestamp_lt: $timestamp_lt}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure nothing is using this yet and passing only GT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure where else its used outside of this/fee allocator currently. this query is called from get_first_block_after_utc_timestamp, so should be implied that its gt

@@ -5,5 +5,6 @@ web3
dotmap
munch==4.0.0
gql[requests]
dacite

git+https://github.com/BalancerMaxis/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrated to pydantic: c30415a

if chain == "optimism":
return "https://api.thegraph.com/subgraphs/name/iliaazhel/optimism-blocklytics"
elif chain == "gnosis-chain":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little unclear why you moved it and unsure of this ordering, can you explain?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym ordering? i dont think it should matter here

@jalbrekt85 jalbrekt85 merged commit 7e007da into main Jul 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants