use candid::CandidType;
use serde::{Deserialize, Serialize};
use types::CanisterId;

#[derive(CandidType, Serialize, Deserialize, Debug)]
pub struct Args {
    pub is_nns: bool,
    pub governance_canister_id: CanisterId,
    pub proposal_id: u64,
    pub adopt: bool,
}

#[derive(CandidType, Serialize, Deserialize, Debug)]
pub enum Response {
    Success,
    NoEligibleNeurons,
    ProposalNotFound,
    ProposalNotAcceptingVotes,
    InternalError(String),
}
