0.4.1 • Published 4 years ago

@1hive/connect-conviction-voting v0.4.1

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

The Graph Connector for Conviction Voting

Usage

  const org = await connect(ORG_ADDRESS, 'thegraph', { network: 4 })

  const convictionapp = await org.app('conviction-beta')

  const conviction = await connectConviction(convictionapp)

const proposals = await conviction.proposals()

If you would like to use a coustom subgraph

  const conviction = await connectConviction(convictionapp, [ 'thegraph', { subgraphUrl: <subgraph-url> } ])