Skip to main content

komple_framework_merge_module/
state.rs

1use cosmwasm_schema::cw_serde;
2use komple_framework_types::shared::{
3    CONFIG_NAMESPACE, EXECUTE_LOCK_NAMESPACE, OPERATORS_NAMESPACE, PARENT_ADDR_NAMESPACE,
4};
5
6use cosmwasm_std::Addr;
7use cw_storage_plus::Item;
8
9#[cw_serde]
10pub struct Config {
11    pub admin: Addr,
12    pub merge_lock: bool,
13}
14pub const CONFIG: Item<Config> = Item::new(CONFIG_NAMESPACE);
15
16/// Hub module address.
17pub const HUB_ADDR: Item<Addr> = Item::new(PARENT_ADDR_NAMESPACE);
18
19/// Operators of this contract.
20pub const OPERATORS: Item<Vec<Addr>> = Item::new(OPERATORS_NAMESPACE);
21
22/// Lock for the execute entry point.
23pub const EXECUTE_LOCK: Item<bool> = Item::new(EXECUTE_LOCK_NAMESPACE);