Execute a tip and emit a TipExecuted event.
fn tip(
env: soroban_sdk::Env,
sender: soroban_sdk::Address,
recipient: soroban_sdk::Address,
amount: i128,
fee: i128,
)
One-time initialisation. Must be called by the deployer before any tips.
fn initialize(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
shx_contract: soroban_sdk::Address,
treasury: soroban_sdk::Address,
)
Read the contract version.
fn get_version(env: soroban_sdk::Env) -> u32
Read the current treasury address.
fn get_treasury(env: soroban_sdk::Env) -> soroban_sdk::Address
Admin-only: update the treasury address.
fn set_treasury(env: soroban_sdk::Env, new_treasury: soroban_sdk::Address)
Claim a withdrawal from the House Account into the user's wallet. This requires a valid Ed25519 signature from the bot (admin_pubkey).
fn claim_withdrawal(
env: soroban_sdk::Env,
user: soroban_sdk::Address,
amount: i128,
nonce: u64,
signature: soroban_sdk::BytesN<64>,
)
Set the raw Ed25519 public key of the bot (for withdrawal signatures).
fn set_admin_pubkey(env: soroban_sdk::Env, pubkey: soroban_sdk::BytesN<32>)