func Bid
crossing ActionBid places a bid of `amount` on auction `id`. It must strictly exceed the current highest bid. The displaced highest bid becomes refundable to its bidder via Withdraw.
Package englishauction is an idiomatic gno.land port of the classic Solidity English (ascending-bid) auction. Anyone ...
Package englishauction is an idiomatic gno.land port of the classic Solidity English (ascending-bid) auction. Anyone can Start an auction for a named item with a duration in blocks; bidders call Bid with a strictly increasing amount. The previous highest bid becomes refundable (claim it with Withdraw). After the auction's end height anyone may call End, awarding the item to the highest bidder. Auctions and pending refunds live in ordered avl trees so Render can iterate deterministically.
Bid places a bid of `amount` on auction `id`. It must strictly exceed the current highest bid. The displaced highest bid becomes refundable to its bidder via Withdraw.
End closes auction `id` once its end height is reached, awarding the item to the highest bidder (if any). Anyone may call it.
Render lists every auction with item, top bid + bidder, time left, and winner.
Start opens a new auction for `item` running for `durationBlocks` blocks from the current height. The caller becomes the seller. Returns the auction id.
Withdraw refunds the caller's accumulated displaced bids for auction `id`. Returns the amount refunded (0 if nothing pending).