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>