Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
The Nouns DAO auction house
copy icon
Nouns-DAO
• version 1.0.0
Finance
Utility
Auction

The Nouns DAO auction house

An open and permissionless system that allows any creator, community, platform or DAO to create and run their own curated auction houses

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Nouns-DAO

Recent Use

🍞 0x77CA downloaded
🥐 0x77CA saved
🥖 0x29b7 downloaded

Last Publish

10/17/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
initialize(address,uint256,uint256,uint8,uint256) :
This function is the initializer for the DutchX smart contract. It sets up the contract by setting the parameters for the auction, such as the Nouns token, WETH address, time buffer, reserve price, minimum bid increment percentage, and duration. It also pauses the contract, preventing any further actions from being taken until it is unpaused. (autogenerated documentation)
settleCurrentAndCreateNewAuction() :
This function is an override of a non-reentrant function that is used to settle the current auction and create a new one. It first calls the _settleAuction() function to settle the current auction, and then calls the _createAuction() function to create a new auction. (autogenerated documentation)
settleAuction() :
This function is used to settle an auction. It is an override of the whenPaused nonReentrant function, meaning that it can only be called when the contract is paused and cannot be called again until the first call has finished. The function works by calling the _settleAuction() internal function, which is responsible for settling the auction. (autogenerated documentation)
createBid(uint256) :
This function creates a bid for a noun that is up for auction. It requires that the sender of the bid has sent a value that is greater than or equal to the reserve price, and that the value is greater than the last bid by a minimum bid increment percentage. If the auction is within the time buffer, the end time of the auction is extended. The last bidder is refunded the amount of their bid, and the new bidder is set as the current bidder. An AuctionBid and AuctionExtended event is emitted. (autogenerated documentation)
pause() :
This function pauses the contract, preventing any further transactions from being processed. It is an external function that can only be called by the owner of the contract. It calls the internal _pause() function to pause the contract. (autogenerated documentation)
unpause() :
This function is used to unpause the contract and create a new auction if the current auction has been settled or has not yet started. It can only be called by the contract owner. The function first calls the _unpause() internal function to unpause the contract, and then checks if the current auction has been settled or has not yet started. If either of these conditions is true, the _createAuction() internal function is called to create a new auction. (autogenerated documentation)
setTimeBuffer(uint256) :
This function allows the owner of the contract to set the time buffer for the auction. The time buffer is the amount of time that is added to the end of the auction to allow for any last minute bids. The function takes in a uint256 value as an argument and sets the timeBuffer variable to this value. It then emits an event to notify that the time buffer has been updated. (autogenerated documentation)
setReservePrice(uint256) :
This function allows the owner of the contract to set the reserve price of an auction. The function takes an input of a uint256, which is an unsigned 256-bit integer, and sets the reservePrice variable to this value. The function also emits an event, AuctionReservePriceUpdated, which notifies other users of the contract that the reserve price has been updated. (autogenerated documentation)
setMinBidIncrementPercentage(uint8) :
This function allows the owner of the contract to set the minimum bid increment percentage for the auction. This percentage is used to determine the minimum amount that a bidder must increase their bid by in order to outbid the current highest bidder. The function takes in a uint8 parameter which is the new minimum bid increment percentage. The function then sets the minBidIncrementPercentage variable to the new value and emits an event to notify other contracts of the change. (autogenerated documentation)
_createAuction() :
This function creates an auction for a new Noun token. It first mints a new Noun token and then creates an Auction object with the Noun token's ID, an amount of 0, a start time of the current block timestamp, an end time of the current block timestamp plus the duration of the auction, a bidder of 0, and a settled status of false. Finally, it emits an AuctionCreated event with the Noun token's ID, the start time, and the end time. (autogenerated documentation)
_settleAuction() :
This function is used to settle an auction. It first checks that the auction has begun, has not already been settled, and that the auction has completed. It then sets the auction as settled and either burns the noun if there was no bidder or transfers the noun to the bidder. Finally, it transfers the amount of ETH to the owner and emits an event to signal that the auction has been settled. (autogenerated documentation)
_safeTransferETHWithFallback(address,uint256) :
This function is an internal function that is used to transfer ETH from one address to another. It first attempts to use the _safeTransferETH function to transfer the ETH, and if that fails, it will deposit the ETH into a WETH contract and then transfer the amount from the WETH contract to the recipient address. (autogenerated documentation)
_safeTransferETH(address,uint256) :
This function is an internal function that is used to safely transfer ETH from one address to another. It takes two parameters, an address to send the ETH to and the amount of ETH to send. It then calls the address with the specified amount of ETH and a byte array of size 0. The function returns a boolean value indicating whether the transfer was successful or not. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i nouns-auctionhouse
copy icon

Recent Use

🍞 0x77CA downloaded
🥐 0x77CA saved
🥖 0x29b7 downloaded

Last Publish

10/17/2022

Version

1.0.0

Creator

Nouns-DAO

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.