Smart Contracts
Coston2 Testnet (Chain ID 114)
KatangaMarket
0x2c87D6ce66764AD63446b75DE580B2f8Aa0dD64aSupplier registration, listing CRUD, category index, negotiation, premium staking, rate limiting.
registerSupplier(metadataURI)Register as supplier with FLR stake
createListing(categoryHash, priceUSD, metadataURI, regions, days)Create a product listing
updateListing(id, priceUSD, metadataURI, regions, days)Update listing details
deactivateListing(id)Mark listing inactive
createIntent(listingId, proposedPrice)Buyer proposes a price
counterIntent(intentId, counterPrice)Supplier counters
acceptIntent(intentId)Accept negotiated price
stakeListing(listingId)Boost listing with FLR stake
deregisterSupplier()Exit protocol, reclaim stake
getListing(id)Read listing data
getListingsByCategory(hash, offset, limit)Query by category
getSupplier(address)Read supplier data
KatangaEscrow
0x5a1BEB6425f700d0E3d02F9b6Ba954E1c7782250Payment lock/release, full lifecycle, disputes, timeout, partial refunds.
createEscrow(listingId, qty, shippingHash, token, amount)Lock payment for purchase
acceptOrder(escrowId)Supplier accepts order
markShipped(escrowId, trackingHash)Mark order as shipped
confirmDelivery(escrowId)Buyer confirms, releases funds
cancelOrder(escrowId)Cancel before acceptance
openDispute(escrowId, reason)Buyer disputes within 7 days
resolveDispute(escrowId, buyerWins)Owner resolves dispute
partialRefund(escrowId, buyerPct)Split funds by percentage
claimTimeout(escrowId)Auto-release after 14 days
KatangaReputation
0x8ec32486dD83bc4AE8eBdEd57CC4B3DC4f1a6cC5On-chain reputation scoring, volume tiers, escrow-only write access.
getScore(supplier)Full score data (orders, disputes, volume)
getReputationScore(supplier)Score 0-100
recordCompletion(supplier, value)Escrow-only: record completed order
recordDispute(supplier)Escrow-only: record dispute