diff --git a/src/arns.lua b/src/arns.lua index 4abfac7..6da01c3 100644 --- a/src/arns.lua +++ b/src/arns.lua @@ -533,10 +533,15 @@ function arns.createAuction(name, timestamp, initiator) return auction end +--- Gets an auction by name +--- @param name string The name of the auction +--- @return Auction|nil The auction instance function arns.getAuction(name) return NameRegistry.auctions[name] end +--- Gets all auctions +--- @return table The auctions function arns.getAuctions() return NameRegistry.auctions or {} end diff --git a/src/auctions.lua b/src/auctions.lua index 9794f60..21057d8 100644 --- a/src/auctions.lua +++ b/src/auctions.lua @@ -18,6 +18,10 @@ AuctionSettings = { --- @field startTimestamp number The starting timestamp for the auction --- @field endTimestamp number The ending timestamp for the auction --- @field registrationFeeCalculator function Function to calculate registration fee +--- @field computePricesForAuction function Function to compute prices for the auction +--- @field getPriceForAuctionAtTimestamp function Function to get the price for the auction at a given timestamp +--- @field startPrice function Function to get the start price for the auction +--- @field floorPrice function Function to get the floor price for the auction --- Creates a new Auction instance --- @param name string The name of the auction