You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Information on the auction being created.#[cfg_attr(feature = "std", derive(Serialize,Deserialize))]#[derive(Encode,Decode,Default,Clone,PartialEq,Eq,Debug)]pubstructAuctionRecord<BlockNumber:BaseArithmetic + Copy,Balance,MemberId:Ord>{pubstarting_price:Balance,pubbuy_now_price:Option<Balance>,/// Auction type (either english or open)pubauction_type:AuctionType<BlockNumber>,pubminimal_bid_step:Balance,publast_bid:Option<Bid<MemberId,BlockNumber,Balance>>,pubstarts_at:Option<BlockNumber>,pubwhitelist:Option<BTreeSet<MemberId>>,}
starting_price - a minimal price required for the first bid.
buy_now_price - price at what auction can be finished instantly. (optional)
auction_type - enum variant, representing different auction types, available to chose from.
minimal_bid_step - minimum delta between the next and previous bids.
last_bid - last bid details.
starts_at - block height, which is used to define a block at which auction begin to accept bids.
whitelist - a parameter, which constraints auction participant members to a given set (if set).
AuctionType
There are 2 types of auctions currently present in our system
Has a fixed round_time, set during auction initialization.
Each accepted bid resets auction round time to the baseline.
Auction completes either after the round_time expiration or at buy_now_price.
Open auction:
Each bid is locked for a fixed time interval, called bid lock duration.
After bid lock expires, bidder can unlock/revert his bid.
Auction completes either when auctioneer decides to "accept" a bid when he feels okay or at buy_now_price.
Auction Mode
/// Either new auction, which requires vNFT issance or auction for already existing nft.#[cfg_attr(feature = "std", derive(Serialize,Deserialize))]#[derive(Encode,Decode,Clone,PartialEq,Eq,Debug)]pubenumAuctionMode{// Auction, where nft issued at the endWithIssuance(Metadata),// Auction for already existing nftWithoutIsuance,}
Auction Mode is used to say whether we ran auction for the first time or it is an auction for already existing nft.
In case of the latter one, we also need to provide Metadata, which would be raised in the event during the nft issuance.
Initial vnft auction description and requirements for English auction can be found here #2481
The text was updated successfully, but these errors were encountered:
Auction
Runtime representation
starting_price
- a minimal price required for the first bid.buy_now_price
- price at what auction can be finished instantly. (optional)auction_type
- enum variant, representing different auction types, available to chose from.minimal_bid_step
- minimum delta between the next and previous bids.last_bid
- last bid details.starts_at
- block height, which is used to define a block at which auction begin to accept bids.whitelist
- a parameter, which constraints auction participant members to a given set (if set).AuctionType
There are 2 types of auctions currently present in our system
English Auction:
round_time
, set during auction initialization.round_time
expiration or atbuy_now_price
.Open auction:
buy_now_price
.Auction Mode
Auction Mode is used to say whether we ran auction for the first time or it is an auction for already existing nft.
In case of the latter one, we also need to provide
Metadata
, which would be raised in the event during the nft issuance.Initial vnft auction description and requirements for
English
auction can be found here #2481The text was updated successfully, but these errors were encountered: