raid-guild / dungeon-master-v2

Dungeon Master v2 Monorepo
https://dungeon-master-black.vercel.app
1 stars 1 forks source link

Get transactions data for useAccountingV3 #134

Open ECWireless opened 6 months ago

ECWireless commented 6 months ago

Overview

Getting transaction data involves getting the proposal data associated with it, as well as some metadata (particularly when the transaction is associated with a proposal). Most likely, you can use the Gnosis Safe SDK for this, but it's not 100% certain.

Once these transactions are fetched from the Gnosis Safe SDK, you may be able to use the transaction hash to map it to proposals fetched from DAOHaus' subgraph. The current DAOHaus subgraph for v3 on Gnosis for DAO and proposal data is here: https://thegraph.com/hosted-service/subgraph/hausdao/daohaus-v3-gnosis.

Fetch this

Check current transactions table columns to see exactly what metadata is needed. It may just be "proposal," "counterparty," and "type."

https://github.com/hausdao/daohaus-v3-subgraph-sandbox

Tasks