Contract ee003d395f9508ae4b8c073d409056f5b245f52a2918bd1724b0a081ce1bf420

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.93.1

Instances

  • CA3ACXS5Z2UMWJL57NJ3GU6OCMACQVML3F26AWXPLNV26KRBXBAHNOYC
  • CA56PSE3YFL2NITZHQBXIHSOXGPWLTPBZFFRWX6AB6HLK5YIYWLEN2RO
  • CAE4GRM7VMXO353RDISPUINEOE3VFLKNBBD3BZ2BHCUZSBLJIWJZB3QQ
  • CB7XH7ZE2GKD6TPMB5SRC3RXDCSTFAPJ7RHBCD2NHNETXWQTRAUYN3SB
  • CBBSYDFAM5V2YRNOBKFIHAMW7AR2F6VEWPL5UPYKGKDOLPDKPWGY4TJF
  • CBSBL2ZGPV2NBLL2SLUGYYOTYHF5PIE5ZUPPYYVY7NCHY62JC6OAO2AY
  • CCPM3ARB367WYR3M2J4AJCHPWFI6SMCYYLULHOB3YCMRAXYAHU3TLVGU
  • CDMOVXOESQAOJOOSI4KOGKWWX2VEUUBVBXSA2A5GHZG5X4PX4Q66A5OO
  • CDSXODYDNIDH55LVMBASPM557KWBZYZPDY225HUKH7OZ2O74XUZ36D3Q
  • CDYQ3YHWDWRKB5XZBJDN7A63QXWYAYY65LLWQHTRAXZDLAQQS7TUQI7B

Interface

fn add_claim(
    env: soroban_sdk::Env,
    topic: u32,
    scheme: u32,
    issuer: soroban_sdk::Address,
    signature: soroban_sdk::Bytes,
    data: soroban_sdk::Bytes,
    uri: soroban_sdk::String,
) -> soroban_sdk::BytesN<32>
fn get_claim(env: soroban_sdk::Env, claim_id: soroban_sdk::BytesN<32>) -> Claim

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

Remove a claim by its ID.

fn remove_claim(env: soroban_sdk::Env, claim_id: soroban_sdk::BytesN<32>)
fn __constructor(
    env: soroban_sdk::Env,
    wallet: soroban_sdk::Address,
    token: soroban_sdk::Address,
    registry: soroban_sdk::Address,
    issuers: soroban_sdk::Address,
)

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)
fn get_claim_topics(env: soroban_sdk::Env) -> soroban_sdk::Vec
fn get_token_details(
    env: soroban_sdk::Env,
    wallet: soroban_sdk::Address,
    token: soroban_sdk::Address,
) -> TokenDetails

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,
)
fn get_identity_details(env: soroban_sdk::Env) -> IdentityDetails
fn get_claim_ids_by_topic(
    env: soroban_sdk::Env,
    topic: u32,
) -> soroban_sdk::Vec>

Imports

WebAssembly Text (WAT) ▶