Current admin.
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
Permissionless instance-TTL keep-alive (mirrors the router).
fn bump_ttl(env: soroban_sdk::Env)
Admin-gated withdraw of amount of token to to. The collector
holds tokens as a Soroban C-address SAC balance, so no trustline is
ever needed on this contract regardless of asset type.
fn withdraw(
env: soroban_sdk::Env,
token: soroban_sdk::Address,
amount: i128,
to: soroban_sdk::Address,
)
Admin-gated rotation. New admin takes over immediately.
fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)
One-shot init. Sets the admin who can withdraw and rotate.
fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)
Admin-gated batched withdraw. Each item is (token, amount, to).
Single admin.require_auth() covers the whole batch — the admin
signs once, and Soroban host atomicity ensures the entire batch
either commits or reverts together. Useful for sweeping many
accumulated assets to many destinations in one tx.
fn withdraw_batch(
env: soroban_sdk::Env,
items: soroban_sdk::Vec<(soroban_sdk::Address, i128, soroban_sdk::Address)>,
)