Register the WordScrambleContract address as the only authorized badge minter.
fn init(env: soroban_sdk::Env, admin: soroban_sdk::Address)
Check whether a player holds a specific badge.
fn has_badge(
env: soroban_sdk::Env,
player: soroban_sdk::Address,
badge: soroban_sdk::Symbol,
) -> bool
Return all badges earned by a player.
fn get_badges(
env: soroban_sdk::Env,
player: soroban_sdk::Address,
) -> soroban_sdk::Vec
Mint a badge for a player. Only callable by the registered WordScrambleContract
(the address passed to init) — calling this directly as any other caller panics,
since a contract Address's require_auth() only succeeds when that contract is
the direct invoker of the current call, with no signature involved.
fn mint_badge(
env: soroban_sdk::Env,
player: soroban_sdk::Address,
badge: soroban_sdk::Symbol,
) -> bool