Contract b3db74ed9bc5ca2929553b92b9a7dbde914d2c29b0c89b25037ed62433c5e35c

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.97.1

Instances

  • CA67UUE4NO7EIBYQBBBFIEYCGIDV5XBNH5D6ZKEL7ELOGWPKDPW46Y6M

Interface

fn init(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    base_uri: soroban_sdk::String,
    pay_token: soroban_sdk::Address,
)
fn token_id(env: soroban_sdk::Env, tx: u64, ty: u64) -> Result
fn treasury(env: soroban_sdk::Env) -> i128

Entire treasury to the receiver. Zeroed before returning.

fn withdraw(env: soroban_sdk::Env) -> Result
fn mint_tile(
    env: soroban_sdk::Env,
    to: soroban_sdk::Address,
    tx: u64,
    ty: u64,
) -> Result

Primary sale. Pulls tile_price from the buyer into the contract, so the treasury figure is backed by real balance rather than a bare counter.

fn claim_tile(
    env: soroban_sdk::Env,
    buyer: soroban_sdk::Address,
    tx: u64,
    ty: u64,
) -> Result
fn tile_price(env: soroban_sdk::Env) -> i128
fn total_minted(env: soroban_sdk::Env) -> u64
fn market_fee_bps(env: soroban_sdk::Env) -> u32
fn set_tile_price(env: soroban_sdk::Env, price: i128)
fn set_market_fee_bps(
    env: soroban_sdk::Env,
    bps: u32,
) -> Result<(), soroban_sdk::Error>

Point payouts at a cold wallet without handing over admin rights.

fn set_treasury_receiver(env: soroban_sdk::Env, to: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶