@1hive/connect-thegraph-conviction-voting 中文文档教程
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()
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()
更多