abstract_cw1/query.rs
1use schemars::JsonSchema;
2use std::fmt;
3
4use cosmwasm_schema::cw_serde;
5use cosmwasm_std::{CosmosMsg, Empty};
6
7#[cw_serde]
8pub enum Cw1QueryMsg<T = Empty>
9where
10 T: Clone + fmt::Debug + PartialEq + JsonSchema,
11{
12 /// Checks permissions of the caller on this proxy.
13 /// If CanExecute returns true then a call to `Execute` with the same message,
14 /// from the given sender, before any further state changes, should also succeed.
15 CanExecute { sender: String, msg: CosmosMsg<T> },
16}
17
18#[cw_serde]
19pub struct CanExecuteResponse {
20 pub can_execute: bool,
21}