Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,214 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
End Auction | 21817972 | 2 days ago | IN | 0 ETH | 0.00006514 | ||||
End Auction | 21715509 | 16 days ago | IN | 0 ETH | 0.00098914 | ||||
Bid | 21707489 | 17 days ago | IN | 0.2575 ETH | 0.00056995 | ||||
End Auction | 19814953 | 282 days ago | IN | 0 ETH | 0.00078351 | ||||
Bid | 19814876 | 282 days ago | IN | 2.6265 ETH | 0.00040057 | ||||
Bid | 19814871 | 282 days ago | IN | 1.75615 ETH | 0.00040446 | ||||
Bid | 19814824 | 282 days ago | IN | 1.5965 ETH | 0.00035008 | ||||
Bid | 19814787 | 282 days ago | IN | 0.96305 ETH | 0.00036509 | ||||
Bid | 19813816 | 282 days ago | IN | 0.8755 ETH | 0.0004115 | ||||
Bid | 19807644 | 283 days ago | IN | 0.515 ETH | 0.00059803 | ||||
Cancel Auction | 19792005 | 285 days ago | IN | 0 ETH | 0.00065348 | ||||
Cancel Auction | 19739555 | 292 days ago | IN | 0 ETH | 0.0009002 | ||||
Cancel Auction | 19074553 | 386 days ago | IN | 0 ETH | 0.00089369 | ||||
Cancel Auction | 18718018 | 436 days ago | IN | 0 ETH | 0.00403985 | ||||
Cancel Auction | 18684010 | 440 days ago | IN | 0 ETH | 0.00278251 | ||||
Cancel Auction | 18636572 | 447 days ago | IN | 0 ETH | 0.003413 | ||||
Cancel Auction | 18541559 | 460 days ago | IN | 0 ETH | 0.00386737 | ||||
Cancel Auction | 18425413 | 477 days ago | IN | 0 ETH | 0.00111896 | ||||
Cancel Auction | 18425411 | 477 days ago | IN | 0 ETH | 0.00112223 | ||||
Cancel Auction | 18425408 | 477 days ago | IN | 0 ETH | 0.00112633 | ||||
Cancel Auction | 18425405 | 477 days ago | IN | 0 ETH | 0.00093709 | ||||
Cancel Auction | 18411461 | 478 days ago | IN | 0 ETH | 0.0006847 | ||||
Cancel Auction | 18411461 | 478 days ago | IN | 0 ETH | 0.00068219 | ||||
Cancel Auction | 18178844 | 511 days ago | IN | 0 ETH | 0.00307835 | ||||
Cancel Auction | 18178837 | 511 days ago | IN | 0 ETH | 0.00296422 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21715509 | 16 days ago | 0.2375 ETH | ||||
21715509 | 16 days ago | 0.02 ETH | ||||
19814953 | 282 days ago | 2.4225 ETH | ||||
19814953 | 282 days ago | 0.204 ETH | ||||
19814876 | 282 days ago | 1.75615 ETH | ||||
19814871 | 282 days ago | 1.5965 ETH | ||||
19814824 | 282 days ago | 0.96305 ETH | ||||
19814787 | 282 days ago | 0.8755 ETH | ||||
19813816 | 282 days ago | 0.515 ETH | ||||
16492761 | 748 days ago | 4.56 ETH | ||||
16492761 | 748 days ago | 0.384 ETH | ||||
16465875 | 752 days ago | 0.5225 ETH | ||||
16465875 | 752 days ago | 0.044 ETH | ||||
16255430 | 781 days ago | 1.425 ETH | ||||
16255430 | 781 days ago | 0.12 ETH | ||||
16255359 | 781 days ago | 1.425 ETH | ||||
16255359 | 781 days ago | 0.12 ETH | ||||
16255333 | 781 days ago | 1.3596 ETH | ||||
16254600 | 781 days ago | 1.236 ETH | ||||
16254598 | 781 days ago | 1.37093 ETH | ||||
16253669 | 781 days ago | 1.03 ETH | ||||
16251283 | 782 days ago | 1.2463 ETH | ||||
16249900 | 782 days ago | 1.133 ETH | ||||
16248431 | 782 days ago | 1.03 ETH | ||||
16222117 | 786 days ago | 1.425 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FirstDibsAuctionV2
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1348 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicensed pragma solidity 0.8.13; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/access/AccessControl.sol'; import '@openzeppelin/contracts/access/IAccessControl.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/security/PullPayment.sol'; import '../interfaces/IOwnable.sol'; import './IFirstDibsMarketSettingsV2.sol'; import '../royaltyEngine/IRoyaltyEngineV1.sol'; import './BidUtils.sol'; import './FirstDibsERC2771Context.sol'; import './IERC721TokenCreatorV2.sol'; contract FirstDibsAuctionV2 is PullPayment, AccessControl, ReentrancyGuard, IERC721Receiver, FirstDibsERC2771Context { using BidUtils for uint256; bytes32 public constant BIDDER_ROLE = keccak256('BIDDER_ROLE'); /** * ======================== * #Public state variables * ======================== */ bool public bidderRoleRequired; // if true, bids require bidder having BIDDER_ROLE role bool public globalPaused; // flag for pausing all auctions IFirstDibsMarketSettingsV2 public iFirstDibsMarketSettings; IERC721TokenCreatorV2 public iERC721TokenCreatorRegistry; address public manifoldRoyaltyEngineAddress; // address of the manifold royalty engine https://royaltyregistry.xyz address public auctionV1Address; // address of the V1 auction contract, used as the source of bidder role truth // Mapping auction id => Auction mapping(uint256 => Auction) public auctions; // Map token address => tokenId => auctionId mapping(address => mapping(uint256 => uint256)) public auctionIds; /* * ======================== * #Private state variables * ======================== */ uint256 private auctionIdsCounter; /** * ======================== * #Structs * ======================== */ struct AuctionSettings { uint32 buyerPremium; // RBS; added on top of current bid uint32 duration; // defaults to globalDuration uint32 minimumBidIncrement; // defaults to globalMinimumBidIncrement uint32 commissionRate; // percent; defaults to globalMarketCommission } struct Bid { uint256 amount; // current winning bid of the auction uint256 buyerPremiumAmount; // current buyer premium associated with current bid } struct Auction { uint256 startTime; // auction start timestamp uint256 pausedTime; // when was the auction paused uint256 reservePrice; // minimum bid threshold for auction to begin uint256 tokenId; // id of the token bool paused; // is individual auction paused address nftAddress; // address of the token address tokenOwner; // address of the owner of the token address payable fundsRecipient; // address of auction proceeds recipient address payable currentBidder; // current winning bidder of the auction address auctionCreator; // address of the creator of the auction (whoever called the createAuction method) AuctionSettings settings; Bid currentBid; } /** * ======================== * #Modifiers * ======================== */ function onlyAdmin() internal view { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'caller is not an admin'); } function notPaused(uint256 auctionId) internal view { require(!globalPaused && !auctions[auctionId].paused, 'auction paused'); } function auctionExists(uint256 auctionId) internal view { require(auctions[auctionId].fundsRecipient != address(0), "auction doesn't exist"); } function hasBid(uint256 auctionId) internal view { if (!hasRole(DEFAULT_ADMIN_ROLE, _msgSender())) { // only admin may change state of auction with bids require( auctions[auctionId].currentBidder == address(0), 'only admin can update state of auction with bids' ); } } function senderIsAuctionCreatorOrAdmin(uint256 auctionId) internal view { require( _msgSender() == auctions[auctionId].auctionCreator || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'must be auction creator or admin' ); } function checkZeroAddress(address addr) internal pure { require(addr != address(0), '0 address not allowed'); } /** * ======================== * #Events * ======================== */ event AuctionCreated( uint256 indexed auctionId, address indexed nftAddress, uint256 indexed tokenId, address tokenSeller, address fundsRecipient, uint256 reservePrice, bool isPaused, address auctionCreator, uint64 duration ); event AuctionBid( uint256 indexed auctionId, address indexed bidder, uint256 bidAmount, uint256 bidBuyerPremium, uint64 duration, uint256 startTime ); event AuctionEnded( uint256 indexed auctionId, address indexed tokenSeller, address indexed winningBidder, uint256 winningBid, uint256 winningBidBuyerPremium, uint256 adminCommissionFee, uint256 royaltyFee, uint256 sellerPayment ); event AuctionPaused( uint256 indexed auctionId, address indexed tokenSeller, address toggledBy, bool isPaused, uint64 duration ); event AuctionCanceled(uint256 indexed auctionId, address canceledBy, uint256 refundedAmount); event TransferFailed(address to, uint256 amount); /** * ======================== * constructor * ======================== */ constructor( address _marketSettings, address _creatorRegistry, address _trustedForwarder, address _manifoldRoyaltyEngineAddress, address _auctionV1Address ) FirstDibsERC2771Context(_trustedForwarder) { require( _marketSettings != address(0) && _creatorRegistry != address(0) && _manifoldRoyaltyEngineAddress != address(0) && _auctionV1Address != address(0), '0 address for contract ref' ); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); // deployer of the contract gets admin permissions iFirstDibsMarketSettings = IFirstDibsMarketSettingsV2(_marketSettings); iERC721TokenCreatorRegistry = IERC721TokenCreatorV2(_creatorRegistry); manifoldRoyaltyEngineAddress = _manifoldRoyaltyEngineAddress; auctionV1Address = _auctionV1Address; bidderRoleRequired = true; auctionIdsCounter = 0; } /** * @dev setter for manifold royalty engine address * @param _manifoldRoyaltyEngineAddress new manifold royalty engine address */ function setManifoldRoyaltyEngineAddress(address _manifoldRoyaltyEngineAddress) external { onlyAdmin(); checkZeroAddress(_manifoldRoyaltyEngineAddress); manifoldRoyaltyEngineAddress = _manifoldRoyaltyEngineAddress; } /** * @dev setter for market settings address * @param _iFirstDibsMarketSettings address of the FirstDibsMarketSettings contract to set for the auction */ function setIFirstDibsMarketSettings(address _iFirstDibsMarketSettings) external { onlyAdmin(); checkZeroAddress(_iFirstDibsMarketSettings); iFirstDibsMarketSettings = IFirstDibsMarketSettingsV2(_iFirstDibsMarketSettings); } /** * @dev setter for creator registry address * @param _iERC721TokenCreatorRegistry address of the IERC721TokenCreator contract to set for the auction */ function setIERC721TokenCreatorRegistry(address _iERC721TokenCreatorRegistry) external { onlyAdmin(); checkZeroAddress(_iERC721TokenCreatorRegistry); iERC721TokenCreatorRegistry = IERC721TokenCreatorV2(_iERC721TokenCreatorRegistry); } /** * @dev setter for setting bidder role being required to bid * @param _bidderRole bool If true, bidder must have bidder role to bid */ function setBidderRoleRequired(bool _bidderRole) external { onlyAdmin(); bidderRoleRequired = _bidderRole; } /** * @dev setter for global pause state * @param _paused true to pause all auctions, false to unpause all auctions */ function setGlobalPaused(bool _paused) external { onlyAdmin(); globalPaused = _paused; } /** * @dev External function which creates an auction with a reserve price, * custom start time, custom duration, and custom minimum bid increment. * * @param _nftAddress address of ERC-721 contract * @param _tokenId uint256 * @param _reservePrice uint256 reserve price in ETH * @param _pausedArg create the auction in a paused state * @param _startTimeArg (optional) unix timestamp; allow bidding to start at this time * @param _auctionDurationArg (optional) auction duration in seconds * @param _fundsRecipient address to send auction proceeds to */ function createAuction( address _nftAddress, uint256 _tokenId, uint256 _reservePrice, bool _pausedArg, uint64 _startTimeArg, uint32 _auctionDurationArg, address _fundsRecipient ) external { adminCreateAuction( _nftAddress, _tokenId, _reservePrice, _pausedArg, _startTimeArg, _auctionDurationArg, _fundsRecipient, 10001 // adminCreateAuction function ignores values > 10000 ); } /** * @dev External function which creates an auction with a reserve price, * custom start time, custom duration, custom minimum bid increment, * custom commission rate, and custom creator royalty rate. * * @param _nftAddress address of ERC-721 contract (latest FirstDibsToken address) * @param _tokenId uint256 * @param _reservePrice reserve price in ETH * @param _pausedArg create the auction in a paused state * @param _startTimeArg (optional) unix timestamp; allow bidding to start at this time * @param _auctionDurationArg (optional) auction duration in seconds * @param _fundsRecipient address to send auction proceeds to * @param _commissionRateArg (optional) admin-only; pass in a custom marketplace commission rate */ function adminCreateAuction( address _nftAddress, uint256 _tokenId, uint256 _reservePrice, bool _pausedArg, uint64 _startTimeArg, uint32 _auctionDurationArg, address _fundsRecipient, uint16 _commissionRateArg ) public { notPaused(0); // May not create auctions unless you are the token owner or // an admin of this contract address tokenOwner = IERC721(_nftAddress).ownerOf(_tokenId); require( _msgSender() == tokenOwner || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()) || IERC721(_nftAddress).getApproved(_tokenId) == _msgSender() || IERC721(_nftAddress).isApprovedForAll(tokenOwner, _msgSender()), 'must be token owner, admin, or approved' ); require(_fundsRecipient != address(0), 'must pass funds recipient'); require(auctionIds[_nftAddress][_tokenId] == 0, 'auction already exists'); require(_reservePrice > 0, 'Reserve must be > 0'); Auction memory auction = Auction({ currentBid: Bid({ amount: 0, buyerPremiumAmount: 0 }), nftAddress: _nftAddress, tokenId: _tokenId, tokenOwner: tokenOwner, fundsRecipient: payable(_fundsRecipient), // pass in the fundsRecipient auctionCreator: _msgSender(), reservePrice: _reservePrice, // minimum bid threshold for auction to begin startTime: 0, currentBidder: payable(address(0)), // there is no bidder at auction creation paused: _pausedArg, // is individual auction paused pausedTime: 0, // when the auction was paused settings: AuctionSettings({ // Defaults to global market settings; admins may override buyerPremium: iFirstDibsMarketSettings.globalBuyerPremium(), duration: iFirstDibsMarketSettings.globalAuctionDuration(), minimumBidIncrement: iFirstDibsMarketSettings.globalMinimumBidIncrement(), commissionRate: iFirstDibsMarketSettings.globalMarketCommission() }) }); if (_auctionDurationArg > 0) { require( _auctionDurationArg >= iFirstDibsMarketSettings.globalTimeBuffer(), 'duration must be >= time buffer' ); auction.settings.duration = _auctionDurationArg; } if (_startTimeArg > 0) { require(block.timestamp < _startTimeArg, 'start time must be in the future'); auction.startTime = _startTimeArg; // since `bid` is gated by `notPaused` modifier // and a start time in the future means that a bid // must be allowed after that time, we can't have // the auction paused if there is a start time > 0 auction.paused = false; } if (hasRole(DEFAULT_ADMIN_ROLE, _msgSender())) { if (_commissionRateArg <= 10000) { auction.settings.commissionRate = _commissionRateArg; } } auctionIdsCounter++; auctions[auctionIdsCounter] = auction; auctionIds[_nftAddress][_tokenId] = auctionIdsCounter; // transfer the NFT to the auction contract to hold in escrow for the duration of the auction IERC721(_nftAddress).safeTransferFrom(tokenOwner, address(this), _tokenId); emit AuctionCreated( auctionIdsCounter, _nftAddress, _tokenId, tokenOwner, _fundsRecipient, _reservePrice, auction.paused, _msgSender(), auction.settings.duration ); } /** * @dev external function that can be called by any address which submits a bid to an auction * @param _auctionId uint256 id of the auction * @param _amount uint256 bid in WEI */ function bid(uint256 _auctionId, uint256 _amount) external payable nonReentrant { auctionExists(_auctionId); notPaused(_auctionId); if (bidderRoleRequired == true) { require( IAccessControl(auctionV1Address).hasRole(BIDDER_ROLE, _msgSender()), 'bidder role required' ); } require(msg.value > 0 && _amount == msg.value, 'invalid bid value'); // Auctions with a start time can't accept bids until now is greater than start time require(block.timestamp >= auctions[_auctionId].startTime, 'auction not started'); // Auctions with an end time less than now may accept a bid require( auctions[_auctionId].startTime == 0 || block.timestamp < _endTime(_auctionId), 'auction expired' ); require( auctions[_auctionId].currentBidder != _msgSender() && auctions[_auctionId].fundsRecipient != _msgSender() && auctions[_auctionId].tokenOwner != _msgSender(), 'invalid bidder' ); // Validate the amount sent and get sent bid and sent premium (uint256 _sentBid, uint256 _sentPremium) = _amount.validateAndGetBid( auctions[_auctionId].settings.buyerPremium, auctions[_auctionId].reservePrice, auctions[_auctionId].currentBid.amount, auctions[_auctionId].settings.minimumBidIncrement, auctions[_auctionId].currentBidder ); // bid amount is OK, if not first bid, then transfer funds // back to previous bidder & update current bidder to the current sender if (auctions[_auctionId].startTime == 0) { auctions[_auctionId].startTime = uint64(block.timestamp); } else if (auctions[_auctionId].currentBidder != address(0)) { _tryTransferThenEscrow( auctions[_auctionId].currentBidder, // prior auctions[_auctionId].currentBid.amount + auctions[_auctionId].currentBid.buyerPremiumAmount // refund amount ); } auctions[_auctionId].currentBid.amount = _sentBid; auctions[_auctionId].currentBid.buyerPremiumAmount = _sentPremium; auctions[_auctionId].currentBidder = payable(_msgSender()); // extend countdown for bids within the time buffer of the auction if ( // if auction ends less than globalTimeBuffer from now _endTime(_auctionId) < block.timestamp + iFirstDibsMarketSettings.globalTimeBuffer() ) { // increment the duration by the difference between the new end time and the old end time auctions[_auctionId].settings.duration += uint32( block.timestamp + iFirstDibsMarketSettings.globalTimeBuffer() - _endTime(_auctionId) ); } emit AuctionBid( _auctionId, _msgSender(), _sentBid, _sentPremium, auctions[_auctionId].settings.duration, auctions[_auctionId].startTime ); } /** * @dev method for ending an auction which has expired. Distrubutes payment to all parties & send * token to winning bidder (or returns it to the auction creator if there was no winner) * @param _auctionId uint256 id of the token */ function endAuction(uint256 _auctionId) external nonReentrant { auctionExists(_auctionId); notPaused(_auctionId); require(auctions[_auctionId].currentBidder != address(0), 'no bidders; use cancelAuction'); require( auctions[_auctionId].startTime > 0 && // auction has started block.timestamp >= _endTime(_auctionId), // past the endtime of the auction, 'auction is not complete' ); Auction memory auction = auctions[_auctionId]; _delete(_auctionId); // send commission fee & buyer premium to commission address uint256 commissionFee = (auction.currentBid.amount * auction.settings.commissionRate) / 10000; // don't attempt to transfer fees if there are none if (commissionFee + auction.currentBid.buyerPremiumAmount > 0) { _tryTransferThenEscrow( iFirstDibsMarketSettings.commissionAddress(), commissionFee + auction.currentBid.buyerPremiumAmount ); } // Find token creator to determine if this is a primary sale // 1. Get token creator from 1stDibs token registry; // applies to 1stDibs tokens only address nftCreator = iERC721TokenCreatorRegistry.tokenCreator( auction.nftAddress, auction.tokenId ); // 2. If token creator has not been registered through 1stDibs, check contract owner. // We're assuming that creator is the owner, which isn't foolproof. Our primary use-case // for non-1D tokens are Manifold ERC721 contracts and it's a reasonable assumption that // creator equals contract owner. There are edge cases where this assumption will fail if (nftCreator == address(0)) { try IOwnable(auction.nftAddress).owner() returns (address owner) { nftCreator = owner; } catch {} } uint256 royaltyAmount = 0; if (nftCreator != auction.tokenOwner && nftCreator != address(0)) { // creator is not seller, so payout royalties // get royalty information from manifold royalty engine // https://royaltyregistry.xyz/ ( address payable[] memory royaltyRecipients, uint256[] memory amounts ) = IRoyaltyEngineV1(manifoldRoyaltyEngineAddress).getRoyalty( auction.nftAddress, auction.tokenId, auction.currentBid.amount ); uint256 arrLength = royaltyRecipients.length; for (uint256 i = 0; i < arrLength; ) { if (amounts[i] != 0 && royaltyRecipients[i] != address(0)) { royaltyAmount += amounts[i]; _sendFunds(royaltyRecipients[i], amounts[i]); } unchecked { ++i; } } } uint256 sellerFee = auction.currentBid.amount - royaltyAmount - commissionFee; _sendFunds(auction.fundsRecipient, sellerFee); // send the NFT to the winning bidder IERC721(auction.nftAddress).safeTransferFrom( address(this), // from auction.currentBidder, // to auction.tokenId ); emit AuctionEnded( _auctionId, auction.tokenOwner, auction.currentBidder, auction.currentBid.amount, auction.currentBid.buyerPremiumAmount, commissionFee, royaltyAmount, sellerFee ); } /** * @dev external function to cancel an auction & return the NFT to the creator of the auction * @param _auctionId uint256 auction id */ function cancelAuction(uint256 _auctionId) external nonReentrant { senderIsAuctionCreatorOrAdmin(_auctionId); auctionExists(_auctionId); hasBid(_auctionId); Auction memory auction = auctions[_auctionId]; _delete(_auctionId); // return the token back to the original owner IERC721(auction.nftAddress).safeTransferFrom( address(this), auction.tokenOwner, auction.tokenId ); uint256 refundAmount = 0; if (auction.currentBidder != address(0)) { // If there's a bidder, return funds to them refundAmount = auction.currentBid.amount + auction.currentBid.buyerPremiumAmount; _tryTransferThenEscrow(auction.currentBidder, refundAmount); } emit AuctionCanceled(_auctionId, _msgSender(), refundAmount); } /** * @dev external function for pausing / unpausing an auction * @param _auctionId uint256 auction id * @param _paused true to pause the auction, false to unpause the auction */ function setAuctionPause(uint256 _auctionId, bool _paused) external { senderIsAuctionCreatorOrAdmin(_auctionId); auctionExists(_auctionId); hasBid(_auctionId); if (_paused == auctions[_auctionId].paused) { revert('auction paused state not updated'); } if (_paused) { auctions[_auctionId].pausedTime = uint64(block.timestamp); } else if ( !_paused && auctions[_auctionId].pausedTime > 0 && auctions[_auctionId].startTime > 0 ) { if (auctions[_auctionId].currentBidder != address(0)) { // if the auction has started, increment duration by difference between current time and paused time // differentiate here between an auction that has started with a bid (increment time) vs an auction that has a start time in the future (do not increment time) auctions[_auctionId].settings.duration += uint32( block.timestamp - auctions[_auctionId].pausedTime ); } auctions[_auctionId].pausedTime = 0; } auctions[_auctionId].paused = _paused; emit AuctionPaused( _auctionId, auctions[_auctionId].tokenOwner, _msgSender(), _paused, auctions[_auctionId].settings.duration ); } /** * @notice Handle the receipt of an NFT * @dev Per erc721 spec this interface must be implemented to receive NFTs via * the safeTransferFrom function. See: https://eips.ethereum.org/EIPS/eip-721 for more. */ function onERC721Received( address, address, uint256, bytes memory ) external view override returns (bytes4) { return IERC721Receiver(address(this)).onERC721Received.selector; } /** * @dev utility function for calculating an auctions end time * @param _auctionId uint256 */ function _endTime(uint256 _auctionId) private view returns (uint256) { return auctions[_auctionId].startTime + auctions[_auctionId].settings.duration; } /** * @dev Delete auctionId for current auction for token+id & delete auction struct * @param _auctionId uint256 */ function _delete(uint256 _auctionId) private { // delete auctionId for current address+id token combo // only one auction at a time per token allowed delete auctionIds[auctions[_auctionId].nftAddress][auctions[_auctionId].tokenId]; // Delete auction struct delete auctions[_auctionId]; } /** * @dev Sending ether is not guaranteed complete, and the method used here will * escrow the value if it fails. For example, a contract can block transfer, or might use * an excessive amount of gas, thereby griefing a bidder. * We limit the gas used in transfers, and handle failure with escrowing. * @param _to address to transfer ETH to * @param _amount uint256 WEI amount to transfer */ function _tryTransferThenEscrow(address _to, uint256 _amount) private { // increase the gas limit a reasonable amount above the default, and try // to send ether to the recipient. (bool success, ) = _to.call{ value: _amount, gas: 30000 }(''); if (!success) { emit TransferFailed(_to, _amount); _asyncTransfer(_to, _amount); } } /** * @dev check if funds recipient is a contract. If it is, transfer ETH directly. If not, store in escrow on this contract. */ function _sendFunds(address _to, uint256 _amount) private { // check if address is contract // see reference implementation at https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol#L41 if (_to.code.length > 0) { _tryTransferThenEscrow(_to, _amount); } else { _asyncTransfer(_to, _amount); } } function _msgSender() internal view override(Context, FirstDibsERC2771Context) returns (address sender) { return super._msgSender(); } function _msgData() internal view override(Context, FirstDibsERC2771Context) returns (bytes calldata) { return super._msgData(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/PullPayment.sol) pragma solidity ^0.8.0; import "../utils/escrow/Escrow.sol"; /** * @dev Simple implementation of a * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] * strategy, where the paying contract doesn't interact directly with the * receiver account, which must withdraw its payments itself. * * Pull-payments are often considered the best practice when it comes to sending * Ether, security-wise. It prevents recipients from blocking execution, and * eliminates reentrancy concerns. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * * To use, derive from the `PullPayment` contract, and use {_asyncTransfer} * instead of Solidity's `transfer` function. Payees can query their due * payments with {payments}, and retrieve them with {withdrawPayments}. */ abstract contract PullPayment { Escrow private immutable _escrow; constructor() { _escrow = new Escrow(); } /** * @dev Withdraw accumulated payments, forwarding all gas to the recipient. * * Note that _any_ account can call this function, not just the `payee`. * This means that contracts unaware of the `PullPayment` protocol can still * receive funds this way, by having a separate account call * {withdrawPayments}. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee Whose payments will be withdrawn. */ function withdrawPayments(address payable payee) public virtual { _escrow.withdraw(payee); } /** * @dev Returns the payments owed to an address. * @param dest The creditor's address. */ function payments(address dest) public view returns (uint256) { return _escrow.depositsOf(dest); } /** * @dev Called by the payer to store the sent amount as credit to be pulled. * Funds sent in this way are stored in an intermediate {Escrow} contract, so * there is no danger of them being spent before withdrawal. * * @param dest The destination address of the funds. * @param amount The amount to transfer. */ function _asyncTransfer(address dest, uint256 amount) internal virtual { _escrow.deposit{value: amount}(dest); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IOwnable { /** * @dev Returns the address of the current owner. */ function owner() external view returns (address); }
//SPDX-License-Identifier: Unlicensed pragma solidity 0.8.13; interface IFirstDibsMarketSettingsV2 { function globalBuyerPremium() external view returns (uint32); function globalMarketCommission() external view returns (uint32); function globalMinimumBidIncrement() external view returns (uint32); function globalTimeBuffer() external view returns (uint32); function globalAuctionDuration() external view returns (uint32); function commissionAddress() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; /// @author: manifold.xyz import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; /** * @dev Lookup engine interface */ interface IRoyaltyEngineV1 is IERC165 { /** * Get the royalty for a given token (address, id) and value amount. Does not cache the bps/amounts. Caches the spec for a given token address * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyalty( address tokenAddress, uint256 tokenId, uint256 value ) external returns (address payable[] memory recipients, uint256[] memory amounts); /** * View only version of getRoyalty * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyaltyView( address tokenAddress, uint256 tokenId, uint256 value ) external view returns (address payable[] memory recipients, uint256[] memory amounts); }
//SPDX-License-Identifier: Unlicensed pragma solidity 0.8.13; library BidUtils { /** * @dev Retrieves the bid and buyer premium amount from the _amount based on _buyerPremiumRate * * @param _amount The entire amount (bid amount + buyer premium amount) * @param _buyerPremiumRate The buyer premium RBS used to calculate _amount * @return The bid sent and the premium sent */ function _getSentBidAndPremium(uint256 _amount, uint64 _buyerPremiumRate) private pure returns ( uint256, /*sentBid*/ uint256 /*sentPremium*/ ) { uint256 bpRate = _buyerPremiumRate + 10000; uint256 _sentBid = uint256((_amount * 10000) / bpRate); uint256 _sentPremium = uint256(_amount - _sentBid); return (_sentBid, _sentPremium); } /** * @dev Validates that the total amount sent is valid for the current state of the auction * and returns the bid amount and buyer premium amount sent * * @param _totalAmount The total amount sent (bid amount + buyer premium amount) * @param _buyerPremium The current buyer premium rate * @param _reservePrice The reserve price of the auction * @param _currentBidAmount The current bid to validate * @param _minimumBidIncrement The minimum bid increase threshold * @param _currentBidder The address of the highest bidder of the auction * @return boolean true if the amount satisfies the state of the auction; the sent bid; and the sent premium */ function validateAndGetBid( uint256 _totalAmount, uint64 _buyerPremium, uint256 _reservePrice, uint256 _currentBidAmount, uint256 _minimumBidIncrement, address _currentBidder ) internal pure returns ( uint256, /*sentBid*/ uint256 /*sentPremium*/ ) { (uint256 _sentBid, uint256 _sentPremium) = _getSentBidAndPremium( _totalAmount, _buyerPremium ); if (_currentBidder == address(0)) { // This is the first bid against reserve price require(_sentBid >= _reservePrice, 'reserve not met'); } else { // Subsequent bids must meet minimum bid increment require( _sentBid >= _currentBidAmount + (_currentBidAmount * _minimumBidIncrement) / 10000, 'minimum bid not met' ); } return (_sentBid, _sentPremium); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; /** * @dev Context variant with ERC2771 support. * copy/paste from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/metatx/ERC2771Context.sol * but added a "setTrustedForwarder" function so we can deploy the forwarder contract after the token contract */ abstract contract FirstDibsERC2771Context is Context, Ownable { address private _trustedForwarder; constructor(address trustedForwarder) { _trustedForwarder = trustedForwarder; } function setTrustedForwarder(address trustedForwarder) external onlyOwner { _trustedForwarder = trustedForwarder; } function isTrustedForwarder(address forwarder) public view virtual returns (bool) { return forwarder == _trustedForwarder; } function _msgSender() internal view virtual override returns (address sender) { if (isTrustedForwarder(msg.sender)) { // The assembly code is more direct than the Solidity version using `abi.decode`. assembly { sender := shr(96, calldataload(sub(calldatasize(), 20))) } } else { return super._msgSender(); } } function _msgData() internal view virtual override returns (bytes calldata) { if (isTrustedForwarder(msg.sender)) { return msg.data[:msg.data.length - 20]; } else { return super._msgData(); } } }
//SPDX-License-Identifier: BSD 3-Clause pragma solidity 0.8.13; /** * @title IERC721 Non-Fungible Token Creator basic interface * @dev Interop with other systems supporting this interface * @notice Original license and source here: https://github.com/Pixura/pixura-contracts */ interface IERC721TokenCreatorV2 { /** * @dev Gets the creator of the _tokenId on _nftAddress * @param _nftAddress address of the ERC721 contract * @param _tokenId uint256 ID of the token * @return address of the creator */ function tokenCreator(address _nftAddress, uint256 _tokenId) external view returns (address payable); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/escrow/Escrow.sol) pragma solidity ^0.8.0; import "../../access/Ownable.sol"; import "../Address.sol"; /** * @title Escrow * @dev Base escrow contract, holds funds designated for a payee until they * withdraw them. * * Intended usage: This contract (and derived escrow contracts) should be a * standalone contract, that only interacts with the contract that instantiated * it. That way, it is guaranteed that all Ether will be handled according to * the `Escrow` rules, and there is no need to check for payable functions or * transfers in the inheritance tree. The contract that uses the escrow as its * payment method should be its owner, and provide public methods redirecting * to the escrow's deposit and withdraw. */ contract Escrow is Ownable { using Address for address payable; event Deposited(address indexed payee, uint256 weiAmount); event Withdrawn(address indexed payee, uint256 weiAmount); mapping(address => uint256) private _deposits; function depositsOf(address payee) public view returns (uint256) { return _deposits[payee]; } /** * @dev Stores the sent amount as credit to be withdrawn. * @param payee The destination address of the funds. */ function deposit(address payee) public payable virtual onlyOwner { uint256 amount = msg.value; _deposits[payee] += amount; emit Deposited(payee, amount); } /** * @dev Withdraw accumulated balance for a payee, forwarding all gas to the * recipient. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee The address whose funds will be withdrawn and transferred to. */ function withdraw(address payable payee) public virtual onlyOwner { uint256 payment = _deposits[payee]; _deposits[payee] = 0; payee.sendValue(payment); emit Withdrawn(payee, payment); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 1348 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_marketSettings","type":"address"},{"internalType":"address","name":"_creatorRegistry","type":"address"},{"internalType":"address","name":"_trustedForwarder","type":"address"},{"internalType":"address","name":"_manifoldRoyaltyEngineAddress","type":"address"},{"internalType":"address","name":"_auctionV1Address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bidAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bidBuyerPremium","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"duration","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"AuctionBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":false,"internalType":"address","name":"canceledBy","type":"address"},{"indexed":false,"internalType":"uint256","name":"refundedAmount","type":"uint256"}],"name":"AuctionCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenSeller","type":"address"},{"indexed":false,"internalType":"address","name":"fundsRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"reservePrice","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"},{"indexed":false,"internalType":"address","name":"auctionCreator","type":"address"},{"indexed":false,"internalType":"uint64","name":"duration","type":"uint64"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenSeller","type":"address"},{"indexed":true,"internalType":"address","name":"winningBidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"winningBid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"winningBidBuyerPremium","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"adminCommissionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"royaltyFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellerPayment","type":"uint256"}],"name":"AuctionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenSeller","type":"address"},{"indexed":false,"internalType":"address","name":"toggledBy","type":"address"},{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"},{"indexed":false,"internalType":"uint64","name":"duration","type":"uint64"}],"name":"AuctionPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferFailed","type":"event"},{"inputs":[],"name":"BIDDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_reservePrice","type":"uint256"},{"internalType":"bool","name":"_pausedArg","type":"bool"},{"internalType":"uint64","name":"_startTimeArg","type":"uint64"},{"internalType":"uint32","name":"_auctionDurationArg","type":"uint32"},{"internalType":"address","name":"_fundsRecipient","type":"address"},{"internalType":"uint16","name":"_commissionRateArg","type":"uint16"}],"name":"adminCreateAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionV1Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctions","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"pausedTime","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"address","name":"tokenOwner","type":"address"},{"internalType":"address payable","name":"fundsRecipient","type":"address"},{"internalType":"address payable","name":"currentBidder","type":"address"},{"internalType":"address","name":"auctionCreator","type":"address"},{"components":[{"internalType":"uint32","name":"buyerPremium","type":"uint32"},{"internalType":"uint32","name":"duration","type":"uint32"},{"internalType":"uint32","name":"minimumBidIncrement","type":"uint32"},{"internalType":"uint32","name":"commissionRate","type":"uint32"}],"internalType":"struct FirstDibsAuctionV2.AuctionSettings","name":"settings","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"buyerPremiumAmount","type":"uint256"}],"internalType":"struct FirstDibsAuctionV2.Bid","name":"currentBid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bidderRoleRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"}],"name":"cancelAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_reservePrice","type":"uint256"},{"internalType":"bool","name":"_pausedArg","type":"bool"},{"internalType":"uint64","name":"_startTimeArg","type":"uint64"},{"internalType":"uint32","name":"_auctionDurationArg","type":"uint32"},{"internalType":"address","name":"_fundsRecipient","type":"address"}],"name":"createAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"}],"name":"endAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"iERC721TokenCreatorRegistry","outputs":[{"internalType":"contract IERC721TokenCreatorV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"iFirstDibsMarketSettings","outputs":[{"internalType":"contract IFirstDibsMarketSettingsV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manifoldRoyaltyEngineAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"},{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setAuctionPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bidderRole","type":"bool"}],"name":"setBidderRoleRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setGlobalPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_iERC721TokenCreatorRegistry","type":"address"}],"name":"setIERC721TokenCreatorRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_iFirstDibsMarketSettings","type":"address"}],"name":"setIFirstDibsMarketSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manifoldRoyaltyEngineAddress","type":"address"}],"name":"setManifoldRoyaltyEngineAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"trustedForwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162004b5838038062004b58833981016040819052620000349162000341565b82604051620000439062000316565b604051809103906000f08015801562000060573d6000803e3d6000fd5b506001600160a01b031660805260018055620000856200007f620001ba565b620001d6565b600380546001600160a01b0319166001600160a01b03928316179055851615801590620000ba57506001600160a01b03841615155b8015620000cf57506001600160a01b03821615155b8015620000e457506001600160a01b03811615155b620001355760405162461bcd60e51b815260206004820152601a60248201527f30206164647265737320666f7220636f6e747261637420726566000000000000604482015260640160405180910390fd5b6200014b600062000145620001ba565b62000228565b600480546001600160a01b03199081166001600160a01b039788161790915560058054821695871695909517909455600680548516928616929092179091556007805490931693169290921790555060038054600160a01b60ff60a01b199091161790556000600a55620003b1565b6000620001d16200023860201b62002f161760201c565b905090565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000234828262000270565b5050565b6003546000906001600160a01b031633036200025b575060131936013560601c90565b620001d16200031260201b62002f421760201c565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000234576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002ce620001ba565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b3390565b6106d1806200448783390190565b80516001600160a01b03811681146200033c57600080fd5b919050565b600080600080600060a086880312156200035a57600080fd5b620003658662000324565b9450620003756020870162000324565b9350620003856040870162000324565b9250620003956060870162000324565b9150620003a56080870162000324565b90509295509295909350565b6080516140ac620003db60003960008181610a7b0152818161200b01526138c301526140ac6000f3fe6080604052600436106102345760003560e01c806360d7951c11610138578063b9a2de3a116100b0578063e2982c211161007f578063e597a20911610064578063e597a2091461092d578063f2fde38b1461094d578063fed5e56f1461096d57600080fd5b8063e2982c21146108ed578063e5442a1a1461090d57600080fd5b8063b9a2de3a1461086d578063c40119f81461088d578063d547741f146108ad578063da742228146108cd57600080fd5b80637ccfdbfe1161010757806391d14854116100ec57806391d14854146107f457806396b5a75514610838578063a217fddf1461085857600080fd5b80637ccfdbfe146107b65780638da5cb5b146107d657600080fd5b806360d7951c1461074057806361a552dc14610760578063715018a61461078157806376cad8341461079657600080fd5b806331b3eb94116101cb5780633dd0a7e41161019a578063571a26a01161017f578063571a26a0146104b0578063572b6c05146106fe578063598647f81461072d57600080fd5b80633dd0a7e4146104585780634199e02b1461047857600080fd5b806331b3eb94146103d857806336568abe146103f8578063398109a3146104185780633a80e8931461043857600080fd5b8063248a9ca311610207578063248a9ca31461032f5780632badf25c1461035f5780632f2ff15d146103805780632f6823a2146103a057600080fd5b806301ffc9a7146102395780630ce526d11461026e578063150b7a02146102b05780631eed8f311461030d575b600080fd5b34801561024557600080fd5b5061025961025436600461391c565b61098d565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b506102a27f80f9b792196f21120f021903634877a78a3dd5e8ef643701b99dae7bb938062d81565b604051908152602001610265565b3480156102bc57600080fd5b506102f46102cb3660046139a2565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610265565b34801561031957600080fd5b5061032d610328366004613aa3565b6109f6565b005b34801561033b57600080fd5b506102a261034a366004613b25565b60009081526020819052604090206001015490565b34801561036b57600080fd5b5060035461025990600160a01b900460ff1681565b34801561038c57600080fd5b5061032d61039b366004613b3e565b610a11565b3480156103ac57600080fd5b506007546103c0906001600160a01b031681565b6040516001600160a01b039091168152602001610265565b3480156103e457600080fd5b5061032d6103f3366004613b6e565b610a43565b34801561040457600080fd5b5061032d610413366004613b3e565b610ada565b34801561042457600080fd5b5061032d610433366004613b8b565b610b7b565b34801561044457600080fd5b506005546103c0906001600160a01b031681565b34801561046457600080fd5b5061032d610473366004613b6e565b610bbc565b34801561048457600080fd5b506102a2610493366004613ba8565b600960209081526000928352604080842090915290825290205481565b3480156104bc57600080fd5b506106576104cb366004613b25565b60086020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16908060040160019054906101000a90046001600160a01b0316908060050160009054906101000a90046001600160a01b0316908060060160009054906101000a90046001600160a01b0316908060070160009054906101000a90046001600160a01b0316908060080160009054906101000a90046001600160a01b031690806009016040518060800160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201600c9054906101000a900463ffffffff1663ffffffff1663ffffffff16815250509080600a016040518060400160405290816000820154815260200160018201548152505090508c565b604080519c8d526020808e019c909c528c81019a909a526060808d019990995296151560808c01526001600160a01b0395861660a08c015293851660c08b015291841660e08a01528316610100890152909116610120870152805163ffffffff908116610140880152818601518116610160880152938101518416610180870152909101519091166101a084015280516101c084015201516101e082015261020001610265565b34801561070a57600080fd5b50610259610719366004613b6e565b6003546001600160a01b0391821691161490565b61032d61073b366004613bd4565b610bef565b34801561074c57600080fd5b506006546103c0906001600160a01b031681565b34801561076c57600080fd5b5060035461025990600160a81b900460ff1681565b34801561078d57600080fd5b5061032d611284565b3480156107a257600080fd5b5061032d6107b1366004613b8b565b611309565b3480156107c257600080fd5b506004546103c0906001600160a01b031681565b3480156107e257600080fd5b506002546001600160a01b03166103c0565b34801561080057600080fd5b5061025961080f366004613b3e565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561084457600080fd5b5061032d610853366004613b25565b61134a565b34801561086457600080fd5b506102a2600081565b34801561087957600080fd5b5061032d610888366004613b25565b6116bb565b34801561089957600080fd5b5061032d6108a8366004613b6e565b611eda565b3480156108b957600080fd5b5061032d6108c8366004613b3e565b611f0d565b3480156108d957600080fd5b5061032d6108e8366004613b6e565b611f35565b3480156108f957600080fd5b506102a2610908366004613b6e565b611fd0565b34801561091957600080fd5b5061032d610928366004613b6e565b612078565b34801561093957600080fd5b5061032d610948366004613bf6565b6120ab565b34801561095957600080fd5b5061032d610968366004613b6e565b6122d5565b34801561097957600080fd5b5061032d610988366004613c1b565b6123d6565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806109f057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b610a08878787878787876127116123d6565b50505050505050565b600082815260208190526040902060010154610a3481610a2f612f46565b612f50565b610a3e8383612fce565b505050565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b158015610abf57600080fd5b505af1158015610ad3573d6000803e3d6000fd5b5050505050565b610ae2612f46565b6001600160a01b0316816001600160a01b031614610b6d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b610b77828261306d565b5050565b610b8361310a565b60038054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b610bc461310a565b610bcd81613163565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600260015403610c415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b64565b6002600155610c4f826131b9565b610c5882613220565b600354600160a01b900460ff161515600103610d62576007546001600160a01b03166391d148547f80f9b792196f21120f021903634877a78a3dd5e8ef643701b99dae7bb938062d610ca8612f46565b6040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381865afa158015610cf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d169190613cb7565b610d625760405162461bcd60e51b815260206004820152601460248201527f62696464657220726f6c652072657175697265640000000000000000000000006044820152606401610b64565b600034118015610d7157503481145b610dbd5760405162461bcd60e51b815260206004820152601160248201527f696e76616c6964206269642076616c75650000000000000000000000000000006044820152606401610b64565b600082815260086020526040902054421015610e1b5760405162461bcd60e51b815260206004820152601360248201527f61756374696f6e206e6f742073746172746564000000000000000000000000006044820152606401610b64565b6000828152600860205260409020541580610e3d5750610e3a82613298565b42105b610e895760405162461bcd60e51b815260206004820152600f60248201527f61756374696f6e206578706972656400000000000000000000000000000000006044820152606401610b64565b610e91612f46565b6000838152600860205260409020600701546001600160a01b03908116911614801590610ee35750610ec1612f46565b6000838152600860205260409020600601546001600160a01b03908116911614155b8015610f145750610ef2612f46565b6000838152600860205260409020600501546001600160a01b03908116911614155b610f605760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964206269646465720000000000000000000000000000000000006044820152606401610b64565b600082815260086020526040812060098101546002820154600a8301546007909301548493610fb693879363ffffffff808316949193926801000000000000000090048116916001600160a01b0316906132c516565b60008681526008602052604081205492945090925003610ff057600084815260086020526040902067ffffffffffffffff4216905561104c565b6000848152600860205260409020600701546001600160a01b03161561104c5760008481526008602052604090206007810154600b820154600a9092015461104c926001600160a01b039092169161104791613cea565b6133bc565b6000848152600860205260409020600a8101839055600b0181905561106f612f46565b60008581526008602090815260409182902060070180546001600160a01b0319166001600160a01b0394851617905560048054835163e536f52360e01b8152935194169363e536f523938083019392908290030181865afa1580156110d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fc9190613d02565b61110c9063ffffffff1642613cea565b61111585613298565b10156111f75761112484613298565b600480546040805163e536f52360e01b815290516001600160a01b039092169263e536f5239282820192602092908290030181865afa15801561116b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118f9190613d02565b61119f9063ffffffff1642613cea565b6111a99190613d1f565b600085815260086020526040902060090180546004906111d8908490640100000000900463ffffffff16613d36565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b6111ff612f46565b60008581526008602090815260409182902060098101549054835187815292830186905263ffffffff6401000000009092049190911682840152606082015290516001600160a01b03929092169186917fd66b5764c67c36e32461c93c76dc6bd7a7a8d9ec4ed13647a30f88b9b5f3aef1919081900360800190a35050600180555050565b61128c612f46565b6001600160a01b03166112a76002546001600160a01b031690565b6001600160a01b0316146112fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b64565b6113076000613468565b565b61131161310a565b60038054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60026001540361139c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b64565b60026001556113aa816134ba565b6113b3816131b9565b6113bc81613547565b600081815260086020818152604092839020835161018081018552815481526001820154818401526002820154818601526003820154606080830191909152600483015460ff811615156080808501919091526001600160a01b0361010092839004811660a08601526005860154811660c08601526006860154811660e08601526007860154811692850192909252958401541661012083015285519485018652600983015463ffffffff808216875264010000000082048116878701526801000000000000000082048116878901526c0100000000000000000000000090910416908501526101408101939093528351808501909452600a8101548452600b0154908301526101608101919091526115b08260008181526008602081815260408084206004810180546001600160a01b03610100909104168652600980855283872060038401805489529086529387208790559686529284905284815560018101859055600281018590559084905581547fffffffffffffffffffffff000000000000000000000000000000000000000000169091556005810180546001600160a01b03199081169091556006820180548216905560078201805482169055918101805490921690915591820180546fffffffffffffffffffffffffffffffff19169055600a8201819055600b90910155565b60a081015160c08201516060830151604051632142170760e11b81523060048201526001600160a01b03928316602482015260448101919091529116906342842e0e90606401600060405180830381600087803b15801561161057600080fd5b505af1158015611624573d6000803e3d6000fd5b505050610100820151600091506001600160a01b03161561166757610160820151602081015190516116569190613cea565b9050611667826101000151826133bc565b827fc326dcfb5d4e924f5e3e717c0f667b0eecb5abb73fc0b33236b6107c1fd48a57611691612f46565b604080516001600160a01b039092168252602082018590520160405180910390a250506001805550565b60026001540361170d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b64565b600260015561171b816131b9565b61172481613220565b6000818152600860205260409020600701546001600160a01b031661178b5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20626964646572733b207573652063616e63656c41756374696f6e0000006044820152606401610b64565b600081815260086020526040902054158015906117b057506117ac81613298565b4210155b6117fc5760405162461bcd60e51b815260206004820152601760248201527f61756374696f6e206973206e6f7420636f6d706c6574650000000000000000006044820152606401610b64565b600081815260086020818152604092839020835161018081018552815481526001820154818401526002820154818601526003820154606080830191909152600483015460ff811615156080808501919091526001600160a01b0361010092839004811660a08601526005860154811660c08601526006860154811660e08601526007860154811692850192909252958401541661012083015285519485018652600983015463ffffffff808216875264010000000082048116878701526801000000000000000082048116878901526c0100000000000000000000000090910416908501526101408101939093528351808501909452600a8101548452600b0154908301526101608101919091526119f08260008181526008602081815260408084206004810180546001600160a01b03610100909104168652600980855283872060038401805489529086529387208790559686529284905284815560018101859055600281018590559084905581547fffffffffffffffffffffff000000000000000000000000000000000000000000169091556005810180546001600160a01b03199081169091556006820180548216905560078201805482169055918101805490921690915591820180546fffffffffffffffffffffffffffffffff19169055600a8201819055600b90910155565b60006127108261014001516060015163ffffffff1683610160015160000151611a199190613d5e565b611a239190613d7d565b905060008261016001516020015182611a3c9190613cea565b1115611ad057611ad0600460009054906101000a90046001600160a01b03166001600160a01b031663931742d36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abc9190613d9f565b610160840151602001516110479084613cea565b60055460a083015160608401516040517fb85ed7e40000000000000000000000000000000000000000000000000000000081526000936001600160a01b03169263b85ed7e492611b36926004016001600160a01b03929092168252602082015260400190565b602060405180830381865afa158015611b53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b779190613d9f565b90506001600160a01b038116611bed578260a001516001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611be5575060408051601f3d908101601f19168201909252611be291810190613d9f565b60015b15611bed5790505b60008360c001516001600160a01b0316826001600160a01b031614158015611c1d57506001600160a01b03821615155b15611dad5760065460a08501516060860151610160870151516040517ff533b8020000000000000000000000000000000000000000000000000000000081526001600160a01b039384166004820152602481019290925260448201526000928392169063f533b802906064016000604051808303816000875af1158015611ca8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cd09190810190613e4b565b8151919350915060005b81811015611da857828181518110611cf457611cf4613f10565b6020026020010151600014158015611d38575060006001600160a01b0316848281518110611d2457611d24613f10565b60200260200101516001600160a01b031614155b15611da057828181518110611d4f57611d4f613f10565b602002602001015185611d629190613cea565b9450611da0848281518110611d7957611d79613f10565b6020026020010151848381518110611d9357611d93613f10565b60200260200101516135e6565b600101611cda565b505050505b6000838286610160015160000151611dc59190613d1f565b611dcf9190613d1f565b9050611ddf8560e00151826135e6565b60a08501516101008601516060870151604051632142170760e11b81523060048201526001600160a01b03928316602482015260448101919091529116906342842e0e90606401600060405180830381600087803b158015611e4057600080fd5b505af1158015611e54573d6000803e3d6000fd5b50505061010086015160c08701516101608801518051602091820151604080519283529282015290810188905260608101869052608081018590526001600160a01b03928316935091169088907f5266f731bbd4fe6f9a1fb89425bfacb9adca3695584d4398361c2a5a32f97c6f9060a00160405180910390a450506001805550505050565b611ee261310a565b611eeb81613163565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260208190526040902060010154611f2b81610a2f612f46565b610a3e838361306d565b611f3d612f46565b6001600160a01b0316611f586002546001600160a01b031690565b6001600160a01b031614611fae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b64565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6040517fe3a9db1a0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa158015612054573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f09190613f26565b61208061310a565b61208981613163565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6120b4826134ba565b6120bd826131b9565b6120c682613547565b60008281526008602052604090206004015460ff1615158115150361212d5760405162461bcd60e51b815260206004820181905260248201527f61756374696f6e20706175736564207374617465206e6f7420757064617465646044820152606401610b64565b801561215757600082815260086020526040902067ffffffffffffffff4216600190910155612230565b80158015612175575060008281526008602052604090206001015415155b801561218e575060008281526008602052604090205415155b15612230576000828152600860205260409020600701546001600160a01b03161561221d576000828152600860205260409020600101546121cf9042613d1f565b600083815260086020526040902060090180546004906121fe908490640100000000900463ffffffff16613d36565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b6000828152600860205260408120600101555b600082815260086020526040902060048101805460ff1916831515179055600501546001600160a01b0316827fae3de7f7c5462d334767296a417566554b9cc3078ea4d932182f55a4556cb400612285612f46565b6000868152600860209081526040918290206009015482516001600160a01b03909416845287151591840191909152640100000000900463ffffffff169082015260600160405180910390a35050565b6122dd612f46565b6001600160a01b03166122f86002546001600160a01b031690565b6001600160a01b03161461234e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b64565b6001600160a01b0381166123ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b64565b6123d381613468565b50565b6123e06000613220565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018890526000906001600160a01b038a1690636352211e90602401602060405180830381865afa158015612441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124659190613d9f565b9050806001600160a01b0316612479612f46565b6001600160a01b031614806124965750612496600061080f612f46565b8061253557506124a4612f46565b6040517f081812fc000000000000000000000000000000000000000000000000000000008152600481018a90526001600160a01b03918216918b169063081812fc90602401602060405180830381865afa158015612506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252a9190613d9f565b6001600160a01b0316145b806125c25750886001600160a01b031663e985e9c582612553612f46565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa15801561259e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c29190613cb7565b6126345760405162461bcd60e51b815260206004820152602760248201527f6d75737420626520746f6b656e206f776e65722c2061646d696e2c206f72206160448201527f7070726f766564000000000000000000000000000000000000000000000000006064820152608401610b64565b6001600160a01b03831661268a5760405162461bcd60e51b815260206004820152601960248201527f6d75737420706173732066756e647320726563697069656e74000000000000006044820152606401610b64565b6001600160a01b03891660009081526009602090815260408083208b8452909152902054156126fb5760405162461bcd60e51b815260206004820152601660248201527f61756374696f6e20616c726561647920657869737473000000000000000000006044820152606401610b64565b6000871161274b5760405162461bcd60e51b815260206004820152601360248201527f52657365727665206d757374206265203e2030000000000000000000000000006044820152606401610b64565b600060405180610180016040528060008152602001600081526020018981526020018a815260200188151581526020018b6001600160a01b03168152602001836001600160a01b03168152602001856001600160a01b0316815260200160006001600160a01b031681526020016127c0612f46565b6001600160a01b031681526020016040518060800160405280600460009054906101000a90046001600160a01b03166001600160a01b031663e092c7fd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561282c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128509190613d02565b63ffffffff168152602001600460009054906101000a90046001600160a01b03166001600160a01b031663f309051c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156128ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d29190613d02565b63ffffffff168152602001600460009054906101000a90046001600160a01b03166001600160a01b03166346d3eb356040518163ffffffff1660e01b8152600401602060405180830381865afa158015612930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129549190613d02565b63ffffffff168152602001600460009054906101000a90046001600160a01b03166001600160a01b0316637cdd2a566040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129d69190613d02565b63ffffffff1681525081526020016040518060400160405280600081526020016000815250815250905060008563ffffffff161115612ae957600480546040805163e536f52360e01b815290516001600160a01b039092169263e536f5239282820192602092908290030181865afa158015612a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a7a9190613d02565b63ffffffff168563ffffffff161015612ad55760405162461bcd60e51b815260206004820152601f60248201527f6475726174696f6e206d757374206265203e3d2074696d6520627566666572006044820152606401610b64565b61014081015163ffffffff86166020909101525b67ffffffffffffffff861615612b67578567ffffffffffffffff164210612b525760405162461bcd60e51b815260206004820181905260248201527f73746172742074696d65206d75737420626520696e20746865206675747572656044820152606401610b64565b67ffffffffffffffff86168152600060808201525b612b74600061080f612f46565b15612b98576127108361ffff1611612b985761014081015161ffff84166060909101525b600a8054906000612ba883613f3f565b91905055508060086000600a5481526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff02191690831515021790555060a08201518160040160016101000a8154816001600160a01b0302191690836001600160a01b0316021790555060c08201518160050160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e08201518160060160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101008201518160070160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101208201518160080160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101408201518160090160008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160086101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001600c6101000a81548163ffffffff021916908363ffffffff160217905550505061016082015181600a0160008201518160000155602082015181600101555050905050600a54600960008c6001600160a01b03166001600160a01b0316815260200190815260200160002060008b815260200190815260200160002081905550896001600160a01b03166342842e0e83308c6040518463ffffffff1660e01b8152600401612e45939291906001600160a01b039384168152919092166020820152604081019190915260600190565b600060405180830381600087803b158015612e5f57600080fd5b505af1158015612e73573d6000803e3d6000fd5b50505050888a6001600160a01b0316600a547f06952524abc53bbaaec0e9946e1efca21619d6eb6ac9dfa18ca36d9ffc09a2b385888d8760800151612eb6612f46565b6101408a0151602090810151604080516001600160a01b03988916815296881692870192909252858201949094529115156060850152909316608083015263ffffffff1660a082015290519081900360c00190a450505050505050505050565b6003546000906001600160a01b03163303612f38575060131936013560601c90565b503390565b905090565b3390565b6000612f3d612f16565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610b7757612f8c816001600160a01b0316601461360a565b612f9783602061360a565b604051602001612fa8929190613f88565b60408051601f198184030181529082905262461bcd60e51b8252610b6491600401614009565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610b77576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055613029612f46565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610b77576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556130c6612f46565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b613117600061080f612f46565b6113075760405162461bcd60e51b815260206004820152601660248201527f63616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610b64565b6001600160a01b0381166123d35760405162461bcd60e51b815260206004820152601560248201527f302061646472657373206e6f7420616c6c6f77656400000000000000000000006044820152606401610b64565b6000818152600860205260409020600601546001600160a01b03166123d35760405162461bcd60e51b815260206004820152601560248201527f61756374696f6e20646f65736e277420657869737400000000000000000000006044820152606401610b64565b600354600160a81b900460ff1615801561324c575060008181526008602052604090206004015460ff16155b6123d35760405162461bcd60e51b815260206004820152600e60248201527f61756374696f6e207061757365640000000000000000000000000000000000006044820152606401610b64565b6000818152600860205260408120600981015490546109f091640100000000900463ffffffff1690613cea565b6000806000806132d58a8a61383a565b90925090506001600160a01b03851661333d57878210156133385760405162461bcd60e51b815260206004820152600f60248201527f72657365727665206e6f74206d657400000000000000000000000000000000006044820152606401610b64565b6133ad565b61271061334a8789613d5e565b6133549190613d7d565b61335e9088613cea565b8210156133ad5760405162461bcd60e51b815260206004820152601360248201527f6d696e696d756d20626964206e6f74206d6574000000000000000000000000006044820152606401610b64565b90999098509650505050505050565b6000826001600160a01b03168261753090604051600060405180830381858888f193505050503d806000811461340e576040519150601f19603f3d011682016040523d82523d6000602084013e613413565b606091505b5050905080610a3e57604080516001600160a01b0385168152602081018490527f1c43b9761b3fba5321ca8212bfc231945f668ccc0c446f333999eea9ce8fda81910160405180910390a1610a3e838361388b565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815260086020819052604090912001546001600160a01b03166134de612f46565b6001600160a01b031614806134fb57506134fb600061080f612f46565b6123d35760405162461bcd60e51b815260206004820181905260248201527f6d7573742062652061756374696f6e2063726561746f72206f722061646d696e6044820152606401610b64565b613554600061080f612f46565b6123d3576000818152600860205260409020600701546001600160a01b0316156123d35760405162461bcd60e51b815260206004820152603060248201527f6f6e6c792061646d696e2063616e20757064617465207374617465206f66206160448201527f756374696f6e20776974682062696473000000000000000000000000000000006064820152608401610b64565b6001600160a01b0382163b1561360057610b7782826133bc565b610b77828261388b565b60606000613619836002613d5e565b613624906002613cea565b67ffffffffffffffff81111561363c5761363c61395b565b6040519080825280601f01601f191660200182016040528015613666576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061369d5761369d613f10565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061370057613700613f10565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061373c846002613d5e565b613747906001613cea565b90505b60018111156137e4577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061378857613788613f10565b1a60f81b82828151811061379e5761379e613f10565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936137dd8161403c565b905061374a565b5083156138335760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b64565b9392505050565b6000808061384a84612710614053565b67ffffffffffffffff16905060008161386587612710613d5e565b61386f9190613d7d565b9050600061387d8288613d1f565b919791965090945050505050565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b15801561390857600080fd5b505af1158015610a08573d6000803e3d6000fd5b60006020828403121561392e57600080fd5b81356001600160e01b03198116811461383357600080fd5b6001600160a01b03811681146123d357600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561399a5761399a61395b565b604052919050565b600080600080608085870312156139b857600080fd5b84356139c381613946565b93506020858101356139d481613946565b935060408601359250606086013567ffffffffffffffff808211156139f857600080fd5b818801915088601f830112613a0c57600080fd5b813581811115613a1e57613a1e61395b565b613a30601f8201601f19168501613971565b91508082528984828501011115613a4657600080fd5b808484018584013760008482840101525080935050505092959194509250565b80151581146123d357600080fd5b803567ffffffffffffffff81168114613a8c57600080fd5b919050565b63ffffffff811681146123d357600080fd5b600080600080600080600060e0888a031215613abe57600080fd5b8735613ac981613946565b965060208801359550604088013594506060880135613ae781613a66565b9350613af560808901613a74565b925060a0880135613b0581613a91565b915060c0880135613b1581613946565b8091505092959891949750929550565b600060208284031215613b3757600080fd5b5035919050565b60008060408385031215613b5157600080fd5b823591506020830135613b6381613946565b809150509250929050565b600060208284031215613b8057600080fd5b813561383381613946565b600060208284031215613b9d57600080fd5b813561383381613a66565b60008060408385031215613bbb57600080fd5b8235613bc681613946565b946020939093013593505050565b60008060408385031215613be757600080fd5b50508035926020909101359150565b60008060408385031215613c0957600080fd5b823591506020830135613b6381613a66565b600080600080600080600080610100898b031215613c3857600080fd5b8835613c4381613946565b975060208901359650604089013595506060890135613c6181613a66565b9450613c6f60808a01613a74565b935060a0890135613c7f81613a91565b925060c0890135613c8f81613946565b915060e089013561ffff81168114613ca657600080fd5b809150509295985092959890939650565b600060208284031215613cc957600080fd5b815161383381613a66565b634e487b7160e01b600052601160045260246000fd5b60008219821115613cfd57613cfd613cd4565b500190565b600060208284031215613d1457600080fd5b815161383381613a91565b600082821015613d3157613d31613cd4565b500390565b600063ffffffff808316818516808303821115613d5557613d55613cd4565b01949350505050565b6000816000190483118215151615613d7857613d78613cd4565b500290565b600082613d9a57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613db157600080fd5b815161383381613946565b600067ffffffffffffffff821115613dd657613dd661395b565b5060051b60200190565b600082601f830112613df157600080fd5b81516020613e06613e0183613dbc565b613971565b82815260059290921b84018101918181019086841115613e2557600080fd5b8286015b84811015613e405780518352918301918301613e29565b509695505050505050565b60008060408385031215613e5e57600080fd5b825167ffffffffffffffff80821115613e7657600080fd5b818501915085601f830112613e8a57600080fd5b81516020613e9a613e0183613dbc565b82815260059290921b84018101918181019089841115613eb957600080fd5b948201945b83861015613ee0578551613ed181613946565b82529482019490820190613ebe565b91880151919650909350505080821115613ef957600080fd5b50613f0685828601613de0565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613f3857600080fd5b5051919050565b600060018201613f5157613f51613cd4565b5060010190565b60005b83811015613f73578181015183820152602001613f5b565b83811115613f82576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613fc0816017850160208801613f58565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613ffd816028840160208801613f58565b01602801949350505050565b6020815260008251806020840152614028816040850160208701613f58565b601f01601f19169190910160400192915050565b60008161404b5761404b613cd4565b506000190190565b600067ffffffffffffffff808316818516808303821115613d5557613d55613cd456fea26469706673582212209108fd94bc74ee72ac2630adf66aae7b4c0fb3f7127071645bcb24aa41d2bd8f64736f6c634300080d0033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6106538061007e6000396000f3fe6080604052600436106100655760003560e01c8063e3a9db1a11610043578063e3a9db1a146100ce578063f2fde38b14610112578063f340fa011461013257600080fd5b806351cff8d91461006a578063715018a61461008c5780638da5cb5b146100a1575b600080fd5b34801561007657600080fd5b5061008a6100853660046105ba565b610145565b005b34801561009857600080fd5b5061008a610213565b3480156100ad57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100da57600080fd5b506101046100e93660046105ba565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100c5565b34801561011e57600080fd5b5061008a61012d3660046105ba565b610279565b61008a6101403660046105ba565b61035b565b6000546001600160a01b031633146101a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811660008181526001602052604081208054919055906101cc908261041f565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58260405161020791815260200190565b60405180910390a25050565b6000546001600160a01b0316331461026d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b610277600061053d565b565b6000546001600160a01b031633146102d35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b6001600160a01b03811661034f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161019b565b6103588161053d565b50565b6000546001600160a01b031633146103b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b6001600160a01b0381166000908152600160205260408120805434928392916103df9084906105de565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c490602001610207565b8047101561046f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161019b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146104bc576040519150601f19603f3d011682016040523d82523d6000602084013e6104c1565b606091505b50509050806105385760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161019b565b505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461035857600080fd5b6000602082840312156105cc57600080fd5b81356105d7816105a5565b9392505050565b60008219821115610618577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea26469706673582212206cff05e419f829a38862443c9ef3de243b212d30258371578144c717f15ac5a664736f6c634300080d00330000000000000000000000003fc850f34d55c256937ab34294e68972988ec15f0000000000000000000000002a9699de82f9f057638fcaed65e886847a17c4ef00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000385603ab55642cb4dd5de3ae9e306809991804f00000000000000000000000046852869902d9f8a4d76195fc23add15d921abd9
Deployed Bytecode
0x6080604052600436106102345760003560e01c806360d7951c11610138578063b9a2de3a116100b0578063e2982c211161007f578063e597a20911610064578063e597a2091461092d578063f2fde38b1461094d578063fed5e56f1461096d57600080fd5b8063e2982c21146108ed578063e5442a1a1461090d57600080fd5b8063b9a2de3a1461086d578063c40119f81461088d578063d547741f146108ad578063da742228146108cd57600080fd5b80637ccfdbfe1161010757806391d14854116100ec57806391d14854146107f457806396b5a75514610838578063a217fddf1461085857600080fd5b80637ccfdbfe146107b65780638da5cb5b146107d657600080fd5b806360d7951c1461074057806361a552dc14610760578063715018a61461078157806376cad8341461079657600080fd5b806331b3eb94116101cb5780633dd0a7e41161019a578063571a26a01161017f578063571a26a0146104b0578063572b6c05146106fe578063598647f81461072d57600080fd5b80633dd0a7e4146104585780634199e02b1461047857600080fd5b806331b3eb94146103d857806336568abe146103f8578063398109a3146104185780633a80e8931461043857600080fd5b8063248a9ca311610207578063248a9ca31461032f5780632badf25c1461035f5780632f2ff15d146103805780632f6823a2146103a057600080fd5b806301ffc9a7146102395780630ce526d11461026e578063150b7a02146102b05780631eed8f311461030d575b600080fd5b34801561024557600080fd5b5061025961025436600461391c565b61098d565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b506102a27f80f9b792196f21120f021903634877a78a3dd5e8ef643701b99dae7bb938062d81565b604051908152602001610265565b3480156102bc57600080fd5b506102f46102cb3660046139a2565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610265565b34801561031957600080fd5b5061032d610328366004613aa3565b6109f6565b005b34801561033b57600080fd5b506102a261034a366004613b25565b60009081526020819052604090206001015490565b34801561036b57600080fd5b5060035461025990600160a01b900460ff1681565b34801561038c57600080fd5b5061032d61039b366004613b3e565b610a11565b3480156103ac57600080fd5b506007546103c0906001600160a01b031681565b6040516001600160a01b039091168152602001610265565b3480156103e457600080fd5b5061032d6103f3366004613b6e565b610a43565b34801561040457600080fd5b5061032d610413366004613b3e565b610ada565b34801561042457600080fd5b5061032d610433366004613b8b565b610b7b565b34801561044457600080fd5b506005546103c0906001600160a01b031681565b34801561046457600080fd5b5061032d610473366004613b6e565b610bbc565b34801561048457600080fd5b506102a2610493366004613ba8565b600960209081526000928352604080842090915290825290205481565b3480156104bc57600080fd5b506106576104cb366004613b25565b60086020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16908060040160019054906101000a90046001600160a01b0316908060050160009054906101000a90046001600160a01b0316908060060160009054906101000a90046001600160a01b0316908060070160009054906101000a90046001600160a01b0316908060080160009054906101000a90046001600160a01b031690806009016040518060800160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201600c9054906101000a900463ffffffff1663ffffffff1663ffffffff16815250509080600a016040518060400160405290816000820154815260200160018201548152505090508c565b604080519c8d526020808e019c909c528c81019a909a526060808d019990995296151560808c01526001600160a01b0395861660a08c015293851660c08b015291841660e08a01528316610100890152909116610120870152805163ffffffff908116610140880152818601518116610160880152938101518416610180870152909101519091166101a084015280516101c084015201516101e082015261020001610265565b34801561070a57600080fd5b50610259610719366004613b6e565b6003546001600160a01b0391821691161490565b61032d61073b366004613bd4565b610bef565b34801561074c57600080fd5b506006546103c0906001600160a01b031681565b34801561076c57600080fd5b5060035461025990600160a81b900460ff1681565b34801561078d57600080fd5b5061032d611284565b3480156107a257600080fd5b5061032d6107b1366004613b8b565b611309565b3480156107c257600080fd5b506004546103c0906001600160a01b031681565b3480156107e257600080fd5b506002546001600160a01b03166103c0565b34801561080057600080fd5b5061025961080f366004613b3e565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561084457600080fd5b5061032d610853366004613b25565b61134a565b34801561086457600080fd5b506102a2600081565b34801561087957600080fd5b5061032d610888366004613b25565b6116bb565b34801561089957600080fd5b5061032d6108a8366004613b6e565b611eda565b3480156108b957600080fd5b5061032d6108c8366004613b3e565b611f0d565b3480156108d957600080fd5b5061032d6108e8366004613b6e565b611f35565b3480156108f957600080fd5b506102a2610908366004613b6e565b611fd0565b34801561091957600080fd5b5061032d610928366004613b6e565b612078565b34801561093957600080fd5b5061032d610948366004613bf6565b6120ab565b34801561095957600080fd5b5061032d610968366004613b6e565b6122d5565b34801561097957600080fd5b5061032d610988366004613c1b565b6123d6565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806109f057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b610a08878787878787876127116123d6565b50505050505050565b600082815260208190526040902060010154610a3481610a2f612f46565b612f50565b610a3e8383612fce565b505050565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f00000000000000000000000096025b8276cf130c79fbb2a33951a0eaf00b439616906351cff8d990602401600060405180830381600087803b158015610abf57600080fd5b505af1158015610ad3573d6000803e3d6000fd5b5050505050565b610ae2612f46565b6001600160a01b0316816001600160a01b031614610b6d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b610b77828261306d565b5050565b610b8361310a565b60038054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b610bc461310a565b610bcd81613163565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600260015403610c415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b64565b6002600155610c4f826131b9565b610c5882613220565b600354600160a01b900460ff161515600103610d62576007546001600160a01b03166391d148547f80f9b792196f21120f021903634877a78a3dd5e8ef643701b99dae7bb938062d610ca8612f46565b6040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381865afa158015610cf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d169190613cb7565b610d625760405162461bcd60e51b815260206004820152601460248201527f62696464657220726f6c652072657175697265640000000000000000000000006044820152606401610b64565b600034118015610d7157503481145b610dbd5760405162461bcd60e51b815260206004820152601160248201527f696e76616c6964206269642076616c75650000000000000000000000000000006044820152606401610b64565b600082815260086020526040902054421015610e1b5760405162461bcd60e51b815260206004820152601360248201527f61756374696f6e206e6f742073746172746564000000000000000000000000006044820152606401610b64565b6000828152600860205260409020541580610e3d5750610e3a82613298565b42105b610e895760405162461bcd60e51b815260206004820152600f60248201527f61756374696f6e206578706972656400000000000000000000000000000000006044820152606401610b64565b610e91612f46565b6000838152600860205260409020600701546001600160a01b03908116911614801590610ee35750610ec1612f46565b6000838152600860205260409020600601546001600160a01b03908116911614155b8015610f145750610ef2612f46565b6000838152600860205260409020600501546001600160a01b03908116911614155b610f605760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964206269646465720000000000000000000000000000000000006044820152606401610b64565b600082815260086020526040812060098101546002820154600a8301546007909301548493610fb693879363ffffffff808316949193926801000000000000000090048116916001600160a01b0316906132c516565b60008681526008602052604081205492945090925003610ff057600084815260086020526040902067ffffffffffffffff4216905561104c565b6000848152600860205260409020600701546001600160a01b03161561104c5760008481526008602052604090206007810154600b820154600a9092015461104c926001600160a01b039092169161104791613cea565b6133bc565b6000848152600860205260409020600a8101839055600b0181905561106f612f46565b60008581526008602090815260409182902060070180546001600160a01b0319166001600160a01b0394851617905560048054835163e536f52360e01b8152935194169363e536f523938083019392908290030181865afa1580156110d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fc9190613d02565b61110c9063ffffffff1642613cea565b61111585613298565b10156111f75761112484613298565b600480546040805163e536f52360e01b815290516001600160a01b039092169263e536f5239282820192602092908290030181865afa15801561116b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118f9190613d02565b61119f9063ffffffff1642613cea565b6111a99190613d1f565b600085815260086020526040902060090180546004906111d8908490640100000000900463ffffffff16613d36565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b6111ff612f46565b60008581526008602090815260409182902060098101549054835187815292830186905263ffffffff6401000000009092049190911682840152606082015290516001600160a01b03929092169186917fd66b5764c67c36e32461c93c76dc6bd7a7a8d9ec4ed13647a30f88b9b5f3aef1919081900360800190a35050600180555050565b61128c612f46565b6001600160a01b03166112a76002546001600160a01b031690565b6001600160a01b0316146112fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b64565b6113076000613468565b565b61131161310a565b60038054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60026001540361139c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b64565b60026001556113aa816134ba565b6113b3816131b9565b6113bc81613547565b600081815260086020818152604092839020835161018081018552815481526001820154818401526002820154818601526003820154606080830191909152600483015460ff811615156080808501919091526001600160a01b0361010092839004811660a08601526005860154811660c08601526006860154811660e08601526007860154811692850192909252958401541661012083015285519485018652600983015463ffffffff808216875264010000000082048116878701526801000000000000000082048116878901526c0100000000000000000000000090910416908501526101408101939093528351808501909452600a8101548452600b0154908301526101608101919091526115b08260008181526008602081815260408084206004810180546001600160a01b03610100909104168652600980855283872060038401805489529086529387208790559686529284905284815560018101859055600281018590559084905581547fffffffffffffffffffffff000000000000000000000000000000000000000000169091556005810180546001600160a01b03199081169091556006820180548216905560078201805482169055918101805490921690915591820180546fffffffffffffffffffffffffffffffff19169055600a8201819055600b90910155565b60a081015160c08201516060830151604051632142170760e11b81523060048201526001600160a01b03928316602482015260448101919091529116906342842e0e90606401600060405180830381600087803b15801561161057600080fd5b505af1158015611624573d6000803e3d6000fd5b505050610100820151600091506001600160a01b03161561166757610160820151602081015190516116569190613cea565b9050611667826101000151826133bc565b827fc326dcfb5d4e924f5e3e717c0f667b0eecb5abb73fc0b33236b6107c1fd48a57611691612f46565b604080516001600160a01b039092168252602082018590520160405180910390a250506001805550565b60026001540361170d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b64565b600260015561171b816131b9565b61172481613220565b6000818152600860205260409020600701546001600160a01b031661178b5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20626964646572733b207573652063616e63656c41756374696f6e0000006044820152606401610b64565b600081815260086020526040902054158015906117b057506117ac81613298565b4210155b6117fc5760405162461bcd60e51b815260206004820152601760248201527f61756374696f6e206973206e6f7420636f6d706c6574650000000000000000006044820152606401610b64565b600081815260086020818152604092839020835161018081018552815481526001820154818401526002820154818601526003820154606080830191909152600483015460ff811615156080808501919091526001600160a01b0361010092839004811660a08601526005860154811660c08601526006860154811660e08601526007860154811692850192909252958401541661012083015285519485018652600983015463ffffffff808216875264010000000082048116878701526801000000000000000082048116878901526c0100000000000000000000000090910416908501526101408101939093528351808501909452600a8101548452600b0154908301526101608101919091526119f08260008181526008602081815260408084206004810180546001600160a01b03610100909104168652600980855283872060038401805489529086529387208790559686529284905284815560018101859055600281018590559084905581547fffffffffffffffffffffff000000000000000000000000000000000000000000169091556005810180546001600160a01b03199081169091556006820180548216905560078201805482169055918101805490921690915591820180546fffffffffffffffffffffffffffffffff19169055600a8201819055600b90910155565b60006127108261014001516060015163ffffffff1683610160015160000151611a199190613d5e565b611a239190613d7d565b905060008261016001516020015182611a3c9190613cea565b1115611ad057611ad0600460009054906101000a90046001600160a01b03166001600160a01b031663931742d36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abc9190613d9f565b610160840151602001516110479084613cea565b60055460a083015160608401516040517fb85ed7e40000000000000000000000000000000000000000000000000000000081526000936001600160a01b03169263b85ed7e492611b36926004016001600160a01b03929092168252602082015260400190565b602060405180830381865afa158015611b53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b779190613d9f565b90506001600160a01b038116611bed578260a001516001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611be5575060408051601f3d908101601f19168201909252611be291810190613d9f565b60015b15611bed5790505b60008360c001516001600160a01b0316826001600160a01b031614158015611c1d57506001600160a01b03821615155b15611dad5760065460a08501516060860151610160870151516040517ff533b8020000000000000000000000000000000000000000000000000000000081526001600160a01b039384166004820152602481019290925260448201526000928392169063f533b802906064016000604051808303816000875af1158015611ca8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cd09190810190613e4b565b8151919350915060005b81811015611da857828181518110611cf457611cf4613f10565b6020026020010151600014158015611d38575060006001600160a01b0316848281518110611d2457611d24613f10565b60200260200101516001600160a01b031614155b15611da057828181518110611d4f57611d4f613f10565b602002602001015185611d629190613cea565b9450611da0848281518110611d7957611d79613f10565b6020026020010151848381518110611d9357611d93613f10565b60200260200101516135e6565b600101611cda565b505050505b6000838286610160015160000151611dc59190613d1f565b611dcf9190613d1f565b9050611ddf8560e00151826135e6565b60a08501516101008601516060870151604051632142170760e11b81523060048201526001600160a01b03928316602482015260448101919091529116906342842e0e90606401600060405180830381600087803b158015611e4057600080fd5b505af1158015611e54573d6000803e3d6000fd5b50505061010086015160c08701516101608801518051602091820151604080519283529282015290810188905260608101869052608081018590526001600160a01b03928316935091169088907f5266f731bbd4fe6f9a1fb89425bfacb9adca3695584d4398361c2a5a32f97c6f9060a00160405180910390a450506001805550505050565b611ee261310a565b611eeb81613163565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260208190526040902060010154611f2b81610a2f612f46565b610a3e838361306d565b611f3d612f46565b6001600160a01b0316611f586002546001600160a01b031690565b6001600160a01b031614611fae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b64565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6040517fe3a9db1a0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000096025b8276cf130c79fbb2a33951a0eaf00b43969091169063e3a9db1a90602401602060405180830381865afa158015612054573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f09190613f26565b61208061310a565b61208981613163565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6120b4826134ba565b6120bd826131b9565b6120c682613547565b60008281526008602052604090206004015460ff1615158115150361212d5760405162461bcd60e51b815260206004820181905260248201527f61756374696f6e20706175736564207374617465206e6f7420757064617465646044820152606401610b64565b801561215757600082815260086020526040902067ffffffffffffffff4216600190910155612230565b80158015612175575060008281526008602052604090206001015415155b801561218e575060008281526008602052604090205415155b15612230576000828152600860205260409020600701546001600160a01b03161561221d576000828152600860205260409020600101546121cf9042613d1f565b600083815260086020526040902060090180546004906121fe908490640100000000900463ffffffff16613d36565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b6000828152600860205260408120600101555b600082815260086020526040902060048101805460ff1916831515179055600501546001600160a01b0316827fae3de7f7c5462d334767296a417566554b9cc3078ea4d932182f55a4556cb400612285612f46565b6000868152600860209081526040918290206009015482516001600160a01b03909416845287151591840191909152640100000000900463ffffffff169082015260600160405180910390a35050565b6122dd612f46565b6001600160a01b03166122f86002546001600160a01b031690565b6001600160a01b03161461234e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b64565b6001600160a01b0381166123ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b64565b6123d381613468565b50565b6123e06000613220565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018890526000906001600160a01b038a1690636352211e90602401602060405180830381865afa158015612441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124659190613d9f565b9050806001600160a01b0316612479612f46565b6001600160a01b031614806124965750612496600061080f612f46565b8061253557506124a4612f46565b6040517f081812fc000000000000000000000000000000000000000000000000000000008152600481018a90526001600160a01b03918216918b169063081812fc90602401602060405180830381865afa158015612506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252a9190613d9f565b6001600160a01b0316145b806125c25750886001600160a01b031663e985e9c582612553612f46565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa15801561259e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c29190613cb7565b6126345760405162461bcd60e51b815260206004820152602760248201527f6d75737420626520746f6b656e206f776e65722c2061646d696e2c206f72206160448201527f7070726f766564000000000000000000000000000000000000000000000000006064820152608401610b64565b6001600160a01b03831661268a5760405162461bcd60e51b815260206004820152601960248201527f6d75737420706173732066756e647320726563697069656e74000000000000006044820152606401610b64565b6001600160a01b03891660009081526009602090815260408083208b8452909152902054156126fb5760405162461bcd60e51b815260206004820152601660248201527f61756374696f6e20616c726561647920657869737473000000000000000000006044820152606401610b64565b6000871161274b5760405162461bcd60e51b815260206004820152601360248201527f52657365727665206d757374206265203e2030000000000000000000000000006044820152606401610b64565b600060405180610180016040528060008152602001600081526020018981526020018a815260200188151581526020018b6001600160a01b03168152602001836001600160a01b03168152602001856001600160a01b0316815260200160006001600160a01b031681526020016127c0612f46565b6001600160a01b031681526020016040518060800160405280600460009054906101000a90046001600160a01b03166001600160a01b031663e092c7fd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561282c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128509190613d02565b63ffffffff168152602001600460009054906101000a90046001600160a01b03166001600160a01b031663f309051c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156128ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d29190613d02565b63ffffffff168152602001600460009054906101000a90046001600160a01b03166001600160a01b03166346d3eb356040518163ffffffff1660e01b8152600401602060405180830381865afa158015612930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129549190613d02565b63ffffffff168152602001600460009054906101000a90046001600160a01b03166001600160a01b0316637cdd2a566040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129d69190613d02565b63ffffffff1681525081526020016040518060400160405280600081526020016000815250815250905060008563ffffffff161115612ae957600480546040805163e536f52360e01b815290516001600160a01b039092169263e536f5239282820192602092908290030181865afa158015612a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a7a9190613d02565b63ffffffff168563ffffffff161015612ad55760405162461bcd60e51b815260206004820152601f60248201527f6475726174696f6e206d757374206265203e3d2074696d6520627566666572006044820152606401610b64565b61014081015163ffffffff86166020909101525b67ffffffffffffffff861615612b67578567ffffffffffffffff164210612b525760405162461bcd60e51b815260206004820181905260248201527f73746172742074696d65206d75737420626520696e20746865206675747572656044820152606401610b64565b67ffffffffffffffff86168152600060808201525b612b74600061080f612f46565b15612b98576127108361ffff1611612b985761014081015161ffff84166060909101525b600a8054906000612ba883613f3f565b91905055508060086000600a5481526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff02191690831515021790555060a08201518160040160016101000a8154816001600160a01b0302191690836001600160a01b0316021790555060c08201518160050160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e08201518160060160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101008201518160070160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101208201518160080160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101408201518160090160008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160086101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001600c6101000a81548163ffffffff021916908363ffffffff160217905550505061016082015181600a0160008201518160000155602082015181600101555050905050600a54600960008c6001600160a01b03166001600160a01b0316815260200190815260200160002060008b815260200190815260200160002081905550896001600160a01b03166342842e0e83308c6040518463ffffffff1660e01b8152600401612e45939291906001600160a01b039384168152919092166020820152604081019190915260600190565b600060405180830381600087803b158015612e5f57600080fd5b505af1158015612e73573d6000803e3d6000fd5b50505050888a6001600160a01b0316600a547f06952524abc53bbaaec0e9946e1efca21619d6eb6ac9dfa18ca36d9ffc09a2b385888d8760800151612eb6612f46565b6101408a0151602090810151604080516001600160a01b03988916815296881692870192909252858201949094529115156060850152909316608083015263ffffffff1660a082015290519081900360c00190a450505050505050505050565b6003546000906001600160a01b03163303612f38575060131936013560601c90565b503390565b905090565b3390565b6000612f3d612f16565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610b7757612f8c816001600160a01b0316601461360a565b612f9783602061360a565b604051602001612fa8929190613f88565b60408051601f198184030181529082905262461bcd60e51b8252610b6491600401614009565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610b77576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055613029612f46565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610b77576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556130c6612f46565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b613117600061080f612f46565b6113075760405162461bcd60e51b815260206004820152601660248201527f63616c6c6572206973206e6f7420616e2061646d696e000000000000000000006044820152606401610b64565b6001600160a01b0381166123d35760405162461bcd60e51b815260206004820152601560248201527f302061646472657373206e6f7420616c6c6f77656400000000000000000000006044820152606401610b64565b6000818152600860205260409020600601546001600160a01b03166123d35760405162461bcd60e51b815260206004820152601560248201527f61756374696f6e20646f65736e277420657869737400000000000000000000006044820152606401610b64565b600354600160a81b900460ff1615801561324c575060008181526008602052604090206004015460ff16155b6123d35760405162461bcd60e51b815260206004820152600e60248201527f61756374696f6e207061757365640000000000000000000000000000000000006044820152606401610b64565b6000818152600860205260408120600981015490546109f091640100000000900463ffffffff1690613cea565b6000806000806132d58a8a61383a565b90925090506001600160a01b03851661333d57878210156133385760405162461bcd60e51b815260206004820152600f60248201527f72657365727665206e6f74206d657400000000000000000000000000000000006044820152606401610b64565b6133ad565b61271061334a8789613d5e565b6133549190613d7d565b61335e9088613cea565b8210156133ad5760405162461bcd60e51b815260206004820152601360248201527f6d696e696d756d20626964206e6f74206d6574000000000000000000000000006044820152606401610b64565b90999098509650505050505050565b6000826001600160a01b03168261753090604051600060405180830381858888f193505050503d806000811461340e576040519150601f19603f3d011682016040523d82523d6000602084013e613413565b606091505b5050905080610a3e57604080516001600160a01b0385168152602081018490527f1c43b9761b3fba5321ca8212bfc231945f668ccc0c446f333999eea9ce8fda81910160405180910390a1610a3e838361388b565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815260086020819052604090912001546001600160a01b03166134de612f46565b6001600160a01b031614806134fb57506134fb600061080f612f46565b6123d35760405162461bcd60e51b815260206004820181905260248201527f6d7573742062652061756374696f6e2063726561746f72206f722061646d696e6044820152606401610b64565b613554600061080f612f46565b6123d3576000818152600860205260409020600701546001600160a01b0316156123d35760405162461bcd60e51b815260206004820152603060248201527f6f6e6c792061646d696e2063616e20757064617465207374617465206f66206160448201527f756374696f6e20776974682062696473000000000000000000000000000000006064820152608401610b64565b6001600160a01b0382163b1561360057610b7782826133bc565b610b77828261388b565b60606000613619836002613d5e565b613624906002613cea565b67ffffffffffffffff81111561363c5761363c61395b565b6040519080825280601f01601f191660200182016040528015613666576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061369d5761369d613f10565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061370057613700613f10565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061373c846002613d5e565b613747906001613cea565b90505b60018111156137e4577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061378857613788613f10565b1a60f81b82828151811061379e5761379e613f10565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936137dd8161403c565b905061374a565b5083156138335760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b64565b9392505050565b6000808061384a84612710614053565b67ffffffffffffffff16905060008161386587612710613d5e565b61386f9190613d7d565b9050600061387d8288613d1f565b919791965090945050505050565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301527f00000000000000000000000096025b8276cf130c79fbb2a33951a0eaf00b4396169063f340fa019083906024016000604051808303818588803b15801561390857600080fd5b505af1158015610a08573d6000803e3d6000fd5b60006020828403121561392e57600080fd5b81356001600160e01b03198116811461383357600080fd5b6001600160a01b03811681146123d357600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561399a5761399a61395b565b604052919050565b600080600080608085870312156139b857600080fd5b84356139c381613946565b93506020858101356139d481613946565b935060408601359250606086013567ffffffffffffffff808211156139f857600080fd5b818801915088601f830112613a0c57600080fd5b813581811115613a1e57613a1e61395b565b613a30601f8201601f19168501613971565b91508082528984828501011115613a4657600080fd5b808484018584013760008482840101525080935050505092959194509250565b80151581146123d357600080fd5b803567ffffffffffffffff81168114613a8c57600080fd5b919050565b63ffffffff811681146123d357600080fd5b600080600080600080600060e0888a031215613abe57600080fd5b8735613ac981613946565b965060208801359550604088013594506060880135613ae781613a66565b9350613af560808901613a74565b925060a0880135613b0581613a91565b915060c0880135613b1581613946565b8091505092959891949750929550565b600060208284031215613b3757600080fd5b5035919050565b60008060408385031215613b5157600080fd5b823591506020830135613b6381613946565b809150509250929050565b600060208284031215613b8057600080fd5b813561383381613946565b600060208284031215613b9d57600080fd5b813561383381613a66565b60008060408385031215613bbb57600080fd5b8235613bc681613946565b946020939093013593505050565b60008060408385031215613be757600080fd5b50508035926020909101359150565b60008060408385031215613c0957600080fd5b823591506020830135613b6381613a66565b600080600080600080600080610100898b031215613c3857600080fd5b8835613c4381613946565b975060208901359650604089013595506060890135613c6181613a66565b9450613c6f60808a01613a74565b935060a0890135613c7f81613a91565b925060c0890135613c8f81613946565b915060e089013561ffff81168114613ca657600080fd5b809150509295985092959890939650565b600060208284031215613cc957600080fd5b815161383381613a66565b634e487b7160e01b600052601160045260246000fd5b60008219821115613cfd57613cfd613cd4565b500190565b600060208284031215613d1457600080fd5b815161383381613a91565b600082821015613d3157613d31613cd4565b500390565b600063ffffffff808316818516808303821115613d5557613d55613cd4565b01949350505050565b6000816000190483118215151615613d7857613d78613cd4565b500290565b600082613d9a57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613db157600080fd5b815161383381613946565b600067ffffffffffffffff821115613dd657613dd661395b565b5060051b60200190565b600082601f830112613df157600080fd5b81516020613e06613e0183613dbc565b613971565b82815260059290921b84018101918181019086841115613e2557600080fd5b8286015b84811015613e405780518352918301918301613e29565b509695505050505050565b60008060408385031215613e5e57600080fd5b825167ffffffffffffffff80821115613e7657600080fd5b818501915085601f830112613e8a57600080fd5b81516020613e9a613e0183613dbc565b82815260059290921b84018101918181019089841115613eb957600080fd5b948201945b83861015613ee0578551613ed181613946565b82529482019490820190613ebe565b91880151919650909350505080821115613ef957600080fd5b50613f0685828601613de0565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613f3857600080fd5b5051919050565b600060018201613f5157613f51613cd4565b5060010190565b60005b83811015613f73578181015183820152602001613f5b565b83811115613f82576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613fc0816017850160208801613f58565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613ffd816028840160208801613f58565b01602801949350505050565b6020815260008251806020840152614028816040850160208701613f58565b601f01601f19169190910160400192915050565b60008161404b5761404b613cd4565b506000190190565b600067ffffffffffffffff808316818516808303821115613d5557613d55613cd456fea26469706673582212209108fd94bc74ee72ac2630adf66aae7b4c0fb3f7127071645bcb24aa41d2bd8f64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003fc850f34d55c256937ab34294e68972988ec15f0000000000000000000000002a9699de82f9f057638fcaed65e886847a17c4ef00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000385603ab55642cb4dd5de3ae9e306809991804f00000000000000000000000046852869902d9f8a4d76195fc23add15d921abd9
-----Decoded View---------------
Arg [0] : _marketSettings (address): 0x3fc850f34d55C256937ab34294E68972988ec15f
Arg [1] : _creatorRegistry (address): 0x2a9699dE82f9F057638fCaED65E886847A17c4EF
Arg [2] : _trustedForwarder (address): 0x0000000000000000000000000000000000000000
Arg [3] : _manifoldRoyaltyEngineAddress (address): 0x0385603ab55642cb4Dd5De3aE9e306809991804f
Arg [4] : _auctionV1Address (address): 0x46852869902d9F8A4D76195fC23Add15d921aBd9
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000003fc850f34d55c256937ab34294e68972988ec15f
Arg [1] : 0000000000000000000000002a9699de82f9f057638fcaed65e886847a17c4ef
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000385603ab55642cb4dd5de3ae9e306809991804f
Arg [4] : 00000000000000000000000046852869902d9f8a4d76195fc23add15d921abd9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,687.38 | 0.103 | $276.8 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.