cw_controllers/
lib.rs

1/*!
2This is a collection of "controllers" that we end up reimplementing in
3many contracts. I use the word "controller" similar to the MVC framework
4style, where it is an element that encapsulated business logic and data access.
5We can also directly handle some `ExecuteMsg` and `QueryMsg` variants by
6adding a sub-router to these controllers.
7
8This is the beginning of an experiment in code composition, and how best to
9reuse code among multiple contracts. We have already seen some "extend" and
10existing base contract (like `cw20-staking` extends `cw20-base`), but this
11goes for smaller scale units.
12
13Supported controllers:
14
15* Admin (`UpdateAdmin` handler, `Admin` querier, set_admin and is_admin methods)
16*/
17mod admin;
18mod claim;
19mod hooks;
20
21pub use admin::{Admin, AdminError, AdminResponse};
22pub use claim::{Claim, Claims, ClaimsResponse};
23pub use hooks::{HookError, Hooks, HooksResponse};