This is an app connector for the Voting app (
voting.aragonpm.eth). It only supports The Graph for now.
To connect a Voting app, you need to pass it to
import connect from '@aragon/connect'
import connectVoting from '@aragon/connect-voting'
const org = await connect('myorg.aragonid.eth', 'thegraph')
const voting = await connectVoting(org.app('voting'))
It extends the
Appobject, which means that every method and property of
Appis also available on this object.
Connects and returns a
The app to extend with connected capabilities.
Accepts either a string describing the desired connector (only
It can throw the following errors:
Either the passed value is not a valid app object, or its name is not
Either the connector configuration format is not valid, or the connector name is not supported.
A subgraph couldn’t be found with the current network. Pass a
An object representing the Voting app, returned by
connectVoting(). Use the following API to retrieve its data:
Get the list of votes in the Voting app.
Optional object allowing to filter the votes.
Maximum number of votes. Defaults to
Skip a number of votes. Defaults to
The list of votes.
This method can throw one of the following errors: