1mod error;
2mod contract;
3pub mod msg;
4mod query;
5pub mod state;
6
7pub use crate::error::ContractError;
8pub use crate::msg::{ExecuteMsg, InstantiateMsg, MintMsg, MinterResponse, QueryMsg};
9pub use crate::state::AnoneCw721Contract;
10use cosmwasm_std::Empty;
11
12pub type Extension = Option<Empty>;
14
15#[cfg(not(feature = "library"))]
16pub mod entry {
17 use super::*;
18
19 use cosmwasm_std::entry_point;
20 use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
21
22 #[entry_point]
24 pub fn instantiate(
25 deps: DepsMut,
26 env: Env,
27 info: MessageInfo,
28 msg: InstantiateMsg,
29 ) -> Result<Response, ContractError> {
30 let tract = AnoneCw721Contract::<Extension, Empty>::default();
31 tract.instantiate(deps, env, info, msg)
32 }
33
34 #[entry_point]
35 pub fn execute(
36 deps: DepsMut,
37 env: Env,
38 info: MessageInfo,
39 msg: ExecuteMsg<Extension>,
40 ) -> Result<Response, ContractError> {
41 let tract = AnoneCw721Contract::<Extension, Empty>::default();
42 tract.execute(deps, env, info, msg)
43 }
44
45 #[entry_point]
46 pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult<Binary> {
47 let tract = AnoneCw721Contract::<Extension, Empty>::default();
48 tract.query(deps, env, msg)
49 }
50}
51
52