Contract a8f955030b0edf7d1ffb09d0d4a41844fde81e4014a709e6c5815c61023975b4

← Back to Index 📥 Download WASM

Meta

rssdkver 20.5.0#9e2c3022b4355b224a7a814e13ba51761eeb14bb
rsver 1.96.1

Interface

List a new marketplace item (restricted to listing creator)

fn list_item(
    env: soroban_sdk::Env,
    creator: soroban_sdk::Address,
    item_id: u64,
    price: i128,
    token_contract: soroban_sdk::Address,
)

Initialize the marketplace admin and fee address

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

Buy an item. Splits purchase price: 90% to creator, 10% platform fee.

fn purchase_item(env: soroban_sdk::Env, buyer: soroban_sdk::Address, item_id: u64)

Imports

WebAssembly Text (WAT) ▶