temporibusunde
Version:
Access and interact with Aragon Organizations and their apps.
38 lines (35 loc) • 717 B
text/typescript
import gql from 'graphql-tag'
export const ALL_VOTES = (type: string) => gql`
${type} Votes($appAddress: String!, $first: Int!, $skip: Int!) {
votes(where: {
appAddress: $appAddress
}, first: $first, skip: $skip) {
id
appAddress
orgAddress
creator
metadata
executed
startDate
snapshotBlock
supportRequiredPct
minAcceptQuorum
yea
nay
votingPower
script
}
}
`
export const CASTS_FOR_VOTE = (type: string) => gql`
${type} Casts($voteId: ID!, $first: Int!, $skip: Int!) {
casts(where: {
voteId: $voteId
}, first: $first, skip: $skip) {
id
voteId
voter
supports
}
}
`