You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
useAccountingV3
The text was updated successfully, but these errors were encountered: