-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from ourzora/update_reserve_auction
feat: add reserve auction to ZN
- Loading branch information
Showing
5 changed files
with
689 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"WETH": "0x4200000000000000000000000000000000000006", | ||
"REGISTRAR": "0x12125c8a52B8E4ed1A28e1f964023b4477f11300", | ||
"RoyaltyEngineV1": "0x0000000000000000000000000000000000000000", | ||
"ZoraProtocolFeeSettings": "0x13D48CF16917Bbc91810153d4D4e3284609C3CDc", | ||
"ZoraModuleManager": "0x69E2a5D39ed608Dfb75e29d7a4aa361C889FD25f", | ||
"ERC20TransferHelper": "0x0f92db11b60E7D9d80843588eefDDA17644a9aaa", | ||
"ERC721TransferHelper": "0x89a53404d3e29c6e5431d73e04F44045d37D01FE", | ||
"ReserveAuctionV3": "0xA06262157905913f855573f53AD48DE2D4ba1F4A" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"WETH": "0x4200000000000000000000000000000000000006", | ||
"REGISTRAR": "0x12125c8a52B8E4ed1A28e1f964023b4477f11300", | ||
"RoyaltyEngineV1": "0x0000000000000000000000000000000000000000", | ||
"ZoraProtocolFeeSettings": "0x824dD1cCd0824A15913B454A7E5D3Bf0C6b2BeEd", | ||
"ZoraModuleManager": "0x2E0c148C1AeD0360Df9a86112fD7C4EAb8045779", | ||
"ERC20TransferHelper": "0x421B6ad0CdD20bE3636F3511B6ae244d8F668dB1", | ||
"ERC721TransferHelper": "0x0ABdD5AA61E9107519DB7cD626442B905284B7eb", | ||
"ReserveAuctionV3": "0x0fbAB7302F9351dD1DB6674cc3bB855f0C55840B" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.10; | ||
|
||
interface IReserveAuctionV3 { | ||
/// @notice Creates an auction for a given NFT | ||
/// @param _tokenContract The address of the ERC-721 token | ||
/// @param _tokenId The id of the ERC-721 token | ||
/// @param _duration The length of time the auction should run after the first bid | ||
/// @param _reservePrice The minimum bid amount to start the auction | ||
/// @param _sellerFundsRecipient The address to send funds to once the auction is complete | ||
/// @param _startTime The time that users can begin placing bids | ||
/// @param _bidCurrency The address of the ERC-20 token, or address(0) for ETH, that users must bid with | ||
/// @param _findersFeeBps The fee to send to the referrer of the winning bid | ||
function createAuction( | ||
address _tokenContract, | ||
uint256 _tokenId, | ||
uint256 _duration, | ||
uint256 _reservePrice, | ||
address _sellerFundsRecipient, | ||
uint256 _startTime, | ||
address _bidCurrency, | ||
uint256 _findersFeeBps | ||
) external; | ||
|
||
/// @notice Updates the reserve price for a given auction | ||
/// @param _tokenContract The address of the ERC-721 token | ||
/// @param _tokenId The id of the ERC-721 token | ||
/// @param _reservePrice The new reserve price | ||
function setAuctionReservePrice(address _tokenContract, uint256 _tokenId, uint256 _reservePrice) external; | ||
|
||
/// @notice Cancels the auction for a given NFT | ||
/// @param _tokenContract The address of the ERC-721 token | ||
/// @param _tokenId The id of the ERC-721 token | ||
function cancelAuction(address _tokenContract, uint256 _tokenId) external; | ||
|
||
/// @notice Places a bid on the auction for a given NFT | ||
/// @param _tokenContract The address of the ERC-721 token | ||
/// @param _tokenId The id of the ERC-721 token | ||
/// @param _amount The amount to bid | ||
/// @param _finder The referrer of the bid | ||
function createBid(address _tokenContract, uint256 _tokenId, uint256 _amount, address _finder) external payable; | ||
|
||
/// @notice Ends the auction for a given NFT | ||
/// @param _tokenContract The address of the ERC-721 token | ||
/// @param _tokenId The id of the ERC-721 token | ||
function settleAuction(address _tokenContract, uint256 _tokenId) external; | ||
} |
Oops, something went wrong.