0.0.1 • Published 4 years ago

@1hive/connect-app-dandelion-voting v0.0.1

Weekly downloads
3
License
AGPL-3.0
Repository
github
Last release
4 years ago

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()