astro_assembly/
state.rs

1use astroport_governance::assembly::{Config, Proposal, ProposalVoteOption};
2use cosmwasm_std::Uint64;
3use cw_storage_plus::{Item, Map};
4
5/// Stores the config for the Assembly contract
6pub const CONFIG: Item<Config> = Item::new("config");
7
8/// Stores the global state for the Assembly contract
9pub const PROPOSAL_COUNT: Item<Uint64> = Item::new("proposal_count");
10
11/// This is a map that contains information about all proposals
12pub const PROPOSALS: Map<u64, Proposal> = Map::new("proposals");
13
14/// Contains all the voters and their vote option. A String is used for the address
15/// to account for cross-chain voting
16pub const PROPOSAL_VOTERS: Map<(u64, String), ProposalVoteOption> = Map::new("proposal_votes");