Re-exports§
pub use cancel_bid::*;pub use claim_bid::*;pub use create_auction::*;pub use create_auction_v2::*;pub use end_auction::*;pub use place_bid::*;pub use set_authority::*;pub use start_auction::*;
Modules§
- cancel_
bid - Cancels an existing bid. This only works in two cases:
- claim_
bid - Claim bid winnings into a target SPL account, only the authorised key can do this, though the target can be any SPL account.
- create_
auction - create_
auction_ v2 - end_
auction - place_
bid - Places a bid on a running auction, the logic here implements a standard English auction mechanism, once the auction starts, new bids can be made until 10 minutes has passed with no new bid. At this point the auction ends.
- set_
authority - Resets authority on an auction account.
- start_
auction
Structs§
- Auction
Data - Auction
Data Extended - Bid
- Bids associate a bidding key with an amount bid.
- Bidder
Metadata - Models a set of metadata for a bidder, meant to be stored in a PDA. This allows looking up information about a bidder regardless of if they have won, lost or cancelled.
- Bidder
Pot
Enums§
- Auction
State - Define valid auction state transitions.
- BidState
- BidState tracks the running state of an auction, each variant represents a different kind of auction being run.
- Price
Floor - Structure with pricing floor data.
- Winner
Limit