abstract_cw1/lib.rs
1/*!
2CW1 is a specification for proxy contracts based on CosmWasm.
3It is a very simple, but flexible interface designed for the case
4where one contract is meant to hold assets (or rights) on behalf of
5other contracts.
6
7The simplest example is a contract that will accept messages from
8the creator and resend them from its address. Simply by making this
9transferable, you can then begin to transfer non-transferable assets
10(eg. staked tokens, voting power, etc).
11
12You can imagine more complex examples, such as a "1 of N" multisig,
13or conditional approval, where "sub-accounts" have the right to spend
14a limited amount of funds from this account, with a "admin account"
15retaining full control.
16
17The common denominator is that they allow you to immediately
18execute arbitrary `CosmosMsg` in the same transaction.
19
20For more information on this specification, please check out the
21[README](https://github.com/CosmWasm/cw-plus/blob/main/packages/cw1/README.md).
22*/
23
24pub mod helpers;
25pub mod msg;
26pub mod query;
27
28pub use crate::helpers::Cw1Contract;
29pub use crate::msg::Cw1ExecuteMsg;
30pub use crate::query::{CanExecuteResponse, Cw1QueryMsg};