quasvel
Version:
Access and interact with Aragon Organizations and their apps.
58 lines (55 loc) • 1.06 kB
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
executedAt
startDate
snapshotBlock
supportRequiredPct
minAcceptQuorum
yea
nay
votingPower
script
}
}
`
export const CASTS_FOR_VOTE = (type: string) => gql`
${type} Casts($vote: ID!, $first: Int!, $skip: Int!) {
casts(where: { vote: $vote }, first: $first, skip: $skip) {
id
vote {
id
appAddress
orgAddress
creator
metadata
executed
executedAt
startDate
snapshotBlock
supportRequiredPct
minAcceptQuorum
yea
nay
votingPower
script
}
voter {
id
address
}
supports
stake
createdAt
}
}
`