fn __constructor(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
identity_registry: soroban_sdk::Address,
)
fn give_feedback(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
agent_id: u32,
value: i128,
value_decimals: u32,
tag1: soroban_sdk::String,
tag2: soroban_sdk::String,
endpoint: soroban_sdk::String,
feedback_uri: soroban_sdk::String,
feedback_hash: soroban_sdk::BytesN<32>,
) -> Result<(), ReputationError>
fn revoke_feedback(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
agent_id: u32,
feedback_index: u64,
) -> Result<(), ReputationError>
Callable by anyone.
fn append_response(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
agent_id: u32,
client_address: soroban_sdk::Address,
feedback_index: u64,
response_uri: soroban_sdk::String,
response_hash: soroban_sdk::BytesN<32>,
) -> Result<(), ReputationError>
fn read_feedback(
env: soroban_sdk::Env,
agent_id: u32,
client_address: soroban_sdk::Address,
feedback_index: u64,
) -> Result
WAD-normalized average for given clients. Rejects empty client list. i128 WAD overflow at |value| > ~1.7e20 with decimals=0 returns AggregateOverflow.
fn get_summary(
env: soroban_sdk::Env,
agent_id: u32,
client_addresses: soroban_sdk::Vec,
tag1: soroban_sdk::String,
tag2: soroban_sdk::String,
) -> Result
fn get_clients_paginated(
env: soroban_sdk::Env,
agent_id: u32,
start: u32,
limit: u32,
) -> soroban_sdk::Vec
fn get_last_index(
env: soroban_sdk::Env,
agent_id: u32,
client_address: soroban_sdk::Address,
) -> u64
fn get_response_count(
env: soroban_sdk::Env,
agent_id: u32,
client_address: soroban_sdk::Address,
feedback_index: u64,
) -> u32
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<(), ReputationError>
fn cancel_upgrade(env: soroban_sdk::Env) -> Result<(), ReputationError>
fn execute_upgrade(env: soroban_sdk::Env) -> Result<(), ReputationError>
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.
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.
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.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.fn transfer_ownership(
env: soroban_sdk::Env,
new_owner: soroban_sdk::Address,
live_until_ledger: u32,
)
Accepts a pending ownership transfer.
e - Access to the Soroban environment.crate::role_transfer::RoleTransferError::NoPendingTransfer] - If
there is no pending transfer to accept.["ownership_transfer_completed"][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].
e - Access to the Soroban environment.OwnableError::TransferInProgress] - If there is a pending ownership
transfer.OwnableError::OwnerNotSet] - If the owner is not set.fn renounce_ownership(env: soroban_sdk::Env)