Contract 3f88b09753a43291da62799db81a051fda10ce97e7a091ad8ace4da17c62c284

← Back to Index 📥 Download WASM

Meta

cliver 23.4.0#fc6745f3d4e90d1ef68d14d0ae947404768fa5c0
rssdkver 23.4.0#673d6c4f2368d282d25da29bda55c21b8be69ca6
rsver 1.89.0

Instances

  • CBUS33CAIMTV7T4M4G3FTH35QBAY6VWY3K4IZTYTRPD45ZDSQMSIZ2AB

Interface

fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    join_fee: u32,
    token: soroban_sdk::Address,
)
fn fund_contract(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    fund_amount: u32,
) -> i128
fn join(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    member: soroban_sdk::Address,
    name: soroban_sdk::String,
    canon: soroban_sdk::String,
)
fn withdraw(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
) -> Result
fn symbol(env: soroban_sdk::Env) -> soroban_sdk::Symbol
fn join_fee(env: soroban_sdk::Env) -> i128
fn member_paid(env: soroban_sdk::Env, caller: soroban_sdk::Address) -> u32

Get the canon for a member

Arguments

  • e - The environment
  • member_address - The address of the member to query

Returns

  • Option<String> - The member's canon if they exist, None otherwise
fn get_canon(
    env: soroban_sdk::Env,
    member_address: soroban_sdk::Address,
) -> Option
fn is_member(env: soroban_sdk::Env, caller: soroban_sdk::Address) -> bool
fn remove(
    env: soroban_sdk::Env,
    admin_caller: soroban_sdk::Address,
    member_to_remove: soroban_sdk::Address,
) -> bool

Update the canon for a member

Arguments

  • e - The environment
  • caller - The address of the member updating their canon (must be the member themselves or an admin)
  • member_address - The address of the member whose canon is being updated
  • new_canon - The new canon string (max 100 characters)

Returns

  • bool - True if the update was successful
fn update_canon(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    member_address: soroban_sdk::Address,
    new_canon: soroban_sdk::String,
) -> bool
fn update_join_fee(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_fee: u32,
) -> i128
fn add_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_admin: soroban_sdk::Address,
) -> bool
fn get_admin_list(env: soroban_sdk::Env) -> soroban_sdk::Vec
fn is_admin(env: soroban_sdk::Env, address: soroban_sdk::Address) -> bool
fn remove_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    admin_to_remove: soroban_sdk::Address,
) -> bool

Imports

WebAssembly Text (WAT) ▶