astro-assembly 3.0.1

Astroport DAO Contract
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use astroport_governance::assembly::{Config, Proposal, ProposalVoteOption};
use cosmwasm_std::Uint64;
use cw_storage_plus::{Item, Map};

/// Stores the config for the Assembly contract
pub const CONFIG: Item<Config> = Item::new("config");

/// Stores the global state for the Assembly contract
pub const PROPOSAL_COUNT: Item<Uint64> = Item::new("proposal_count");

/// This is a map that contains information about all proposals
pub const PROPOSALS: Map<u64, Proposal> = Map::new("proposals");

/// Contains all the voters and their vote option. A String is used for the address
/// to account for cross-chain voting
pub const PROPOSAL_VOTERS: Map<(u64, String), ProposalVoteOption> = Map::new("proposal_votes");