Contract ee61a0f889c3ef370901769581c1f7effff68275aa62a02a1a135fabe7b62229

← 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

  • CAEG6DC5MODN4NFEG4FU6JSLOU34SD2FWRUFZSL7MQBOKSVC77ML4JM6
  • CANPF6SRFFYJHUI4IWAR2LJAQP5LBSZSZSYE4Q6QCOQPELZOL3FRYXU6
  • CAT6D6PGVVYRXPD5MEBW2BW5HAMQ4YVMFALKD4SDJWJKRGIJJRURN6BY
  • CB225TORACXEQ5ELX4JZPCAAU3EKMJQGRLEMLOZWSUKVYXBGJLXOENTL
  • CBD5LLKZJFOC3H42Z5QCUNINRQA4FRPL3OKCLB7IYLMC72B4SN37BE6C
  • CBNCLVA2RYDRNEN7VHYECEL3UNDDCB4PDFRER5WIZ3P2BKTG7YPJ5WDD
  • CBZ76443PGTTARVIXRZZCEUFWD2QIWYQ3PXIIBNZYN3DGFRHEV5PYVCT
  • CCGROEBG7SIFHOYQSMXSIVDE4DVXQP73LPQAUA6GX2BVFLMY3R2CI4Y2
  • CDFJCRM6FX4JVNPZNFFCAAJ6QLPVOOJ5U63UIONP3SNETXS7DYH33RT3
  • CDWPRYRL7OUM7AHN6SZS7S2TLPRTNQLD7AAK4LEYHQHBDOPASAPDS7Q5

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>

Retrieves a claim by its ID.

Arguments

  • e - The Soroban environment.
  • claim_id - The unique claim identifier.

Errors

  • [ClaimsError::ClaimNotFound] - If the claim ID does not exist.
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
fn remove_claim(env: soroban_sdk::Env, claim_id: soroban_sdk::BytesN<32>)
fn __constructor(env: soroban_sdk::Env, owner: 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)

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,
)

Retrieves all claim IDs for a specific topic.

Arguments

  • e - The Soroban environment.
  • topic - The claim topic to filter by.
fn get_claim_ids_by_topic(
    env: soroban_sdk::Env,
    topic: u32,
) -> soroban_sdk::Vec>

Imports

WebAssembly Text (WAT) ▶