denom
untyped stringValue
"ugnot"
status
typeValue
v0.status
statusActive
v0.statusValue
<zero>
statusSold
v0.statusValue
<zero>
statusCancelled
v0.statusValue
<zero>
auction
typeauction is one listing: price falls linearly from StartPrice to FloorPrice over Duration blocks starting at StartHeight, then holds flat at FloorPrice until bought or cancelled.
Value
v0.auction
auctions
v0.Tree// id string -> \*auction
- OID
- 0ed89f…44dd:4
auctions details
nextID
uint64Value
0
totalListed
uint64Value
0
totalSold
uint64Value
0
totalVolume
int64Value
0
errEmptyItem
*errors.errorString- OID
- 0ed89f…44dd:10
errEmptyItem details
errBadPrice
*errors.errorString- OID
- 0ed89f…44dd:13
errBadPrice details
errBadDuration
*errors.errorString- OID
- 0ed89f…44dd:16
errBadDuration details
errNotFound
*errors.errorString- OID
- 0ed89f…44dd:19
errNotFound details
errNotActive
*errors.errorString- OID
- 0ed89f…44dd:22
errNotActive details
errNotSeller
*errors.errorString- OID
- 0ed89f…44dd:25
errNotSeller details
errNotUserCall
*errors.errorString- OID
- 0ed89f…44dd:28
errNotUserCall details
errUnderpaid
*errors.errorString- OID
- 0ed89f…44dd:31
errUnderpaid details
errSpoofedRealm
*errors.errorString- OID
- 0ed89f…44dd:34
errSpoofedRealm details
caller
func() .uverse.address- OID
- 0ed89f…44dd:36
caller details
List
func(item string, startPrice int64, floorPrice int64, durationBlocks int64) stringList creates a new Dutch auction for item, starting at startPrice ugnot and falling linearly to floorPrice over durationBlocks. Returns the new auction's ID. Crossing function.
- OID
- 0ed89f…44dd:38
List details
Buy
func(id string) int64Buy purchases auction id at its current price. The caller must send at least that many ugnot with the transaction; any excess is refunded immediately. Only a direct EOA transaction (MsgCall) may buy, so the payment envelope can't be spoofed via an ephemeral MsgRun realm. Returns the price actually paid. Crossing function.
- OID
- 0ed89f…44dd:39
Buy details
Cancel
func(id string)Cancel withdraws an active auction. Only the seller may cancel, and only before it's bought. Crossing function.
- OID
- 0ed89f…44dd:40
Cancel details
CurrentPrice
func(id string) int64CurrentPrice returns id's price at the current chain height.
- OID
- 0ed89f…44dd:41
CurrentPrice details
AuctionInfo
func(id string) (item string, seller .uverse.address, status string, currentPrice int64, floorPrice int64, startPrice int64)- OID
- 0ed89f…44dd:42
AuctionInfo details
priceAt
func(a *v0.auction, height int64) int64priceAt computes the linear-decay price of a at the given height. Once settled (sold or cancelled), the price is frozen: SoldPrice for a sale, zero for a cancellation.
- OID
- 0ed89f…44dd:43
priceAt details
getAuction
func(id string) *v0.auction- OID
- 0ed89f…44dd:44
getAuction details
Render
func(path string) stringRender produces the gnoweb Markdown view: a table of every auction, newest first, with live prices. Not a crossing function.
- OID
- 0ed89f…44dd:45