Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update voteplans query to include votestatuses
- Loading branch information
1 parent
bb09396
commit 7b52084
Showing
1 changed file
with
48 additions
and
26 deletions.
There are no files selected for viewing
74 changes: 48 additions & 26 deletions
74
testing/jormungandr-testing-utils/resources/explorer/graphql/voteplans.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,51 @@ | ||
query AllVotePlans($first: Int!){ | ||
allVotePlans(first: $first) { | ||
edges{ | ||
node { | ||
id, | ||
voteStart{ | ||
epoch{ | ||
id | ||
} | ||
slot | ||
} | ||
voteEnd{ | ||
epoch{ | ||
id | ||
} | ||
slot | ||
} | ||
committeeEnd { | ||
epoch{ | ||
id | ||
} | ||
slot | ||
} | ||
payloadType, | ||
query AllVotePlans($first: Int!) { | ||
allVotePlans(first: $first) { | ||
edges { | ||
node { | ||
id | ||
voteStart { | ||
epoch { | ||
id | ||
} | ||
slot | ||
} | ||
voteEnd { | ||
epoch { | ||
id | ||
} | ||
slot | ||
} | ||
committeeEnd { | ||
epoch { | ||
id | ||
} | ||
slot | ||
} | ||
payloadType | ||
proposals { | ||
# proposalId | ||
options { | ||
start | ||
end | ||
} | ||
votes { | ||
edges { | ||
node { | ||
address { | ||
id | ||
} | ||
payload { | ||
__typename | ||
... on VotePayloadPublicStatus { | ||
choice | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
totalCount | ||
} | ||
} | ||
} | ||
totalCount | ||
} | ||
} |