Contract 0921f2a998a1c89dfa87d07dd6d46f7221a9131ad7457820f3082b7c556528e7

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.8#f46e9e0610213bbb72285566f9dd960ff96d03d8
rsver 1.89.0

Instances

  • CABZIIVMGDPTUS6LKIB4RHVGOXMEG2TRUXSQP4KB36VHU42OEI2T2QWM

Interface

Constructor - Initialize the contract with an admin address

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

Add an address to the whitelist

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

Remove an address from the whitelist

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

Check if an address is whitelisted

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

Get all whitelisted addresses

fn get_whitelist(env: soroban_sdk::Env) -> soroban_sdk::Vec

Add multiple addresses to the whitelist at once

fn add_addresses(
    env: soroban_sdk::Env,
    addresses: soroban_sdk::Vec,
)

Remove multiple addresses from the whitelist at once

fn remove_addresses(
    env: soroban_sdk::Env,
    addresses: soroban_sdk::Vec,
)

Imports

WebAssembly Text (WAT) ▶