0.0.1 • Published 4 years ago
@1hive/connect-app-dandelion-voting v0.0.1
The Graph Connector for Dandelion Voting
Usage
const org = await connect(
<org-address>,
'thegraph',
{ chainId: <chain-id> }
)
const apps = await org.apps()
const dandelionVotingApp = apps.find(
app => app.appName === 'dandelion-voting.aragonpm.eth'
)
const dandelionVotingInstance = new DandelionVoting(
dandelionVotingApp.address,
<subgraph-url>
)
const votes = await dandelionVotingInstance.votes()
0.0.1
4 years ago