marbu-customization-module 0.2.0-alpha

Komple Framework module for marketplace customization in Marbu.
Documentation
use cosmwasm_schema::cw_serde;
use cosmwasm_std::{Addr, Binary};
use cw_storage_plus::{Item, Map};

use komple_framework_types::shared::{
    CONFIG_NAMESPACE, EXECUTE_LOCK_NAMESPACE, PARENT_ADDR_NAMESPACE,
};

#[cw_serde]
pub struct Config {
    pub admin: Addr,
}
pub const CONFIG: Item<Config> = Item::new(CONFIG_NAMESPACE);

/// Hub module address.
pub const HUB_ADDR: Item<Addr> = Item::new(PARENT_ADDR_NAMESPACE);

/// Lock for the execute entry point.
pub const EXECUTE_LOCK: Item<bool> = Item::new(EXECUTE_LOCK_NAMESPACE);

// The smallest unit of data.
// It is a key-value pair.
// The key is a string and the value is a binary for any arbitrary data.
#[cw_serde]
pub struct Data {
    pub key: String,
    pub value: Binary,
}
// The data map for.
// It is a map of string to binary.
pub const DATA_MAP: Map<String, Binary> = Map::new("data");