Contract 5b138f89254051734d90b94ffc37a44e363881cf8fd2647c373fe17b3c702dd9

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.96.0

Instances

  • CBE5TPNDEWJAH7BFXQODJ5BKOD4HB6U4ZCMWFTA4RCNXYTCEHL34TLUQ

Interface

Read the current on-chain state of a request.

fn get_request(env: soroban_sdk::Env, request_id: soroban_sdk::String) -> EscrowRequest

Titiper locks XLM into this contract. Requires Freighter signature from the titiper. Token is transferred: titiper → contract.

fn fund_request(
    env: soroban_sdk::Env,
    request_id: soroban_sdk::String,
    titiper: soroban_sdk::Address,
)

Runner registers an escrow request after approving the titiper's item. Locks in the terms: who pays, who receives, how much. Must be called by the runner before the titiper can fund.

fn create_request(
    env: soroban_sdk::Env,
    request_id: soroban_sdk::String,
    runner: soroban_sdk::Address,
    titiper: soroban_sdk::Address,
    token: soroban_sdk::Address,
    amount: i128,
)

Runner marks the item as unavailable (sold out, trip canceled, etc). Automatically refunds funds: contract → titiper. Only the runner can call this.

fn refund_request(
    env: soroban_sdk::Env,
    request_id: soroban_sdk::String,
    runner: soroban_sdk::Address,
) -> soroban_sdk::String

Titiper confirms they received the item. Automatically releases funds: contract → runner. Only the titiper can call this.

fn confirm_receipt(
    env: soroban_sdk::Env,
    request_id: soroban_sdk::String,
    titiper: soroban_sdk::Address,
) -> soroban_sdk::String

Imports

WebAssembly Text (WAT) ▶