@1hive/connect-thegraph-conviction-voting
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

The Graph Connector for Conviction Voting

Usage

const org = await connect(
  <org-address>,
  'thegraph',
  { chainId: <chain-id> }
)
const apps = await org.apps()
const convictionVotingApp = apps.find(
  app => app.appName === 'conviction-voting.open.aragonpm.eth'
)

const conviction = new ConvictionVoting(
  convictionVotingApp.address,
  <subgraph-url>
)

const proposals = await conviction.proposals()

/@1hive/connect-thegraph-conviction-voting/

    Package Sidebar

    Install

    npm i @1hive/connect-thegraph-conviction-voting

    Weekly Downloads

    12

    Version

    0.1.7

    License

    AGPL-3.0

    Unpacked Size

    40.2 kB

    Total Files

    62

    Last publish

    Collaborators

    • kamikazebr
    • pcolombo
    • gabrielg
    • fabriv
    • starsower
    • willjgriff
    • rperez89
    • crisog