Get the current admin address
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
Upgrade the contract to a new WASM. Only callable by admin.
new_wasm_hash - The hash of the new WASM to upgrade tofn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
Set a new admin address. Only callable by current admin.
fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)
Extend the contract's TTL (time-to-live) to prevent expiration. Anyone can call this to keep the contract alive.
fn extend_ttl(env: soroban_sdk::Env)
Initialize the contract with an admin address. Must be called once after deployment.
fn initialize(env: soroban_sdk::Env, admin: soroban_sdk::Address)
Transfer tokens from one address to multiple recipients in a single transaction.
token - The token contract address (e.g., KALE SAC)from - The sender address (must authorize this call)recipients - Vector of recipient addressesamounts - Vector of amounts (must match recipients length)The from address must authorize this contract call.
A single signature covers all transfers.
fn batch_transfer(
env: soroban_sdk::Env,
token: soroban_sdk::Address,
from: soroban_sdk::Address,
recipients: soroban_sdk::Vec,
amounts: soroban_sdk::Vec,
)