Access organizations and interact with Convcition Voting apps.

Usage no npm install needed!

<script type="module">
  import 1hiveConnectConvictionVoting from 'https://cdn.skypack.dev/@1hive/connect-conviction-voting';


The Graph Connector for Conviction Voting


  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> } ])