Skip to content

Commit

Permalink
explorer: remove EncryptedVoteTally
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Mar 2, 2022
1 parent 6ac06c3 commit dd1a37c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions explorer/src/api/graphql/certificates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub enum Certificate {
VotePlan(VotePlan),
VoteCast(VoteCast),
VoteTally(VoteTally),
EncryptedVoteTally(EncryptedVoteTally),
UpdateProposal(UpdateProposal),
UpdateVote(UpdateVote),
MintToken(MintToken),
Expand All @@ -41,8 +40,6 @@ pub struct VoteCast(certificate::VoteCast);

pub struct VoteTally(certificate::VoteTally);

pub struct EncryptedVoteTally(certificate::EncryptedVoteTally);

pub struct UpdateProposal(certificate::UpdateProposal);

pub struct UpdateVote(certificate::UpdateVote);
Expand Down Expand Up @@ -236,13 +233,6 @@ impl VoteTally {
}
}

#[Object]
impl EncryptedVoteTally {
pub async fn vote_plan(&self) -> VotePlanId {
self.0.id().clone().into()
}
}

#[Object]
impl UpdateProposal {
pub async fn changes(&self) -> ConfigParams {
Expand Down Expand Up @@ -295,9 +285,6 @@ impl From<chain_impl_mockchain::certificate::Certificate> for Certificate {
certificate::Certificate::VotePlan(c) => Certificate::VotePlan(VotePlan(c)),
certificate::Certificate::VoteCast(c) => Certificate::VoteCast(VoteCast(c)),
certificate::Certificate::VoteTally(c) => Certificate::VoteTally(VoteTally(c)),
certificate::Certificate::EncryptedVoteTally(c) => {
Certificate::EncryptedVoteTally(EncryptedVoteTally(c))
}
certificate::Certificate::UpdateProposal(c) => {
Certificate::UpdateProposal(UpdateProposal(c))
}
Expand Down

0 comments on commit dd1a37c

Please sign in to comment.