abstract_cw1_whitelist/
lib.rs

1/*!
2This may be the simplest implementation of [CW1](https://github.com/CosmWasm/cw-plus/blob/main/packages/cw1/README.md), a whitelist of addresses.
3It contains a set of admins that are defined upon creation.
4Any of those admins may `Execute` any message via the contract,
5per the CW1 spec.
6
7To make this slighly less minimalistic, you can allow the admin set
8to be mutable or immutable. If it is mutable, then any admin may
9(a) change the admin set and (b) freeze it (making it immutable).
10
11While largely an example contract for CW1, this has various real-world use-cases,
12such as a common account that is shared among multiple trusted devices,
13or trading an entire account (used as 1 of 1 mutable). Most of the time,
14this can be used as a framework to build your own,
15more advanced cw1 implementations.
16
17For more information on this contract, please check out the
18[README](https://github.com/CosmWasm/cw-plus/blob/main/contracts/cw1-whitelist/README.md).
19*/
20
21pub mod contract;
22pub mod error;
23#[cfg(test)]
24mod integration_tests;
25pub mod msg;
26pub mod state;
27
28pub use crate::error::ContractError;