bankerNew
func() banker.Banker- OID
- 0f956c…3d1a:3
bankerNew details
require
func(cond bool, msg string)- OID
- 0f956c…3d1a:5
require details
ClaimAdmin
func()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.
- OID
- 0f956c…3d1a:6
ClaimAdmin details
SetArbiter
func(a .uverse.address)SetArbiter changes the dispute referee. Admin only.
- OID
- 0f956c…3d1a:7
SetArbiter details
WithdrawFees
func()WithdrawFees sends accrued platform fees to the admin. Admin only.
- OID
- 0f956c…3d1a:8
WithdrawFees details
List
func(kindStr string, value string, priceUgnot int64) intList creates a sell order for a domain, social handle or Gno handle. The asset is not verified yet; see VerificationCode and AttestVerified.
- OID
- 0f956c…3d1a:9
List details
VerificationCode
func(id int) stringVerificationCode 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.
- OID
- 0f956c…3d1a:10
VerificationCode details
AttestVerified
func(id int)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.
- OID
- 0f956c…3d1a:11
AttestVerified details
CancelListing
func(id int)CancelListing withdraws an open listing. Seller only, and only while no live escrow holds it.
- OID
- 0f956c…3d1a:12
CancelListing details
Buy
func(listingID int) intBuy 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.
- OID
- 0f956c…3d1a:13
Buy details
MakeOffer
func(listingID int) intMakeOffer 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.
- OID
- 0f956c…3d1a:14
MakeOffer details
CancelOffer
func(offerID int)CancelOffer withdraws an open offer and refunds the maker in full.
- OID
- 0f956c…3d1a:15
CancelOffer details
AcceptOffer
func(offerID int) intAcceptOffer 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.
- OID
- 0f956c…3d1a:16
AcceptOffer details
MarkTransferSubmitted
func(escrowID int)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.
- OID
- 0f956c…3d1a:17
MarkTransferSubmitted details
ConfirmReceived
func(escrowID int)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.
- OID
- 0f956c…3d1a:18
ConfirmReceived details
ClaimTimeoutRefund
func(escrowID int)ClaimTimeoutRefund returns the full locked amount to the buyer after RefundWindow has passed without the seller submitting a transfer.
- OID
- 0f956c…3d1a:19
ClaimTimeoutRefund details
OpenDispute
func(escrowID int, reason string)OpenDispute freezes a live trade for the arbiter. Either party may open one; the reason is stored on-chain.
- OID
- 0f956c…3d1a:20
OpenDispute details
ResolveDispute
func(escrowID int, paySeller bool)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.
- OID
- 0f956c…3d1a:21
ResolveDispute details
settle
func(e *cust0dy.Escrow)settle pays the seller and books the platform fee. The escrow state must already be terminal when this runs.
- OID
- 0f956c…3d1a:22
settle details
Render
func(path string) stringRender is the gnoweb entry point. Routes: "" order book, "l/\<id>" listing, "e/\<id>" deal room, "u/\<addr>" profile.
- OID
- 0f956c…3d1a:23
Render details
gnot
func(ugnot int64) string- OID
- 0f956c…3d1a:25
gnot details
kindBadge
func(k cust0dy_core.AssetKind) string- OID
- 0f956c…3d1a:26
kindBadge details
renderHome
func() string- OID
- 0f956c…3d1a:27
renderHome details
renderListing
func(l *cust0dy.Listing) string- OID
- 0f956c…3d1a:28
renderListing details
renderEscrow
func(e *cust0dy.Escrow) string- OID
- 0f956c…3d1a:29
renderEscrow details
renderProfile
func(addr string) string- OID
- 0f956c…3d1a:30
renderProfile details
collectOpenListings
func() []*cust0dy.Listing- OID
- 0f956c…3d1a:31
collectOpenListings details
shortAddr
func(a string) string- OID
- 0f956c…3d1a:32
shortAddr details
RefundWindow
time.DurationRefundWindow 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.
Value
<zero>
Listing
typeListing is one sell-side order.
Value
cust0dy.Listing
Offer
typeOffer is one buy-side order. The offered amount is locked at creation.
Value
cust0dy.Offer
Escrow
typeEscrow is one live trade.
Value
cust0dy.Escrow
listings
v0.Tree// strconv id -> \*Listing
- OID
- 0f956c…3d1a:34
listings details
offers
v0.Tree// strconv id -> \*Offer
- OID
- 0f956c…3d1a:36
offers details
escrows
v0.Tree// strconv id -> \*Escrow
- OID
- 0f956c…3d1a:38
escrows details
listingSeq
intValue
3
offerSeq
intValue
0
escrowSeq
intValue
1
admin
.uverse.address// marketplace operator; claims once, see ClaimAdmin
Value
<gnolang.StringValue>
arbiter
.uverse.address// dispute referee; set by admin
Value
<gnolang.StringValue>
feesUgnot
int64// total platform fees accrued (coins sit in the realm balance)
Value
1875000
mustUserCall
func()- OID
- 0f956c…3d1a:45
mustUserCall details
mustAdmin
func()- OID
- 0f956c…3d1a:47
mustAdmin details
mustArbiter
func()- OID
- 0f956c…3d1a:48
mustArbiter details
getListing
func(id int) *cust0dy.Listing- OID
- 0f956c…3d1a:49
getListing details
getOffer
func(id int) *cust0dy.Offer- OID
- 0f956c…3d1a:50
getOffer details
getEscrow
func(id int) *cust0dy.Escrow- OID
- 0f956c…3d1a:51
getEscrow details
send
func(to .uverse.address, ugnot int64)send moves coins out of the realm balance. Only callable after the state transition has already been recorded by the caller.
- OID
- 0f956c…3d1a:52
send details
ListingCount
func() intListingCount returns the number of listings ever created.
- OID
- 0f956c…3d1a:53
ListingCount details
EscrowCount
func() intEscrowCount returns the number of escrows ever created.
- OID
- 0f956c…3d1a:54
EscrowCount details
GetListing
func(id int) cust0dy.ListingGetListing returns one listing by id.
- OID
- 0f956c…3d1a:55
GetListing details
GetEscrow
func(id int) cust0dy.EscrowGetEscrow returns one escrow by id.
- OID
- 0f956c…3d1a:56
GetEscrow details
AccruedFees
func() int64AccruedFees returns the total platform fees collected, in ugnot.
- OID
- 0f956c…3d1a:57
AccruedFees details
Arbiter
func() .uverse.address- OID
- 0f956c…3d1a:58
Arbiter details
Admin
func() .uverse.address- OID
- 0f956c…3d1a:59