1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#![deny(clippy::unwrap_used)]
// Requires nightly.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![recursion_limit = "512"]

pub mod delegator_vote;
pub use delegator_vote::{
    DelegatorVote, DelegatorVoteBody, DelegatorVoteCircuit, DelegatorVotePlan, DelegatorVoteProof,
    DelegatorVoteProofPrivate, DelegatorVoteProofPublic, DelegatorVoteView,
};

pub mod proposal_deposit_claim;
pub use proposal_deposit_claim::ProposalDepositClaim;

pub mod validator_vote;
pub use validator_vote::{
    ValidatorVote, ValidatorVoteBody, ValidatorVoteReason, MAX_VALIDATOR_VOTE_REASON_LENGTH,
};

pub mod proposal_submit;
pub use proposal_submit::ProposalSubmit;

pub mod proposal_withdraw;
pub use proposal_withdraw::ProposalWithdraw;

pub mod proposal;
pub use proposal::{Proposal, ProposalKind, ProposalPayload};

pub mod proposal_nft;
pub mod proposal_state;

pub mod voting_receipt_token;

pub use proposal_nft::ProposalNft;
pub use voting_receipt_token::VotingReceiptToken;

pub mod event;

mod metrics;
pub use crate::metrics::register_metrics;

pub mod state_key;
pub mod tally;
pub use tally::Tally;

#[cfg(feature = "component")]
pub mod component;

#[cfg(feature = "component")]
mod action_handler;

#[cfg(feature = "component")]
pub use component::{StateReadExt, StateWriteExt};

pub mod vote;
pub use vote::Vote;

pub mod genesis;
pub mod params;