Claim a pending claimable balance. Transfers escrowed tokens to claimant.
fn claim_b(env: soroban_sdk::Env, balance_id: soroban_sdk::BytesN<32>)
Admin-only: upgrade the contract WASM.
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
Create a claimable balance. The source lockb0x authorizes this call (triggering __check_auth with LBXCTXV2 domain).
Returns the generated balance_id.
fn create_b(
env: soroban_sdk::Env,
source: soroban_sdk::Address,
claimant: soroban_sdk::Address,
amount: i128,
expiry_ledger: u32,
) -> soroban_sdk::BytesN<32>
Expire a claimable balance after expiry_ledger has passed. Returns tokens to the original source.
fn expire_b(env: soroban_sdk::Env, balance_id: soroban_sdk::BytesN<32>)
Query a specific balance record by ID.
fn get_balance(
env: soroban_sdk::Env,
balance_id: soroban_sdk::BytesN<32>,
) -> ClaimableBalance
Query pending balance IDs for a given claimant.
fn list_pending(
env: soroban_sdk::Env,
claimant: soroban_sdk::Address,
) -> soroban_sdk::Vec>
Atomically initialize the escrow with an admin and SAC token contract.
fn __constructor(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
token: soroban_sdk::Address,
)
Query configured denomination tiers.
fn get_denominations(env: soroban_sdk::Env) -> soroban_sdk::Vec
Admin-only: set allowed denomination tiers (stroops). Pass an empty Vec to disable denomination enforcement.
fn set_denominations(env: soroban_sdk::Env, tiers: soroban_sdk::Vec)