-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NPG 3275 explorer vote plan test by id (#4090)
* Create vote_plan_by_id.graphql * rename vote_plan_by_id file * adding vote plan query infra * adding vote plan test * update vote plan by id test * adding api call * adding vote plan not existing test * adding private vote test * clean up private testing test * add comment * adding vote_plan verifier * adding verifies to vote plan test * fix clippy
- Loading branch information
Showing
7 changed files
with
919 additions
and
8 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
testing/jormungandr-automation/resources/explorer/graphql/voteplan_by_id.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
query VotePlanById($id: String!){ | ||
votePlan(id: $id) { | ||
id | ||
voteStart {...blockDate} | ||
voteEnd {...blockDate} | ||
committeeEnd {...blockDate} | ||
payloadType | ||
proposals { | ||
proposalId | ||
options {start end} | ||
tally { | ||
__typename | ||
... on TallyPublicStatus {results | ||
options{start end} } | ||
... on TallyPrivateStatus {results | ||
options{start end} } | ||
} | ||
votes{ | ||
edges{ | ||
node{ | ||
address{ | ||
id | ||
#delegation{id} | ||
} | ||
payload{ | ||
__typename | ||
... on VotePayloadPublicStatus {choice} | ||
... on VotePayloadPrivateStatus {proof encryptedVote} | ||
} | ||
} | ||
} | ||
totalCount | ||
} | ||
} | ||
} | ||
} | ||
fragment blockDate on BlockDate{ | ||
epoch{id} | ||
slot | ||
} |
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
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
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
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
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ pub mod certificates; | |
pub mod explorer_sanity; | ||
pub mod settings; | ||
pub mod transaction; | ||
pub mod vote_plan; |
Oops, something went wrong.