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

no-std orml-auction

Auction module that implements Auction trait

19 releases (1 stable)

1.0.0 Aug 1, 2024
0.13.0 Jun 26, 2024
0.12.0 Jun 3, 2024
0.8.0 Mar 18, 2024
0.1.1 Jun 5, 2020

#7 in #auction

Download history 224/week @ 2024-07-30 19/week @ 2024-09-10 8/week @ 2024-09-17 19/week @ 2024-09-24 10/week @ 2024-10-01

1,233 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
~565K SLoC