over_time_test/
msg.rs

1use cosmwasm_schema::{cw_serde, QueryResponses};
2
3#[cw_serde]
4pub struct InstantiateMsg {
5    pub count: i32,
6}
7
8#[cw_serde]
9pub enum ExecuteMsg {
10    Increment {},
11    Reset { count: i32 },
12}
13
14#[cw_serde]
15#[derive(QueryResponses)]
16pub enum QueryMsg {
17    // GetCount returns the current count as a json-encoded number
18    #[returns(GetCountResponse)]
19    GetCount {},
20}
21
22// We define a custom struct for each query response
23#[cw_serde]
24pub struct GetCountResponse {
25    pub count: i32,
26}