Contract 71ef41334c1255e5eaa7ce81cba83a654728adb97a8abedec83028e91cb844f0

← Back to Index 📥 Download WASM

Meta

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

Instances

  • CBXSWCN5EGTVFHA6R2X7PEIC4KPJMS3I6IY5COTOPQNDOAHQETEM6FWS

Interface

Stores a commit hash used by the commit-reveal user TLD registration flow.

fn commit(
    env: soroban_sdk::Env,
    hash: soroban_sdk::BytesN<32>,
    committer: soroban_sdk::Address,
)

Upgrades the current contract to a new WASM hash.

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

Deploys a new TLD contract, initializes it, and registers it in the root registry.

fn create_tld(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
    owner: soroban_sdk::Address,
    implementation_id: soroban_sdk::Symbol,
    deploy_salt: soroban_sdk::BytesN<32>,
) -> soroban_sdk::Address

Initializes factory dependencies and stores the admin.

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

Returns the configured user-created TLD price for the requested zone name.

fn get_tld_price(env: soroban_sdk::Env, name: soroban_sdk::String) -> i128

Deploys a paid user-created TLD after a valid commit and transfers the price.

fn create_tld_paid(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
    owner: soroban_sdk::Address,
    implementation_id: soroban_sdk::Symbol,
    deploy_salt: soroban_sdk::BytesN<32>,
    buyer: soroban_sdk::Address,
) -> soroban_sdk::Address

Computes the commit hash for a full TLD registration request.

fn get_commit_hash(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
    owner: soroban_sdk::Address,
    implementation_id: soroban_sdk::Symbol,
    deploy_salt: soroban_sdk::BytesN<32>,
    buyer: soroban_sdk::Address,
) -> soroban_sdk::BytesN<32>

Updates the payment token and all user-created TLD price buckets.

fn set_tld_pricing(
    env: soroban_sdk::Env,
    payment_token: soroban_sdk::Address,
    price_len_2: i128,
    price_len_3: i128,
    price_len_4: i128,
    price_len_5_plus: i128,
)

Updates the root registry dependency.

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

Returns the temporary-storage TTL applied to commit hashes, in ledgers.

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

Updates how long commit hashes are retained in temporary storage.

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

Updates the implementation registry dependency.

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

Imports

WebAssembly Text (WAT) ▶