Contract 6b68f892478040ce59cccb1d6a7b145d66e55a601f1e38b42215879d93d61349

← Back to Index 📥 Download WASM

Meta

cliver 28.0.0#300aaf69ab100536678bdb641428b06f06b318ea
rssdk_spec_shaking 2
rssdkver 27.0.2#45d378a6cb4a026d23fc7286b6ee3add9c9dd0b9
rsver 1.98.1

Instances

  • CAAFYDCDWHMBQHKUHO5W6DTP35SC5ON6UHYOXQGO4C5HE5P6LATR4Y76
  • CBCOMUS4EWE34B5S36R4GVPPF64HIUYGGH5Z4EMYYNGMLF2BV2FTXEQS
  • CDAI2AIMVQDPDZQ6KDU6C2XIKB2L43JKXL4T4H7CTC2YAE24JVFDA5FW
  • CDYJRXO2XQJIQGFXPRVMA7W7WCKO6ERD6GZRWP667DJPLAZG5ASJK3JV

Interface

fn allow_key(
    env: soroban_sdk::Env,
    public_key: soroban_sdk::Bytes,
    registry: soroban_sdk::Address,
    claim_topic: u32,
)

Returns Some(Address) if ownership is set, or None if ownership has been renounced.

Arguments

  • e - Access to the Soroban environment.
fn get_owner(env: soroban_sdk::Env) -> Option
fn remove_key(
    env: soroban_sdk::Env,
    public_key: soroban_sdk::Bytes,
    registry: soroban_sdk::Address,
    claim_topic: u32,
)
fn __constructor(env: soroban_sdk::Env, owner: soroban_sdk::Address)
fn is_claim_valid(
    env: soroban_sdk::Env,
    identity: soroban_sdk::Address,
    claim_topic: u32,
    scheme: u32,
    sig_data: soroban_sdk::Bytes,
    claim_data: soroban_sdk::Bytes,
)
fn is_key_allowed(
    env: soroban_sdk::Env,
    public_key: soroban_sdk::Bytes,
    registry: soroban_sdk::Address,
    claim_topic: u32,
) -> bool

Accepts a pending ownership transfer.

Arguments

  • e - Access to the Soroban environment.

Errors

  • [crate::role_transfer::RoleTransferError::NoPendingTransfer] - If there is no pending transfer to accept.

Events

  • topics - ["ownership_transfer_completed"]
  • data - [new_owner: Address]
fn accept_ownership(env: soroban_sdk::Env)

Renounces ownership of the contract.

Permanently removes the owner, disabling all functions gated by #[only_owner].

Arguments

  • e - Access to the Soroban environment.

Errors

  • [OwnableError::TransferInProgress] - If there is a pending ownership transfer.
  • [OwnableError::OwnerNotSet] - If the owner is not set.

Notes

  • Authorization for the current owner is required.
fn renounce_ownership(env: soroban_sdk::Env)

Initiates a 2-step ownership transfer to a new address.

Requires authorization from the current owner. The new owner must later call accept_ownership() to complete the transfer.

Arguments

  • e - Access to the Soroban environment.
  • new_owner - The proposed new owner.
  • live_until_ledger - Ledger number until which the new owner can accept. A value of 0 cancels any pending transfer.

Errors

  • [OwnableError::OwnerNotSet] - If the owner is not set.
  • [crate::role_transfer::RoleTransferError::NoPendingTransfer] - If trying to cancel a transfer that doesn't exist.
  • [crate::role_transfer::RoleTransferError::InvalidLiveUntilLedger] - If the specified ledger is in the past.
  • [crate::role_transfer::RoleTransferError::InvalidPendingAccount] - If the specified pending account is not the same as the provided new address.

Notes

  • Authorization for the current owner is required.
fn transfer_ownership(
    env: soroban_sdk::Env,
    new_owner: soroban_sdk::Address,
    live_until_ledger: u32,
)

Imports

WebAssembly Text (WAT) ▶