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
env - The Soroban environmentcurrent_owner - The current owner address (must be authenticated)new_owner - The address to transfer ownership toOk(()) - If ownership transfer is successfulErr(Error) - If not authorized or validation failsfn 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)
env - The Soroban environmentcurrent_owner - The current owner address (must be authenticated)Ok(()) - If ownership renunciation is successfulErr(Error) - If not authorizedThis 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
env - The Soroban environmentOk(Address) - The current owner addressErr(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
env - The Soroban environmentaddress - The address to checkbool - True if the address is the owner, false otherwisefn 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>