Contract 79831b8519c34d0217d66c12f2731a6cf56f64d0f78a6f5ddefc0b8d582dc3f7

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.95.0

Instances

  • CBTJ3BXTMTA2PQLRTSAZHEWQRTBMNHYCOKY5WOIYAH36LT4HTN63LTD4

Interface

View — full agent record.

fn get(
    env: soroban_sdk::Env,
    id: soroban_sdk::Symbol,
) -> Result

View — admin that deployed / holds emergency control.

fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address

View — all registered ids (capped: workspace agrees to bound registrations).

fn list_ids(env: soroban_sdk::Env) -> soroban_sdk::Vec

View — owner address (used by PaymentEscrow.charge to resolve payout).

fn owner_of(
    env: soroban_sdk::Env,
    id: soroban_sdk::Symbol,
) -> Result

Register a new agent. Owner-signed. Fails if id already exists.

fn register(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    id: soroban_sdk::Symbol,
    name: soroban_sdk::String,
    skills: soroban_sdk::Vec,
    price: i128,
) -> Result<(), soroban_sdk::Error>

Activate / deactivate. Owner-signed.

fn set_active(
    env: soroban_sdk::Env,
    id: soroban_sdk::Symbol,
    active: bool,
) -> Result<(), soroban_sdk::Error>

Update per-call price. Must be signed by the current owner.

fn update_price(
    env: soroban_sdk::Env,
    id: soroban_sdk::Symbol,
    new_price: i128,
) -> Result<(), soroban_sdk::Error>

One-shot constructor set by Soroban at deploy time.

fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶