@1hive/connect-app-dandelion-voting 中文文档教程
The Graph Connector for Dandelion Voting
Usage
const org = await connect(
<org-address>,
'thegraph',
{ chainId: <chain-id> }
)
const apps = await org.apps()
const dandelionVotingApp = apps.find(
app => app.appName === 'dandelion-voting.aragonpm.eth'
)
const dandelionVotingInstance = new DandelionVoting(
dandelionVotingApp.address,
<subgraph-url>
)
const votes = await dandelionVotingInstance.votes()
The Graph Connector for Dandelion Voting
Usage
const org = await connect(
<org-address>,
'thegraph',
{ chainId: <chain-id> }
)
const apps = await org.apps()
const dandelionVotingApp = apps.find(
app => app.appName === 'dandelion-voting.aragonpm.eth'
)
const dandelionVotingInstance = new DandelionVoting(
dandelionVotingApp.address,
<subgraph-url>
)
const votes = await dandelionVotingInstance.votes()
更多