abstract_std::objects

Module ownership

Source

Re-exports§

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§

Enums§

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.