Contract 729d9ae9c76b19182fbaee83969e6628b24b021822c8b7c79555cfc388ca8cad

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.97.1

Instances

  • CCYLK7WTG3TCBYOEZEI75GQUWCYKZ3AKGLTAKUUSRDV534AVFYB36XQS

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)

Replace this contract's executable while preserving registry state.

fn upgrade(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    new_wasm_hash: soroban_sdk::BytesN<32>,
)

Admin-gated: rotate admin to new_admin.

fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)
fn get_beta_cap(env: soroban_sdk::Env) -> u32
fn set_beta_cap(env: soroban_sdk::Env, admin: soroban_sdk::Address, max_wallets: u32)

Returns true iff address is on the whitelist.

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

Atomically initializes the registry as part of contract deployment. admin is the only key allowed to mutate membership or rotate itself.

fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)
fn beta_wallet_count(env: soroban_sdk::Env) -> u32

Imports

WebAssembly Text (WAT) ▶