[][src]Trait sunshine_util::traits::SignPetition

pub trait SignPetition<AccountId, Hash>: GetVoteOutcome {
    type Petition: Approved + Rejected + UpdatePetitionTerms<Hash> + Apply<Self::SignerView>;
    type SignerView;
    fn check_petition_outcome(
        petition: Self::Petition
    ) -> Result<Self::Outcome, DispatchError>;
fn sign_petition(
        petition_id: Self::VoteId,
        signer: AccountId,
        view: Self::SignerView
    ) -> Result<Self::Outcome, DispatchError>; }

Associated Types

Loading content...

Required methods

fn check_petition_outcome(
    petition: Self::Petition
) -> Result<Self::Outcome, DispatchError>

fn sign_petition(
    petition_id: Self::VoteId,
    signer: AccountId,
    view: Self::SignerView
) -> Result<Self::Outcome, DispatchError>

Loading content...

Implementors

Loading content...