Denom
untyped stringDenom is the only asset this realm accepts.
Value
"ugnot"
MaxFeeBps
int64MaxFeeBps is the hard protocol-fee cap: 1000 bps = 10%. The fee applies only to the WINNER's payment at close, never to a refund.
Value
1000
AuctionOpen
untyped string// accepting bids until endHeight
Value
"open"
AuctionSettled
untyped string// closed WITH a winner; proceeds credited
Value
"settled"
AuctionClosed
untyped string// closed with NO bids; nothing to settle
Value
"closed"
AuctionCancelled
untyped string// seller cancelled before any bid
Value
"cancelled"
MinIncrementBps
int64MinIncrementBps is the minimum raise over the standing high bid: 500 = 5%. It stops penny-increment griefing without a per-auction knob.
Value
500
MinBid
int64Input bounds.
Value
1000
MaxBid
int64// 1,000,000 GNOT
Value
1000000000000
MinDuration
int64Input bounds.
Value
10
MaxDuration
int64Input bounds.
Value
7500000
MaxAntiSnipe
int64Input bounds.
Value
7500000
MaxLotLen
untyped bigintInput bounds.
Value
(200 <untyped> bigint)
MaxAuctionsPerSeller
untyped bigintInput bounds.
Value
(50 <untyped> bigint)
RenderLimit
untyped bigintInput bounds.
Value
(20 <untyped> bigint)
auction
typeValue
auction.auction
admin
.uverse.addressValue
<gnolang.StringValue>
pendingAdmin
.uverse.addressValue
<zero>
feeRecipient
.uverse.addressValue
<gnolang.StringValue>
feeBps
int64// snapshotted into NEW auctions
Value
0
self
.uverse.addressValue
<gnolang.StringValue>
nextID
int64Value
1
locked
int64// Σ current high bids of OPEN auctions (held, not yet claimable)
Value
0
auctions
*v0.Tree// padID(id) -> \*auction
- OID
- 0566b8…549a:11
auctions details
sellerNum
*v0.Tree// seller.String() -> \*int64, stored auctions
- OID
- 0566b8…549a:14
sellerNum details
ledger
*feeledger.Ledger- OID
- 0566b8…549a:17
ledger details
init.26
func()- OID
- 0566b8…549a:21
init.26 details
CreateAuction
func(lot string, reserve int64, durationBlocks int64, antiSnipe int64) int64CreateAuction lists a lot for ascending-bid sale. The caller becomes the seller. \`reserve\` is 0 (no reserve) or a floor in \[MinBid, MaxBid] the first bid must meet; the auction runs for \`durationBlocks\` blocks; a bid landing within \`antiSnipe\` blocks of the end extends the end to now+antiSnipe (0 disables). The current protocol fee is snapshotted in. Returns the id.
- OID
- 0566b8…549a:23
CreateAuction details
Cancel
func(auctionID int64)Cancel withdraws an auction that has not yet received a bid. Seller only. Once any bid stands, the auction can only run to close — a seller cannot pull the lot out from under a committed bidder.
- OID
- 0566b8…549a:24
Cancel details
Bid
func(auctionID int64)Bid raises the standing high bid on an open auction. The caller attaches the bid; it must beat the current high bid by at least MinIncrementBps (or meet max(reserve, MinBid) if it is the first bid), and the auction must still be open and before its end. The previous high bidder's escrowed bid becomes a pull-claimable refund. A bid inside the anti-snipe window extends the end.
- OID
- 0566b8…549a:25
Bid details
Close
func(auctionID int64)Close finalizes an auction whose end height has passed. Anyone may call it; no auction's terminal state may depend on a party acting. With a winner, the high bid is credited to the seller (fee split at the ledger) and the auction is Settled; with no bids it is Closed. The winner's escrowed payment moves from \`locked\` into the seller's claimable balance.
- OID
- 0566b8…549a:26
Close details
Claim
func(amount int64)Claim sends amount ugnot of the caller's claimable balance — outbid refunds and, if the caller is a seller of a settled auction, proceeds — to the caller.
- OID
- 0566b8…549a:27
Claim details
ClaimAll
func()ClaimAll sends the caller's entire claimable balance to the caller.
- OID
- 0566b8…549a:28
ClaimAll details
SetFeeBps
func(bps int64)- OID
- 0566b8…549a:29
SetFeeBps details
SetFeeRecipient
func(recipient .uverse.address)- OID
- 0566b8…549a:30
SetFeeRecipient details
WithdrawFees
func()- OID
- 0566b8…549a:31
WithdrawFees details
SweepDenom
func(denom string)SweepDenom recovers out-of-band coins to the fee recipient. For the ledger denom the reserve is locked + Liabilities() — escrowed high bids, claimable refunds, seller proceeds and the fee pot are all structurally unreachable.
- OID
- 0566b8…549a:32
SweepDenom details
TransferAdmin
func(successor .uverse.address)- OID
- 0566b8…549a:33
TransferAdmin details
AcceptAdmin
func()- OID
- 0566b8…549a:34
AcceptAdmin details
AuctionInfo
func(auctionID int64) (seller .uverse.address, reserve int64, highBid int64, endHeight int64, antiSnipe int64, feeBps int64, createdHeight int64, highBidder .uverse.address, status string)AuctionInfo returns an auction's terms and standing state. Lot text is a separate view ([Lot](#Lot)) so this stays a numeric/address tuple.
- OID
- 0566b8…549a:35
AuctionInfo details
Lot
func(auctionID int64) stringLot returns the auction's free-text lot description.
- OID
- 0566b8…549a:36
Lot details
MinNextBid
func(auctionID int64) int64MinNextBid is the smallest bid that would be accepted right now: the first bid's floor when there are no bids, else the standing high bid plus the minimum increment.
- OID
- 0566b8…549a:37
MinNextBid details
HighBid
func(auctionID int64) int64HighBid is the standing high bid (0 if none).
- OID
- 0566b8…549a:38
HighBid details
HighBidder
func(auctionID int64) .uverse.address- OID
- 0566b8…549a:39
HighBidder details
Winner
func(auctionID int64) .uverse.address- OID
- 0566b8…549a:40
Winner details
EndHeight
func(auctionID int64) int64EndHeight is the current end height (which anti-snipe may have extended).
- OID
- 0566b8…549a:41
EndHeight details
Reserve
func(auctionID int64) int64Reserve is the auction's reserve price (0 if none).
- OID
- 0566b8…549a:42
Reserve details
Status
func(auctionID int64) stringStatus is the auction's status string.
- OID
- 0566b8…549a:43
Status details
Seller
func(auctionID int64) .uverse.address- OID
- 0566b8…549a:44
Seller details
IsOpen
func(auctionID int64) boolIsOpen reports whether the auction is open and still before its end.
- OID
- 0566b8…549a:45
IsOpen details
IsCloseable
func(auctionID int64) boolIsCloseable reports whether Close would succeed right now.
- OID
- 0566b8…549a:46
IsCloseable details
BlocksLeft
func(auctionID int64) int64BlocksLeft is how many blocks until the end (0 once ended).
- OID
- 0566b8…549a:47
BlocksLeft details
HasAuction
func(auctionID int64) bool- OID
- 0566b8…549a:48
HasAuction details
AuctionsOf
func(seller .uverse.address) int64- OID
- 0566b8…549a:49
AuctionsOf details
Admin
func() .uverse.address- OID
- 0566b8…549a:50
Admin details
PendingAdmin
func() .uverse.address- OID
- 0566b8…549a:51
PendingAdmin details
FeeRecipient
func() .uverse.address- OID
- 0566b8…549a:52
FeeRecipient details
FeeBps
func() int64- OID
- 0566b8…549a:53
FeeBps details
NumAuctions
func() int64- OID
- 0566b8…549a:54
NumAuctions details
ClaimableOf
func(a .uverse.address) int64- OID
- 0566b8…549a:55
ClaimableOf details
FeesAccrued
func() int64- OID
- 0566b8…549a:56
FeesAccrued details
Liabilities
func() int64- OID
- 0566b8…549a:57
Liabilities details
Locked
func() int64- OID
- 0566b8…549a:58
Locked details
Held
func() int64- OID
- 0566b8…549a:59
Held details
Address
func() .uverse.address- OID
- 0566b8…549a:60
Address details
Height
func() int64- OID
- 0566b8…549a:61
Height details
minNextBid
func(a *auction.auction) int64minNextBid is the smallest acceptable bid: the first-bid floor when no bid stands, else the high bid plus ceil(highBid·MinIncrementBps/10000). highBid is bounded by MaxBid, so the increment product cannot overflow.
- OID
- 0566b8…549a:62
minNextBid details
mustAuction
func(id int64) *auction.auction- OID
- 0566b8…549a:63
mustAuction details
assertNoSend
func()- OID
- 0566b8…549a:64
assertNoSend details
counter
func(tree *v0.Tree, a .uverse.address) *int64- OID
- 0566b8…549a:65
counter details
ceilDiv
func(a int64, b int64) int64ceilDiv returns ceil(a/b) for b>0; a assumed non-negative.
- OID
- 0566b8…549a:66
ceilDiv details
addChecked
func(a int64, b int64) (int64, bool)- OID
- 0566b8…549a:67
addChecked details
padID
func(id int64) string- OID
- 0566b8…549a:68
padID details
itoa
func(n int64) string- OID
- 0566b8…549a:69
itoa details
boolStr
func(b bool) string- OID
- 0566b8…549a:70
boolStr details
hasPrefix
func(s string, p string) bool- OID
- 0566b8…549a:71
hasPrefix details
Render
func(path string) string- OID
- 0566b8…549a:72
Render details
renderHome
func() string- OID
- 0566b8…549a:73
renderHome details
renderAuction
func(idStr string) string- OID
- 0566b8…549a:74
renderAuction details
highBidderStr
func(a *auction.auction) string- OID
- 0566b8…549a:75