Contract 327e197c58e2b10412d00a14580c2a8b64b297114f7e53c83b4563e0ec528b65

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.8#f46e9e0610213bbb72285566f9dd960ff96d03d8
rsver 1.88.0

Instances

  • CBKOB6XEEXYH5SEFQ4YSUEFJGYNBVISQBHQHVGCKB736A3JVGK7F77JG

Interface

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token_contract_id: soroban_sdk::Address,
    token_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>
fn admin_register_authority(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    auth_to_reg: soroban_sdk::Address,
    metadata: soroban_sdk::String,
) -> Result<(), soroban_sdk::Error>
fn register_authority(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    authority_to_reg: soroban_sdk::Address,
    metadata: soroban_sdk::String,
) -> Result<(), soroban_sdk::Error>
fn is_authority(
    env: soroban_sdk::Env,
    authority: soroban_sdk::Address,
) -> Result
fn attest(
    env: soroban_sdk::Env,
    attestation: Attestation,
) -> Result
fn revoke(
    env: soroban_sdk::Env,
    attestation: Attestation,
) -> Result
fn withdraw_levies(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Withdraw collected XLM fees for an authority

fn withdraw_fees(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn get_collected_levies(
    env: soroban_sdk::Env,
    authority: soroban_sdk::Address,
) -> Result

Get collected XLM fees for an authority

fn get_collected_fees(
    env: soroban_sdk::Env,
    authority: soroban_sdk::Address,
) -> Result
fn get_token_id(
    env: soroban_sdk::Env,
) -> Result
fn get_admin_address(
    env: soroban_sdk::Env,
) -> Result

Transfer ownership of the contract to a new address

Arguments

  • env - The Soroban environment
  • current_owner - The current owner address (must be authenticated)
  • new_owner - The address to transfer ownership to

Returns

  • Ok(()) - If ownership transfer is successful
  • Err(Error) - If not authorized or validation fails
fn transfer_ownership(
    env: soroban_sdk::Env,
    current_owner: soroban_sdk::Address,
    new_owner: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Renounce ownership of the contract (permanent action)

Arguments

  • env - The Soroban environment
  • current_owner - The current owner address (must be authenticated)

Returns

  • Ok(()) - If ownership renunciation is successful
  • Err(Error) - If not authorized

Warning

This is irreversible! After renouncing ownership, all admin functions become inaccessible.

fn renounce_ownership(
    env: soroban_sdk::Env,
    current_owner: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Get the current owner of the contract

Arguments

  • env - The Soroban environment

Returns

  • Ok(Address) - The current owner address
  • Err(Error) - If no owner is set (contract not initialized)
fn get_owner(env: soroban_sdk::Env) -> Result

Check if an address is the current owner

Arguments

  • env - The Soroban environment
  • address - The address to check

Returns

  • bool - True if the address is the owner, false otherwise
fn is_owner(env: soroban_sdk::Env, address: soroban_sdk::Address) -> bool

Pay verification fee to become eligible for authority registration

fn pay_verification_fee(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
    ref_id: soroban_sdk::String,
    token_address: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Check if an address has confirmed payment

fn has_confirmed_payment(env: soroban_sdk::Env, payer: soroban_sdk::Address) -> bool

Get payment record for an address

fn get_payment_record(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
) -> Option

Admin function to withdraw collected fees

fn admin_withdraw_fees(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token_address: soroban_sdk::Address,
    amount: i128,
) -> Result<(), soroban_sdk::Error>

Called before an attestation is created (resolver interface)

fn onattest(
    env: soroban_sdk::Env,
    attestation: ResolverAttestationData,
) -> Result

Called after an attestation is created (resolver interface)

fn onresolve(
    env: soroban_sdk::Env,
    attestation: ResolverAttestationData,
) -> Result<(), ResolverError>

Imports

WebAssembly Text (WAT) ▶