Contract d914a7c66ff4f0af73ef557cd53818fb339be1f70ad577eb40d1a074abbdc1db

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.94.1

Instances

  • CBGDLM4DCPDIOB6WEVTNYJUAMQH2OCF45TYC36ITEHK4GROIJDWQ5LG7

Interface

Registers a new TLD when called by the trusted factory contract.

fn add_tld(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
    contract: soroban_sdk::Address,
)

Returns the contract address responsible for a TLD.

fn get_tld(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
) -> Option

Upgrades the current contract to a new WASM hash.

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

Returns the user's name from the TLD they chose for global reverse resolution.

fn get_name(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
) -> Option

Returns the configured admin address.

fn get_admin(env: soroban_sdk::Env) -> soroban_sdk::Address

Initializes the contract and stores the admin address.

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

Removes a TLD when called by the admin.

fn remove_tld(env: soroban_sdk::Env, name: soroban_sdk::String)

Returns the address for a local name inside the requested TLD.

fn get_address(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
    tld: soroban_sdk::String,
) -> Option

Returns the configured factory contract, if present.

fn get_factory(env: soroban_sdk::Env) -> Option

Sets the factory contract allowed to register new TLDs.

fn set_factory(env: soroban_sdk::Env, factory: soroban_sdk::Address)

Returns the TLD assigned for the user's global resolution, if any.

fn get_global_tld(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
) -> Option

Sets the TLD the user chose for global resolution.

fn set_global_tld(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
    tld: soroban_sdk::String,
)

Removes the user's global TLD assignment.

fn clear_global_tld(env: soroban_sdk::Env, user: soroban_sdk::Address)

Returns the configured DAO treasury contract.

fn get_dao_treasury(env: soroban_sdk::Env) -> soroban_sdk::Address

Sets the DAO treasury contract that receives registration payments.

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

Returns the configured upper bound for user-facing record TTL choices.

fn get_max_record_ttl_ledgers(env: soroban_sdk::Env) -> u32

Updates the upper bound exposed to UI/API record TTL flows.

fn set_max_record_ttl_ledgers(env: soroban_sdk::Env, value: u32)

Returns the default TTL used by hot record write paths.

fn get_default_record_ttl_ledgers(env: soroban_sdk::Env) -> u32

Updates the default TTL used by hot record write paths.

fn set_default_record_ttl_ledgers(env: soroban_sdk::Env, value: u32)

Imports

WebAssembly Text (WAT) ▶