@1hive/connect-conviction-voting 中文文档教程

发布于 3年前 浏览 26 项目主页 更新于 3年前

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

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> } ])
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文