Smart Contracts

Coston2 Testnet (Chain ID 114)

KatangaMarket

0x2c87D6ce66764AD63446b75DE580B2f8Aa0dD64a

Supplier registration, listing CRUD, category index, negotiation, premium staking, rate limiting.

registerSupplier(metadataURI)

Register as supplier with FLR stake

payable
createListing(categoryHash, priceUSD, metadataURI, regions, days)

Create a product listing

write
updateListing(id, priceUSD, metadataURI, regions, days)

Update listing details

write
deactivateListing(id)

Mark listing inactive

write
createIntent(listingId, proposedPrice)

Buyer proposes a price

write
counterIntent(intentId, counterPrice)

Supplier counters

write
acceptIntent(intentId)

Accept negotiated price

write
stakeListing(listingId)

Boost listing with FLR stake

payable
deregisterSupplier()

Exit protocol, reclaim stake

write
getListing(id)

Read listing data

view
getListingsByCategory(hash, offset, limit)

Query by category

view
getSupplier(address)

Read supplier data

view

KatangaEscrow

0x5a1BEB6425f700d0E3d02F9b6Ba954E1c7782250

Payment lock/release, full lifecycle, disputes, timeout, partial refunds.

createEscrow(listingId, qty, shippingHash, token, amount)

Lock payment for purchase

write
acceptOrder(escrowId)

Supplier accepts order

write
markShipped(escrowId, trackingHash)

Mark order as shipped

write
confirmDelivery(escrowId)

Buyer confirms, releases funds

write
cancelOrder(escrowId)

Cancel before acceptance

write
openDispute(escrowId, reason)

Buyer disputes within 7 days

write
resolveDispute(escrowId, buyerWins)

Owner resolves dispute

write
partialRefund(escrowId, buyerPct)

Split funds by percentage

write
claimTimeout(escrowId)

Auto-release after 14 days

write

KatangaReputation

0x8ec32486dD83bc4AE8eBdEd57CC4B3DC4f1a6cC5

On-chain reputation scoring, volume tiers, escrow-only write access.

getScore(supplier)

Full score data (orders, disputes, volume)

view
getReputationScore(supplier)

Score 0-100

view
recordCompletion(supplier, value)

Escrow-only: record completed order

write
recordDispute(supplier)

Escrow-only: record dispute

write