Contract 9e5d7dc78ca00fc7c7afc914a0b3ecbcec61b4e7b1893a84bf47c3b811c68aa1

← Back to Index 📥 Download WASM

Meta

Description 8004 Validation Registry
Version 0.1.0
cliver 25.2.0#
rssdk_spec_shaking 2
rssdkver 25.3.0#dcbea44513feb7734af6b6c4aced2c4a7a2715d0
rsver 1.91.0-nightly

Instances

  • CBT6WWEVEPT2UFGFGVJJ7ELYGLQAGRYSVGDTGMCJTRWXOH27MWUO7UJG

Interface

fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    identity_registry: soroban_sdk::Address,
)
fn validation_request(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    validator_address: soroban_sdk::Address,
    agent_id: u32,
    request_uri: soroban_sdk::String,
    request_hash: soroban_sdk::BytesN<32>,
) -> Result<(), ValidationError>

Responses are updateable (progressive validation); only original validator can update.

fn validation_response(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    request_hash: soroban_sdk::BytesN<32>,
    response: u32,
    response_uri: soroban_sdk::String,
    response_hash: soroban_sdk::BytesN<32>,
    tag: soroban_sdk::String,
) -> Result<(), ValidationError>
fn get_validation_status(
    env: soroban_sdk::Env,
    request_hash: soroban_sdk::BytesN<32>,
) -> Result
fn request_exists(env: soroban_sdk::Env, request_hash: soroban_sdk::BytesN<32>) -> bool
fn get_summary(
    env: soroban_sdk::Env,
    agent_id: u32,
    validator_addresses: soroban_sdk::Vec,
    tag: soroban_sdk::String,
) -> ValidationSummary
fn get_agent_validations_paginated(
    env: soroban_sdk::Env,
    agent_id: u32,
    start: u32,
    limit: u32,
) -> soroban_sdk::Vec>
fn get_validator_requests_paginated(
    env: soroban_sdk::Env,
    validator_address: soroban_sdk::Address,
    start: u32,
    limit: u32,
) -> soroban_sdk::Vec>
fn get_identity_registry(env: soroban_sdk::Env) -> soroban_sdk::Address
fn extend_ttl(env: soroban_sdk::Env)
fn propose_upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), ValidationError>
fn cancel_upgrade(env: soroban_sdk::Env) -> Result<(), ValidationError>
fn execute_upgrade(env: soroban_sdk::Env) -> Result<(), ValidationError>
fn pending_upgrade(env: soroban_sdk::Env) -> Option
fn version(env: soroban_sdk::Env) -> soroban_sdk::String

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

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

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)

Imports

WebAssembly Text (WAT) ▶