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

Use gnosis safe SDK to get balances data for useAccountingV3 #133

Open
2 tasks
ECWireless opened this issue May 10, 2024 · 0 comments
Open
2 tasks

Use gnosis safe SDK to get balances data for useAccountingV3 #133

ECWireless opened this issue May 10, 2024 · 0 comments
Assignees

Comments

@ECWireless
Copy link
Contributor

Overview

It's not 100% clear, but it seems like we should be able to get all treasury balances using the Gnosis Safe SDK.

As pointed out in DAOHaus' support:

"DAOHaus does not have an equivalent to the v2 subgraph for v3 and no token balances for the main treasury or side vaults are tracked in the subgraph. But all the vaults are gnosis safes so in the DAOHaus UI, they use the Gnosis API to fetch balances."

The @daohaus/moloch-v3-data npm package is a wrapper for this ^. The code for the package is here, so you can either use the package directly, or borrow the code that DAOHaus uses to wrap the Gnosis Safe API in order to interact with the API instead. The first link in this paragraph shows code for querying for token balances by DAO address, but if you want to query by safe address or vault, you can use this code.

Tasks

  • Determine the best route for retrieving v3 balances
  • Fetch and format balances in useAccountingV3
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 a pull request may close this issue.

2 participants