CW Ownable
Utility for controlling ownership of CosmWasm smart contracts.
How to use
Use the #[cw_ownable] macro to define your execute message:
use cw_serde;
use ;
The macro inserts a new variant, UpdateOwnership to the enum:
Where Action can be one of three:
- Propose to transfer the contract's ownership to another account
- Accept the proposed ownership transfer
- Renounce the ownership, permanently setting the contract's owner to vacant
Handle the messages using the update_ownership function provided by this crate:
use ;
use ;
License
Contents of this crate are open source under GNU Affero General Public License v3 or later.