Module abstract_std::objects::ownership

source ·

Re-exports§

Modules§

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.