Contract a4dc568f446001660f9518ea9cf8f5668e6ca193588ff664f27510f28e5d5cf3

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.81.0

Instances

  • CANWMHXUV7WBZ2B742MUEIT2ZEUI6PZ6KJ74QUVWFPNONQPQ6YXMKN64

Interface

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    marketplace_contract_id: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn version(env: soroban_sdk::Env) -> u32
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn update_state(
    env: soroban_sdk::Env,
    state_key: soroban_sdk::Symbol,
    state_value: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn create_agreement(
    env: soroban_sdk::Env,
    listing_id: u64,
    user: soroban_sdk::Address,
    owner: soroban_sdk::Address,
    shares: u32,
    is_rental: bool,
    duration: u64,
) -> u64
fn get_agreement(
    env: soroban_sdk::Env,
    agreement_id: u64,
) -> Result
fn get_user_agreements(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
) -> soroban_sdk::Vec
fn get_listing_agreements(
    env: soroban_sdk::Env,
    listing_id: u64,
) -> soroban_sdk::Vec
fn get_agreement_status(
    env: soroban_sdk::Env,
    agreement_id: u64,
) -> Result
fn owner_fulfilled(
    env: soroban_sdk::Env,
    agreement_id: u64,
) -> Result
fn complete_agreement(
    env: soroban_sdk::Env,
    agreement_id: u64,
    user: soroban_sdk::Address,
) -> Result
fn terminate_agreement(
    env: soroban_sdk::Env,
    agreement_id: u64,
    terminator: soroban_sdk::Address,
) -> Result

Imports

WebAssembly Text (WAT) ▶