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