#auction #traits #bid #open #module #id #block-number

no-std orml-auction

Auction module that implements Auction trait

16 releases (9 breaking)

new 0.10.0 Apr 17, 2024
0.8.0 Mar 18, 2024
0.6.7 Nov 21, 2023
0.4.0 Feb 14, 2021
0.1.1 Jun 5, 2020

#2825 in Magic Beans

Download history 2/week @ 2024-01-26 27/week @ 2024-02-16 66/week @ 2024-02-23 31/week @ 2024-03-01 9/week @ 2024-03-08 132/week @ 2024-03-15 16/week @ 2024-03-22 18/week @ 2024-03-29 201/week @ 2024-04-05

373 downloads per month

Apache-2.0 and GPL-3.0-only

91KB
2K SLoC

Auction module

Overview

Auction module provides a way to open auction and place bids on-chain. You can open an auction by specifying a start: BlockNumber and/or an end: BlockNumber, and when the auction becomes active enabling anyone to place a bid at a higher price. Trait AuctionHandler is been used to validate the bid and when the auction ends AuctionHandle::on_auction_ended(id, bid) gets called.


lib.rs:

Auction

Overview

This module provides a basic abstraction to implement on-chain auctioning feature.

The auction logic can be customized by implement and supplying AuctionHandler trait.

Dependencies

~20–34MB
~556K SLoC