Contract 435836ec67d6ae80557ff606ee80f6178fbd30a3cc6fc79956b46c486d56ad6a

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 21.7.7#5da789c50b18a4c2be53394138212fed56f0dfc4
rsver 1.96.0

Instances

  • CBUC7OBYGSMRIHPARU4B77M4LSRPY5X7LSGOGYO3HZXH5RFAPP752CY5

Interface

Standard self-paid conversation ensure (or transparently fee-bumped).

fn ensure_conversation(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    user_a: soroban_sdk::Address,
    user_b: soroban_sdk::Address,
) -> soroban_sdk::BytesN<32>

Number of actions a sponsor has paid for through this contract.

fn get_sponsored_count(env: soroban_sdk::Env, sponsor: soroban_sdk::Address) -> u32
fn get_user_conversations(
    env: soroban_sdk::Env,
    user_addr: soroban_sdk::Address,
) -> soroban_sdk::Vec

Fee-sponsored ("gasless") conversation ensure.

Designed to ride inside a Stellar fee-bump transaction whose fee source is sponsor. The sponsor co-authorizes so the on-chain sponsorship tally is trustworthy; caller still authorizes the action itself.

fn ensure_conversation_sponsored(
    env: soroban_sdk::Env,
    sponsor: soroban_sdk::Address,
    caller: soroban_sdk::Address,
    user_a: soroban_sdk::Address,
    user_b: soroban_sdk::Address,
) -> soroban_sdk::BytesN<32>

Imports

WebAssembly Text (WAT) ▶