Contract ecfd4f75344738828399a905768e124c1292226aeceffe597b40a43295c8251f

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.93.0

Instances

  • CBOIQ3UUIPJRIUFEX6DI3FZ2LOELW74YJO3OC4KNEZD3YJNLDCKG33TQ

Interface

Admin-gated: whitelist address. Idempotent.

fn add(env: soroban_sdk::Env, address: soroban_sdk::Address)
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address

Admin-gated: remove address from whitelist. Idempotent.

fn remove(env: soroban_sdk::Env, address: soroban_sdk::Address)

Admin-gated: rotate admin to new_admin.

fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)

One-time initializer. admin is the ONLY key allowed to add/remove entries or rotate the admin itself.

fn initialize(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Returns true iff address is on the whitelist.

fn is_authorized(env: soroban_sdk::Env, address: soroban_sdk::Address) -> bool

Imports

WebAssembly Text (WAT) ▶