Skip to content

feat: subgraph v2#15

Merged
gosuto-inzasheru merged 17 commits intomainfrom
feat/subgraph_v2
Aug 22, 2023
Merged

feat: subgraph v2#15
gosuto-inzasheru merged 17 commits intomainfrom
feat/subgraph_v2

Conversation

@gosuto-inzasheru
Copy link
Copy Markdown
Contributor

@gosuto-inzasheru gosuto-inzasheru commented Aug 11, 2023

ideally the subgraph would grab balances of all gauges, but for now i just hardcoded the usdc dola gauge

i have no idea what i am doing in the frontend part, but i got the balance logged successfully :D

@gosuto-inzasheru
Copy link
Copy Markdown
Contributor Author

dont spend too much time on this one, im already working on a v3 which tracks all gauges deployed by the velodrome factory.

quick test: mock connect to the app from 0x7811DF09C3415E99BEB22122123932E2Fe1Ef0b0, it has a balance in the gauge. number logged in console should reflect onchain data

Screenshot 2023-08-12 at 15 37 10

https://optimistic.etherscan.io/address/0xa1034ed2c9eb616d6f7f318614316e64682e7923#readContract

@gosuto-inzasheru gosuto-inzasheru marked this pull request as draft August 17, 2023 07:55
@gosuto-inzasheru
Copy link
Copy Markdown
Contributor Author

this syncd up fully and gives expected results for our msig! i suggest we merge, and make the retrieval of the data in the frontend a separate pr.

Screenshot 2023-08-19 at 13 20 21

@gosuto-inzasheru gosuto-inzasheru marked this pull request as ready for review August 19, 2023 11:22
@gosuto-inzasheru gosuto-inzasheru mentioned this pull request Aug 19, 2023
3 tasks
Copy link
Copy Markdown
Collaborator

@petrovska-petro petrovska-petro left a comment

Choose a reason for hiding this comment

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

lfg 🚀

  • queries against https://api.studio.thegraph.com/proxy/50162/smartgarden-optimism-gauges/version/latest/graphql splits out the expected for multiple users ✅

  • entities and reverse lookup in user looks good ✅

  • handleDeposit for user leverages the to event, since it could be deposited in behalf on somebody else ✅

lets leverage this info into the ui 🔥

@gosuto-inzasheru gosuto-inzasheru merged commit 945c25f into main Aug 22, 2023
@gosuto-inzasheru gosuto-inzasheru deleted the feat/subgraph_v2 branch August 22, 2023 08:14
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.

2 participants