const RefundWindow
RefundWindow is how long a buyer can pull an automatic refund while the seller has not submitted any transfer. After the seller submits, the exit paths are buyer confirmation or a dispute.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package cust0dy is the Cust0dy marketplace realm: a peer-to-peer order book and automated escrow engine for Web2 doma...
Package cust0dy is the Cust0dy marketplace realm: a peer-to-peer order book and automated escrow engine for Web2 domains, social handles and Gno handles. Coins lock in this realm at purchase time and move only on settlement, refund, or arbiter resolution.
Honesty note: the assets themselves move off-chain (a registrar push, a password handover). The realm holds the payment, records verification attestations, and gives both sides a referee (the arbiter) when they disagree. It cannot force the off-chain transfer itself.
RefundWindow is how long a buyer can pull an automatic refund while the seller has not submitted any transfer. After the seller submits, the exit paths are buyer confirmation or a dispute.
AcceptOffer lets the seller accept an open offer. The offer's locked coins become the escrow; the buyer fee is waived (offers are all-in) and only the 5% seller fee applies at settlement. Returns the escrow id.
AccruedFees returns the total platform fees collected, in ugnot.
AttestVerified marks a listing as ownership-verified. Only the arbiter (or admin) may attest, and only after an off-chain check, for example with verifier/dns_verify.py. The attestation is public and on the record.
Buy purchases a listing at full price. The buyer must attach exactly BuyerTotal(price) ugnot (price + 2.5% buyer fee). The coins lock in this realm until settlement. Returns the escrow id.
CancelListing withdraws an open listing. Seller only, and only while no live escrow holds it.
CancelOffer withdraws an open offer and refunds the maker in full.
ClaimAdmin makes the caller the marketplace operator, once. The deployer calls this right after deployment; afterwards it panics for everyone. The first admin also becomes the first arbiter.
ClaimTimeoutRefund returns the full locked amount to the buyer after RefundWindow has passed without the seller submitting a transfer.
ConfirmReceived settles the trade: the seller is paid the agreed price minus the 5% seller fee; the remainder of the locked coins is platform fee. Buyer only. Never confirm before the asset is actually in your control: confirming is final.
EscrowCount returns the number of escrows ever created.
List creates a sell order for a domain, social handle or Gno handle. The asset is not verified yet; see VerificationCode and AttestVerified.
ListingCount returns the number of listings ever created.
MakeOffer locks coins as a buy-side offer on a listing. Offers are all-in: no extra buyer fee is charged if the seller accepts. Attach the offered amount as ugnot. Returns the offer id.
MarkTransferSubmitted records that the seller has started the off-chain handover (registrar push, credential handover, ...). This stops the buyer's automatic refund window; from here the exits are buyer confirmation or a dispute.
OpenDispute freezes a live trade for the arbiter. Either party may open one; the reason is stored on-chain.
Render is the gnoweb entry point. Routes: "" order book, "l/<id>" listing, "e/<id>" deal room, "u/<addr>" profile.
ResolveDispute settles a disputed trade by arbiter decision: paySeller true pays the seller as on completion; false refunds the buyer in full. Every resolution is public on the record.
SetArbiter changes the dispute referee. Admin only.
VerificationCode is the string the seller must publish off-chain to prove control of the asset: a DNS TXT record for a domain, a bio/post code for a social or Gno handle. It binds the listing id and the seller address, so a code cannot be reused for someone else's listing.
WithdrawFees sends accrued platform fees to the admin. Admin only.
GetEscrow returns one escrow by id.
GetListing returns one listing by id.
Escrow is one live trade.
Listing is one sell-side order.
Offer is one buy-side order. The offered amount is locked at creation.