Re-exports§
pub use super::gov_type::GovernanceDetails;
pub use gov_ownable::GovAction;
Modules§
- This module used internally, for Nft Owners and could be removed at any point if cw721 will get upgraded to cosmwasm 2.0+
Structs§
- The contract’s ownership info
Enums§
- Errors associated with the contract’s ownership
Functions§
- Assert that an account is the contract’s current owner.
- Get the current ownership value.
- Set the given address as the contract owner.
- Return Ok(true) if the contract has an owner and it’s the given address. Return Ok(false) if the contract doesn’t have an owner, of if it does but it’s not the given address. Return Err if fails to load ownership info from storage.
- Update the contract’s ownership info based on the given action. Return the updated ownership.