Skip to content

Commit

Permalink
feat(cognitarium): design instantiate message
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Apr 20, 2023
1 parent 0a52136 commit 1edacf6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion contracts/okp4-cognitarium/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use cosmwasm_schema::{cw_serde, QueryResponses};

/// Instantiate message
#[cw_serde]
pub struct InstantiateMsg {}
pub struct InstantiateMsg {
/// Limitations regarding store usage.
pub limits: StoreLimits,
}

/// Execute messages
#[cw_serde]
Expand All @@ -12,3 +15,12 @@ pub enum ExecuteMsg {}
#[cw_serde]
#[derive(QueryResponses)]
pub enum QueryMsg {}

/// # StoreLimits
/// Contains limitations regarding store usages.
#[cw_serde]
pub struct StoreLimits {
/// max_triple_count denotes the maximum number of triples the store can contains.
/// If None, there is no limit on the number of triples.
pub max_triple_count: Option<Uint128>,
}

0 comments on commit 1edacf6

Please sign in to comment.