Overview
Max Total Supply
30 GG
Holders
26
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GucciVaultArtSpace
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; /// @title: The Next 100 Years of Gucci /// @author: niftykit.com import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./BaseCollection.sol"; contract GucciVaultArtSpace is ERC721, ERC721Enumerable, ERC721URIStorage, ERC2981, ReentrancyGuard, AccessControl, Ownable, BaseCollection { using SafeMath for uint256; using Counters for Counters.Counter; using Address for address; // Minimum time buffer after a new bid is placed uint256 public immutable timeBuffer; // Minimum percentage bid amount uint96 public immutable minBidNumerator; // Base royalty percentage uint96 private immutable _baseFeeNumerator; mapping(uint256 => Auction) private _auctions; Counters.Counter private _auctionIdCounter; modifier hasAuction(uint256 auctionId) { require( _auctions[auctionId].creator != address(0), "Auction doesn't exist" ); _; } constructor( string memory name_, string memory symbol_, uint256 timeBuffer_, uint96 minBidNumerator_, uint96 baseFeeNumerator_, address niftyKit_ ) ERC721(name_, symbol_) BaseCollection(niftyKit_) { timeBuffer = timeBuffer_; minBidNumerator = minBidNumerator_; _baseFeeNumerator = baseFeeNumerator_; _auctionIdCounter.increment(); _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function createAuction( string calldata tokenURI_, address creator, uint256 reservePrice, uint256 duration ) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 auctionId = _auctionIdCounter.current(); require(creator != address(0), "Creator must exist"); require(duration >= timeBuffer, "Duration too short"); _auctions[auctionId] = Auction({ tokenURI: tokenURI_, creator: creator, reservePrice: reservePrice, duration: duration, amount: 0, bidder: address(0), active: false, startedAt: 0 }); _auctionIdCounter.increment(); emit AuctionCreated(auctionId, creator); } function setAuction( uint256 auctionId, string calldata tokenURI_, address creator, uint256 reservePrice, uint256 duration ) external hasAuction(auctionId) onlyRole(DEFAULT_ADMIN_ROLE) { require(creator != address(0), "Creator must exist"); require(duration >= timeBuffer, "Duration too short"); _auctions[auctionId].tokenURI = tokenURI_; _auctions[auctionId].creator = creator; _auctions[auctionId].reservePrice = reservePrice; _auctions[auctionId].duration = duration; } function batchSetAuctionActive(uint256[] calldata auctionIds, bool active) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 length = auctionIds.length; for (uint256 i = 0; i < length; i++) { setAuctionActive(auctionIds[i], active); } } function setAuctionActive(uint256 auctionId, bool active) public hasAuction(auctionId) onlyRole(DEFAULT_ADMIN_ROLE) { _auctions[auctionId].active = active; emit AuctionActive(auctionId, active); } function cancelAuction(uint256 auctionId) external hasAuction(auctionId) onlyRole(DEFAULT_ADMIN_ROLE) { Auction memory auction = _auctions[auctionId]; address bidder = auction.bidder; require(bidder != address(0), "Has no bidder"); _auctions[auctionId].active = false; _auctions[auctionId].amount = 0; _auctions[auctionId].bidder = address(0); _auctions[auctionId].startedAt = 0; Address.sendValue(payable(bidder), auction.amount); } function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyRole(DEFAULT_ADMIN_ROLE) { _setTokenRoyalty(tokenId, receiver, feeNumerator); } function setTokenURI( uint256 tokenId, string calldata tokenURI_ ) external onlyRole(DEFAULT_ADMIN_ROLE) { _setTokenURI(tokenId, tokenURI_); } function getAuction(uint256 auctionId) external view hasAuction(auctionId) returns ( string memory, // tokenURI address, // creator uint256, // reservePrice uint256, // duration uint256, // amount address, // bidder bool, // active uint256 // startedAt ) { Auction memory auction = _auctions[auctionId]; return ( auction.tokenURI, auction.creator, auction.reservePrice, auction.duration, auction.amount, auction.bidder, auction.active, auction.startedAt ); } function placeBid(uint256 auctionId) external payable hasAuction(auctionId) nonReentrant { Auction memory auction = _auctions[auctionId]; require(auction.active, "Auction not active"); require(msg.value > 0, "Has no value"); require(msg.value >= auction.reservePrice, "Lower than reserve price"); require( auction.startedAt == 0 || block.timestamp < auction.startedAt.add(auction.duration), "Auction expired" ); require( msg.value >= auction.amount.add( auction.amount.mul(minBidNumerator).div(10000) ), "Lower than minimum bid amount" ); // Start the auction when we receive the first bid if (auction.startedAt == 0) { _auctions[auctionId].startedAt = block.timestamp; } // Return the previous bid if there is any if (auction.bidder != address(0)) { Address.sendValue(payable(address(auction.bidder)), auction.amount); } // Extend duration if bid was placed below the time buffer if ( _auctions[auctionId].startedAt.add(auction.duration).sub( block.timestamp ) < timeBuffer ) { uint256 prevDuration = auction.duration; _auctions[auctionId].duration = prevDuration.add( timeBuffer.sub( auction.startedAt.add(prevDuration).sub(block.timestamp) ) ); } _auctions[auctionId].amount = msg.value; _auctions[auctionId].bidder = _msgSender(); emit AuctionBidPlaced(auctionId, _msgSender(), msg.value); } function endAuction(uint256 auctionId) external hasAuction(auctionId) nonReentrant { Auction memory auction = _auctions[auctionId]; require(auction.active, "Auction not active"); require(auction.startedAt != 0, "Auction hasn't started"); require( block.timestamp >= auction.startedAt.add(auction.duration), "Auction hasn't completed" ); _safeMint(auction.bidder, auctionId); _setTokenURI(auctionId, auction.tokenURI); _setTokenRoyalty(auctionId, auction.creator, _baseFeeNumerator); _niftyKit.addFees(auction.amount); uint256 fees = _niftyKit.getFees(address(this)); _niftyKit.addFeesClaimed(fees); Address.sendValue(payable(address(_niftyKit)), fees); Address.sendValue(payable(auction.creator), auction.amount.sub(fees)); emit AuctionEnded(auctionId, auction.bidder, auction.amount); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC2981, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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 (last updated v4.6.0) (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); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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 virtual { 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 virtual 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/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 (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "./IAuctionCollection.sol"; import "./INiftyKit.sol"; abstract contract BaseCollection is IAuctionCollection { INiftyKit internal _niftyKit; constructor(address niftyKit_) { _niftyKit = INiftyKit(niftyKit_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// 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/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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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: UNLICENSED pragma solidity ^0.8.9; interface IAuctionCollection { struct Auction { // Token URI for auction string tokenURI; // Address that should receive the funds address creator; // Reserve price uint256 reservePrice; // The length of time to run the auction for uint256 duration; // Current highest bid amount uint256 amount; // Address of the highest bidder address bidder; // Auction is active bool active; // Auction started time uint256 startedAt; } event AuctionCreated(uint256 indexed auctionId, address indexed creator); event AuctionBidPlaced( uint256 indexed auctionId, address indexed bidder, uint256 amount ); event AuctionActive(uint256 indexed auctionId, bool indexed active); event AuctionEnded( uint256 indexed auctionId, address indexed winner, uint256 amount ); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; interface INiftyKit { /** * @dev Add fees from Collection */ function addFees(uint256 amount) external; /** * @dev Add fees claimed by the Collection */ function addFeesClaimed(uint256 amount) external; /** * @dev Get fees accrued by the account */ function getFees(address account) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"timeBuffer_","type":"uint256"},{"internalType":"uint96","name":"minBidNumerator_","type":"uint96"},{"internalType":"uint96","name":"baseFeeNumerator_","type":"uint96"},{"internalType":"address","name":"niftyKit_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"active","type":"bool"}],"name":"AuctionActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionBidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"creator","type":"address"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionEnded","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"auctionIds","type":"uint256[]"},{"internalType":"bool","name":"active","type":"bool"}],"name":"batchSetAuctionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"cancelAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"createAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"endAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"getAuction","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBidNumerator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"placeBid","outputs":[],"stateMutability":"payable","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":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"name":"setAuctionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b50604051620044b4380380620044b48339810160408190526200003491620002ba565b808686600062000045838262000403565b50600162000054828262000403565b50506001600d55506200006733620000d0565b601080546001600160a01b0319166001600160a01b039290921691909117905560808490526001600160601b0383811660a052821660c052620000b7601262000122602090811b6200219717901c565b620000c46000336200012b565b505050505050620004cf565b600f80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b6000828152600e602090815260408083206001600160a01b038516845290915290205460ff16620001cc576000828152600e602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200018b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001f857600080fd5b81516001600160401b0380821115620002155762000215620001d0565b604051601f8301601f19908116603f01168101908282118183101715620002405762000240620001d0565b816040528381526020925086838588010111156200025d57600080fd5b600091505b8382101562000281578582018301518183018401529082019062000262565b83821115620002935760008385830101525b9695505050505050565b80516001600160601b0381168114620002b557600080fd5b919050565b60008060008060008060c08789031215620002d457600080fd5b86516001600160401b0380821115620002ec57600080fd5b620002fa8a838b01620001e6565b975060208901519150808211156200031157600080fd5b506200032089828a01620001e6565b9550506040870151935062000338606088016200029d565b925062000348608088016200029d565b60a08801519092506001600160a01b03811681146200036657600080fd5b809150509295509295509295565b600181811c908216806200038957607f821691505b602082108103620003aa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003fe57600081815260208120601f850160051c81016020861015620003d95750805b601f850160051c820191505b81811015620003fa57828155600101620003e5565b5050505b505050565b81516001600160401b038111156200041f576200041f620001d0565b620004378162000430845462000374565b84620003b0565b602080601f8311600181146200046f5760008415620004565750858301515b600019600386901b1c1916600185901b178555620003fa565b600085815260208120601f198616915b82811015620004a0578886015182559484019460019091019084016200047f565b5085821015620004bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c051613f92620005226000396000611dbb01526000818161054401526118be01526000818161075401528181610a9101528181610d1e015281816119b90152611a190152613f926000f3fe6080604052600436106102255760003560e01c8063715018a611610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146106b9578063d547741f146106d9578063e985e9c5146106f9578063ec91f2a414610742578063f2fde38b1461077657600080fd5b8063a22cb46514610619578063b88d4fde14610639578063b9a2de3a14610659578063c09fe13d14610679578063c598d2191461069957600080fd5b806391d14854116100f257806391d148541461059c57806395d89b41146105bc57806396b5a755146105d15780639979ef45146105f1578063a217fddf1461060457600080fd5b8063715018a6146104e957806378bd7935146104fe5780638677a1d2146105325780638da5cb5b1461057e57600080fd5b806325469d1c116101b157806342842e0e1161017557806342842e0e146104495780634f6ccce7146104695780635944c753146104895780636352211e146104a957806370a08231146104c957600080fd5b806325469d1c1461038a5780632a55205a146103aa5780632f2ff15d146103e95780632f745c591461040957806336568abe1461042957600080fd5b8063162094c4116101f8578063162094c4146102db57806318160ddd146102fb5780631f967e031461031a57806323b872dd1461033a578063248a9ca31461035a57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a6102453660046134e3565b610796565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746107a7565b6040516102569190613558565b34801561028d57600080fd5b506102a161029c36600461356b565b610839565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d43660046135a0565b6108c6565b005b3480156102e757600080fd5b506102d96102f636600461360c565b6109db565b34801561030757600080fd5b506008545b604051908152602001610256565b34801561032657600080fd5b506102d9610335366004613658565b610a2c565b34801561034657600080fd5b506102d96103553660046136be565b610c5c565b34801561036657600080fd5b5061030c61037536600461356b565b6000908152600e602052604090206001015490565b34801561039657600080fd5b506102d96103a53660046136fa565b610c8d565b3480156103b657600080fd5b506103ca6103c536600461376a565b610ddf565b604080516001600160a01b039093168352602083019190915201610256565b3480156103f557600080fd5b506102d961040436600461378c565b610e8d565b34801561041557600080fd5b5061030c6104243660046135a0565b610eb2565b34801561043557600080fd5b506102d961044436600461378c565b610f48565b34801561045557600080fd5b506102d96104643660046136be565b610fc6565b34801561047557600080fd5b5061030c61048436600461356b565b610fe1565b34801561049557600080fd5b506102d96104a43660046137b8565b611074565b3480156104b557600080fd5b506102a16104c436600461356b565b61108a565b3480156104d557600080fd5b5061030c6104e4366004613804565b611101565b3480156104f557600080fd5b506102d9611188565b34801561050a57600080fd5b5061051e61051936600461356b565b6111ee565b60405161025698979695949392919061381f565b34801561053e57600080fd5b506105667f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160601b039091168152602001610256565b34801561058a57600080fd5b50600f546001600160a01b03166102a1565b3480156105a857600080fd5b5061024a6105b736600461378c565b6113c9565b3480156105c857600080fd5b506102746113f4565b3480156105dd57600080fd5b506102d96105ec36600461356b565b611403565b6102d96105ff36600461356b565b6115dc565b34801561061057600080fd5b5061030c600081565b34801561062557600080fd5b506102d9610634366004613888565b611ac7565b34801561064557600080fd5b506102d96106543660046138c8565b611ad2565b34801561066557600080fd5b506102d961067436600461356b565b611b04565b34801561068557600080fd5b506102d96106943660046139a4565b611fa8565b3480156106a557600080fd5b506102d96106b43660046139c7565b612049565b3480156106c557600080fd5b506102746106d436600461356b565b61209c565b3480156106e557600080fd5b506102d96106f436600461378c565b6120a7565b34801561070557600080fd5b5061024a610714366004613a4b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561074e57600080fd5b5061030c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561078257600080fd5b506102d9610791366004613804565b6120cc565b60006107a1826121a0565b92915050565b6060600080546107b690613a75565b80601f01602080910402602001604051908101604052809291908181526020018280546107e290613a75565b801561082f5780601f106108045761010080835404028352916020019161082f565b820191906000526020600020905b81548152906001019060200180831161081257829003601f168201915b5050505050905090565b6000610844826121c5565b6108aa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108d18261108a565b9050806001600160a01b0316836001600160a01b03160361093e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108a1565b336001600160a01b038216148061095a575061095a8133610714565b6109cc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108a1565b6109d683836121e2565b505050565b60006109e681612250565b610a268484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061225a92505050565b50505050565b6000610a3781612250565b6000610a4260125490565b90506001600160a01b038516610a8f5760405162461bcd60e51b815260206004820152601260248201527110dc99585d1bdc881b5d5cdd08195e1a5cdd60721b60448201526064016108a1565b7f0000000000000000000000000000000000000000000000000000000000000000831015610af45760405162461bcd60e51b8152602060048201526012602482015271111d5c985d1a5bdb881d1bdbc81cda1bdc9d60721b60448201526064016108a1565b60405180610100016040528088888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506001600160a01b0388166020808401919091526040808401899052606084018890526080840183905260a0840183905260c0840183905260e0909301829052848252601190522081518190610b8d9082613af5565b5060208201516001820180546001600160a01b039283166001600160a01b031990911617905560408301516002830155606083015160038301556080830151600483015560a083015160058301805460c08601511515600160a01b026001600160a81b0319909116929093169190911791909117905560e090910151600690910155610c1d601280546001019055565b6040516001600160a01b0386169082907f5d551e2a2cc977fd8c530317059b4f2d9f504fb82f7dfad736f8d56679bcdfd090600090a350505050505050565b610c6633826122de565b610c825760405162461bcd60e51b81526004016108a190613bb5565b6109d68383836123c8565b60008681526011602052604090206001015486906001600160a01b0316610cc65760405162461bcd60e51b81526004016108a190613c06565b6000610cd181612250565b6001600160a01b038516610d1c5760405162461bcd60e51b815260206004820152601260248201527110dc99585d1bdc881b5d5cdd08195e1a5cdd60721b60448201526064016108a1565b7f0000000000000000000000000000000000000000000000000000000000000000831015610d815760405162461bcd60e51b8152602060048201526012602482015271111d5c985d1a5bdb881d1bdbc81cda1bdc9d60721b60448201526064016108a1565b6000888152601160205260409020610d9a878983613c35565b5050506000958652601160205260409095206001810180546001600160a01b0319166001600160a01b0394909416939093179092556002820155600301929092555050565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e54575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e73906001600160601b031687613d0b565b610e7d9190613d40565b91519350909150505b9250929050565b6000828152600e6020526040902060010154610ea881612250565b6109d6838361256f565b6000610ebd83611101565b8210610f1f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108a1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b0381163314610fb85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108a1565b610fc282826125f5565b5050565b6109d683838360405180602001604052806000815250611ad2565b6000610fec60085490565b821061104f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108a1565b6008828154811061106257611062613d54565b90600052602060002001549050919050565b600061107f81612250565b610a2684848461265c565b6000818152600260205260408120546001600160a01b0316806107a15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108a1565b60006001600160a01b03821661116c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108a1565b506001600160a01b031660009081526003602052604090205490565b600f546001600160a01b031633146111e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a1565b6111ec600061276a565b565b6000818152601160205260408120600101546060919081908190819081908190819089906001600160a01b03166112375760405162461bcd60e51b81526004016108a190613c06565b60008a8152601160205260408082208151610100810190925280548290829061125f90613a75565b80601f016020809104026020016040519081016040528092919081815260200182805461128b90613a75565b80156112d85780601f106112ad576101008083540402835291602001916112d8565b820191906000526020600020905b8154815290600101906020018083116112bb57829003601f168201915b505050505081526020016001820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016005820160149054906101000a900460ff161515151581526020016006820154815250509050806000015181602001518260400151836060015184608001518560a001518660c001518760e00151995099509950995099509950995099505050919395975091939597565b6000918252600e602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546107b690613a75565b60008181526011602052604090206001015481906001600160a01b031661143c5760405162461bcd60e51b81526004016108a190613c06565b600061144781612250565b6000838152601160205260408082208151610100810190925280548290829061146f90613a75565b80601f016020809104026020016040519081016040528092919081815260200182805461149b90613a75565b80156114e85780601f106114bd576101008083540402835291602001916114e8565b820191906000526020600020905b8154815290600101906020018083116114cb57829003601f168201915b505050918352505060018201546001600160a01b039081166020830152600283015460408301526003830154606083015260048301546080830152600583015480821660a080850191909152600160a01b90910460ff16151560c084015260069093015460e09092019190915290820151919250811661159a5760405162461bcd60e51b815260206004820152600d60248201526c2430b9903737903134b23232b960991b60448201526064016108a1565b6000858152601160205260408120600581018054600483018490556001600160a81b03191690556006015560808201516115d59082906127bc565b5050505050565b60008181526011602052604090206001015481906001600160a01b03166116155760405162461bcd60e51b81526004016108a190613c06565b6002600d54036116675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a1565b6002600d556000828152601160205260408082208151610100810190925280548290829061169490613a75565b80601f01602080910402602001604051908101604052809291908181526020018280546116c090613a75565b801561170d5780601f106116e25761010080835404028352916020019161170d565b820191906000526020600020905b8154815290600101906020018083116116f057829003601f168201915b505050918352505060018201546001600160a01b039081166020830152600283015460408301526003830154606083015260048301546080830152600583015490811660a0830152600160a01b900460ff16151560c08083019190915260069092015460e0909101528101519091506117bd5760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206e6f742061637469766560701b60448201526064016108a1565b600034116117fc5760405162461bcd60e51b815260206004820152600c60248201526b486173206e6f2076616c756560a01b60448201526064016108a1565b80604001513410156118505760405162461bcd60e51b815260206004820152601860248201527f4c6f776572207468616e2072657365727665207072696365000000000000000060448201526064016108a1565b60e081015115806118725750606081015160e082015161186f916128d5565b42105b6118b05760405162461bcd60e51b815260206004820152600f60248201526e105d58dd1a5bdb88195e1c1a5c9959608a1b60448201526064016108a1565b61190a6118ff6127106118f97f00000000000000000000000000000000000000000000000000000000000000006001600160601b031685608001516128e890919063ffffffff16565b906128f4565b6080830151906128d5565b3410156119595760405162461bcd60e51b815260206004820152601d60248201527f4c6f776572207468616e206d696e696d756d2062696420616d6f756e7400000060448201526064016108a1565b8060e0015160000361197b576000838152601160205260409020426006909101555b60a08101516001600160a01b0316156119a0576119a08160a0015182608001516127bc565b60608101516000848152601160205260409020600601547f0000000000000000000000000000000000000000000000000000000000000000916119ef9142916119e991906128d5565b90612900565b1015611a5957606081015160e0820151611a4590611a3e90611a179042906119e990866128d5565b7f000000000000000000000000000000000000000000000000000000000000000090612900565b82906128d5565b600085815260116020526040902060030155505b6000838152601160209081526040918290203460048201819055600590910180546001600160a01b03191633908117909155925190815285917f190a5c21cc0eb4d267fd75d52d8c9f16f57e9e2fba3863695c51cc73236abf66910160405180910390a350506001600d5550565b610fc233838361290c565b611adc33836122de565b611af85760405162461bcd60e51b81526004016108a190613bb5565b610a26848484846129da565b60008181526011602052604090206001015481906001600160a01b0316611b3d5760405162461bcd60e51b81526004016108a190613c06565b6002600d5403611b8f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a1565b6002600d5560008281526011602052604080822081516101008101909252805482908290611bbc90613a75565b80601f0160208091040260200160405190810160405280929190818152602001828054611be890613a75565b8015611c355780601f10611c0a57610100808354040283529160200191611c35565b820191906000526020600020905b815481529060010190602001808311611c1857829003601f168201915b505050918352505060018201546001600160a01b039081166020830152600283015460408301526003830154606083015260048301546080830152600583015490811660a0830152600160a01b900460ff16151560c08083019190915260069092015460e090910152810151909150611ce55760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206e6f742061637469766560701b60448201526064016108a1565b8060e00151600003611d325760405162461bcd60e51b8152602060048201526016602482015275105d58dd1a5bdb881a185cdb89dd081cdd185c9d195960521b60448201526064016108a1565b606081015160e0820151611d45916128d5565b421015611d945760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e206861736e277420636f6d706c65746564000000000000000060448201526064016108a1565b611da28160a0015184612a0d565b611db083826000015161225a565b611ddf8382602001517f000000000000000000000000000000000000000000000000000000000000000061265c565b601054608082015160405163107e9cf160e01b81526001600160a01b039092169163107e9cf191611e169160040190815260200190565b600060405180830381600087803b158015611e3057600080fd5b505af1158015611e44573d6000803e3d6000fd5b5050601054604051639af608c960e01b8152306004820152600093506001600160a01b039091169150639af608c990602401602060405180830381865afa158015611e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb79190613d6a565b60105460405163b9bff4bb60e01b8152600481018390529192506001600160a01b03169063b9bff4bb90602401600060405180830381600087803b158015611efe57600080fd5b505af1158015611f12573d6000803e3d6000fd5b5050601054611f2d92506001600160a01b03169050826127bc565b611f518260200151611f4c83856080015161290090919063ffffffff16565b6127bc565b8160a001516001600160a01b0316847fd2aa34a4fdbbc6dff6a3e56f46e0f3ae2a31d7785ff3487aa5c95c642acea5018460800151604051611f9591815260200190565b60405180910390a350506001600d555050565b60008281526011602052604090206001015482906001600160a01b0316611fe15760405162461bcd60e51b81526004016108a190613c06565b6000611fec81612250565b600084815260116020526040808220600501805460ff60a01b1916600160a01b871515908102919091179091559051909186917f24f7d96662c712aaf349b5e57a0f6c5edecf2838645dc2b4e8629f108b72163a9190a350505050565b600061205481612250565b8260005b818110156120945761208286868381811061207557612075613d54565b9050602002013585611fa8565b8061208c81613d83565b915050612058565b505050505050565b60606107a182612a27565b6000828152600e60205260409020600101546120c281612250565b6109d683836125f5565b600f546001600160a01b031633146121265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a1565b6001600160a01b03811661218b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a1565b6121948161276a565b50565b80546001019055565b60006001600160e01b03198216637965db0b60e01b14806107a157506107a182612b95565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122178261108a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6121948133612bba565b612263826121c5565b6122c65760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108a1565b6000828152600a602052604090206109d68282613af5565b60006122e9826121c5565b61234a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108a1565b60006123558361108a565b9050806001600160a01b0316846001600160a01b0316148061239c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806123c05750836001600160a01b03166123b584610839565b6001600160a01b0316145b949350505050565b826001600160a01b03166123db8261108a565b6001600160a01b03161461243f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108a1565b6001600160a01b0382166124a15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a1565b6124ac838383612c1e565b6124b76000826121e2565b6001600160a01b03831660009081526003602052604081208054600192906124e0908490613d9c565b90915550506001600160a01b038216600090815260036020526040812080546001929061250e908490613db3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61257982826113c9565b610fc2576000828152600e602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125b13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6125ff82826113c9565b15610fc2576000828152600e602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6127106001600160601b03821611156126ca5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108a1565b6001600160a01b0382166127205760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016108a1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600c90529190942093519051909116600160a01b029116179055565b600f80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8047101561280c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108a1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612859576040519150601f19603f3d011682016040523d82523d6000602084013e61285e565b606091505b50509050806109d65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108a1565b60006128e18284613db3565b9392505050565b60006128e18284613d0b565b60006128e18284613d40565b60006128e18284613d9c565b816001600160a01b0316836001600160a01b03160361296d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129e58484846123c8565b6129f184848484612c29565b610a265760405162461bcd60e51b81526004016108a190613dcb565b610fc2828260405180602001604052806000815250612d2a565b6060612a32826121c5565b612a985760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016108a1565b6000828152600a602052604081208054612ab190613a75565b80601f0160208091040260200160405190810160405280929190818152602001828054612add90613a75565b8015612b2a5780601f10612aff57610100808354040283529160200191612b2a565b820191906000526020600020905b815481529060010190602001808311612b0d57829003601f168201915b505050505090506000612b4860408051602081019091526000815290565b90508051600003612b5a575092915050565b815115612b8c578082604051602001612b74929190613e1d565b60405160208183030381529060405292505050919050565b6123c084612d5d565b60006001600160e01b0319821663152a902d60e11b14806107a157506107a182612e34565b612bc482826113c9565b610fc257612bdc816001600160a01b03166014612e59565b612be7836020612e59565b604051602001612bf8929190613e4c565b60408051601f198184030181529082905262461bcd60e51b82526108a191600401613558565b6109d6838383612ff5565b60006001600160a01b0384163b15612d1f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c6d903390899088908890600401613ec1565b6020604051808303816000875af1925050508015612ca8575060408051601f3d908101601f19168201909252612ca591810190613efe565b60015b612d05573d808015612cd6576040519150601f19603f3d011682016040523d82523d6000602084013e612cdb565b606091505b508051600003612cfd5760405162461bcd60e51b81526004016108a190613dcb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123c0565b506001949350505050565b612d3483836130ad565b612d416000848484612c29565b6109d65760405162461bcd60e51b81526004016108a190613dcb565b6060612d68826121c5565b612dcc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108a1565b6000612de360408051602081019091526000815290565b90506000815111612e0357604051806020016040528060008152506128e1565b80612e0d846131ec565b604051602001612e1e929190613e1d565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b14806107a157506107a1826132ed565b60606000612e68836002613d0b565b612e73906002613db3565b67ffffffffffffffff811115612e8b57612e8b6138b2565b6040519080825280601f01601f191660200182016040528015612eb5576020820181803683370190505b509050600360fc1b81600081518110612ed057612ed0613d54565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612eff57612eff613d54565b60200101906001600160f81b031916908160001a9053506000612f23846002613d0b565b612f2e906001613db3565b90505b6001811115612fa6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612f6257612f62613d54565b1a60f81b828281518110612f7857612f78613d54565b60200101906001600160f81b031916908160001a90535060049490941c93612f9f81613f1b565b9050612f31565b5083156128e15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108a1565b6001600160a01b0383166130505761304b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613073565b816001600160a01b0316836001600160a01b03161461307357613073838261333d565b6001600160a01b03821661308a576109d6816133da565b826001600160a01b0316826001600160a01b0316146109d6576109d68282613489565b6001600160a01b0382166131035760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a1565b61310c816121c5565b156131595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a1565b61316560008383612c1e565b6001600160a01b038216600090815260036020526040812080546001929061318e908490613db3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816000036132135750506040805180820190915260018152600360fc1b602082015290565b8160005b811561323d578061322781613d83565b91506132369050600a83613d40565b9150613217565b60008167ffffffffffffffff811115613258576132586138b2565b6040519080825280601f01601f191660200182016040528015613282576020820181803683370190505b5090505b84156123c057613297600183613d9c565b91506132a4600a86613f32565b6132af906030613db3565b60f81b8183815181106132c4576132c4613d54565b60200101906001600160f81b031916908160001a9053506132e6600a86613d40565b9450613286565b60006001600160e01b031982166380ac58cd60e01b148061331e57506001600160e01b03198216635b5e139f60e01b145b806107a157506301ffc9a760e01b6001600160e01b03198316146107a1565b6000600161334a84611101565b6133549190613d9c565b6000838152600760205260409020549091508082146133a7576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133ec90600190613d9c565b6000838152600960205260408120546008805493945090928490811061341457613414613d54565b90600052602060002001549050806008838154811061343557613435613d54565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061346d5761346d613f46565b6001900381819060005260206000200160009055905550505050565b600061349483611101565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461219457600080fd5b6000602082840312156134f557600080fd5b81356128e1816134cd565b60005b8381101561351b578181015183820152602001613503565b83811115610a265750506000910152565b60008151808452613544816020860160208601613500565b601f01601f19169290920160200192915050565b6020815260006128e1602083018461352c565b60006020828403121561357d57600080fd5b5035919050565b80356001600160a01b038116811461359b57600080fd5b919050565b600080604083850312156135b357600080fd5b6135bc83613584565b946020939093013593505050565b60008083601f8401126135dc57600080fd5b50813567ffffffffffffffff8111156135f457600080fd5b602083019150836020828501011115610e8657600080fd5b60008060006040848603121561362157600080fd5b83359250602084013567ffffffffffffffff81111561363f57600080fd5b61364b868287016135ca565b9497909650939450505050565b60008060008060006080868803121561367057600080fd5b853567ffffffffffffffff81111561368757600080fd5b613693888289016135ca565b90965094506136a6905060208701613584565b94979396509394604081013594506060013592915050565b6000806000606084860312156136d357600080fd5b6136dc84613584565b92506136ea60208501613584565b9150604084013590509250925092565b60008060008060008060a0878903121561371357600080fd5b86359550602087013567ffffffffffffffff81111561373157600080fd5b61373d89828a016135ca565b9096509450613750905060408801613584565b925060608701359150608087013590509295509295509295565b6000806040838503121561377d57600080fd5b50508035926020909101359150565b6000806040838503121561379f57600080fd5b823591506137af60208401613584565b90509250929050565b6000806000606084860312156137cd57600080fd5b833592506137dd60208501613584565b915060408401356001600160601b03811681146137f957600080fd5b809150509250925092565b60006020828403121561381657600080fd5b6128e182613584565b60006101008083526138338184018c61352c565b6001600160a01b039a8b1660208501526040840199909952505060608101959095526080850193909352941660a083015292151560c082015260e00191909152919050565b8035801515811461359b57600080fd5b6000806040838503121561389b57600080fd5b6138a483613584565b91506137af60208401613878565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156138de57600080fd5b6138e785613584565b93506138f560208601613584565b925060408501359150606085013567ffffffffffffffff8082111561391957600080fd5b818701915087601f83011261392d57600080fd5b81358181111561393f5761393f6138b2565b604051601f8201601f19908116603f01168101908382118183101715613967576139676138b2565b816040528281528a602084870101111561398057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156139b757600080fd5b823591506137af60208401613878565b6000806000604084860312156139dc57600080fd5b833567ffffffffffffffff808211156139f457600080fd5b818601915086601f830112613a0857600080fd5b813581811115613a1757600080fd5b8760208260051b8501011115613a2c57600080fd5b602092830195509350613a429186019050613878565b90509250925092565b60008060408385031215613a5e57600080fd5b613a6783613584565b91506137af60208401613584565b600181811c90821680613a8957607f821691505b602082108103613aa957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109d657600081815260208120601f850160051c81016020861015613ad65750805b601f850160051c820191505b8181101561209457828155600101613ae2565b815167ffffffffffffffff811115613b0f57613b0f6138b2565b613b2381613b1d8454613a75565b84613aaf565b602080601f831160018114613b585760008415613b405750858301515b600019600386901b1c1916600185901b178555612094565b600085815260208120601f198616915b82811015613b8757888601518255948401946001909101908401613b68565b5085821015613ba55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260159082015274105d58dd1a5bdb88191bd95cdb89dd08195e1a5cdd605a1b604082015260600190565b67ffffffffffffffff831115613c4d57613c4d6138b2565b613c6183613c5b8354613a75565b83613aaf565b6000601f841160018114613c955760008515613c7d5750838201355b600019600387901b1c1916600186901b1783556115d5565b600083815260209020601f19861690835b82811015613cc65786850135825560209485019460019092019101613ca6565b5086821015613ce35760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d2557613d25613cf5565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613d4f57613d4f613d2a565b500490565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613d7c57600080fd5b5051919050565b600060018201613d9557613d95613cf5565b5060010190565b600082821015613dae57613dae613cf5565b500390565b60008219821115613dc657613dc6613cf5565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351613e2f818460208801613500565b835190830190613e43818360208801613500565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e84816017850160208801613500565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613eb5816028840160208801613500565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ef49083018461352c565b9695505050505050565b600060208284031215613f1057600080fd5b81516128e1816134cd565b600081613f2a57613f2a613cf5565b506000190190565b600082613f4157613f41613d2a565b500690565b634e487b7160e01b600052603160045260246000fdfea264697066735822122052319067ff47cc19f82ffb7581b8745b00e0f9ef891e6f2f8e91564ef04579df64736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000038400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000370a695f879b665db5745de917105208a1dc61fd000000000000000000000000000000000000000000000000000000000000001b546865204e65787420313030205965617273206f66204775636369000000000000000000000000000000000000000000000000000000000000000000000000024747000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c8063715018a611610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146106b9578063d547741f146106d9578063e985e9c5146106f9578063ec91f2a414610742578063f2fde38b1461077657600080fd5b8063a22cb46514610619578063b88d4fde14610639578063b9a2de3a14610659578063c09fe13d14610679578063c598d2191461069957600080fd5b806391d14854116100f257806391d148541461059c57806395d89b41146105bc57806396b5a755146105d15780639979ef45146105f1578063a217fddf1461060457600080fd5b8063715018a6146104e957806378bd7935146104fe5780638677a1d2146105325780638da5cb5b1461057e57600080fd5b806325469d1c116101b157806342842e0e1161017557806342842e0e146104495780634f6ccce7146104695780635944c753146104895780636352211e146104a957806370a08231146104c957600080fd5b806325469d1c1461038a5780632a55205a146103aa5780632f2ff15d146103e95780632f745c591461040957806336568abe1461042957600080fd5b8063162094c4116101f8578063162094c4146102db57806318160ddd146102fb5780631f967e031461031a57806323b872dd1461033a578063248a9ca31461035a57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a6102453660046134e3565b610796565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746107a7565b6040516102569190613558565b34801561028d57600080fd5b506102a161029c36600461356b565b610839565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d43660046135a0565b6108c6565b005b3480156102e757600080fd5b506102d96102f636600461360c565b6109db565b34801561030757600080fd5b506008545b604051908152602001610256565b34801561032657600080fd5b506102d9610335366004613658565b610a2c565b34801561034657600080fd5b506102d96103553660046136be565b610c5c565b34801561036657600080fd5b5061030c61037536600461356b565b6000908152600e602052604090206001015490565b34801561039657600080fd5b506102d96103a53660046136fa565b610c8d565b3480156103b657600080fd5b506103ca6103c536600461376a565b610ddf565b604080516001600160a01b039093168352602083019190915201610256565b3480156103f557600080fd5b506102d961040436600461378c565b610e8d565b34801561041557600080fd5b5061030c6104243660046135a0565b610eb2565b34801561043557600080fd5b506102d961044436600461378c565b610f48565b34801561045557600080fd5b506102d96104643660046136be565b610fc6565b34801561047557600080fd5b5061030c61048436600461356b565b610fe1565b34801561049557600080fd5b506102d96104a43660046137b8565b611074565b3480156104b557600080fd5b506102a16104c436600461356b565b61108a565b3480156104d557600080fd5b5061030c6104e4366004613804565b611101565b3480156104f557600080fd5b506102d9611188565b34801561050a57600080fd5b5061051e61051936600461356b565b6111ee565b60405161025698979695949392919061381f565b34801561053e57600080fd5b506105667f00000000000000000000000000000000000000000000000000000000000003e881565b6040516001600160601b039091168152602001610256565b34801561058a57600080fd5b50600f546001600160a01b03166102a1565b3480156105a857600080fd5b5061024a6105b736600461378c565b6113c9565b3480156105c857600080fd5b506102746113f4565b3480156105dd57600080fd5b506102d96105ec36600461356b565b611403565b6102d96105ff36600461356b565b6115dc565b34801561061057600080fd5b5061030c600081565b34801561062557600080fd5b506102d9610634366004613888565b611ac7565b34801561064557600080fd5b506102d96106543660046138c8565b611ad2565b34801561066557600080fd5b506102d961067436600461356b565b611b04565b34801561068557600080fd5b506102d96106943660046139a4565b611fa8565b3480156106a557600080fd5b506102d96106b43660046139c7565b612049565b3480156106c557600080fd5b506102746106d436600461356b565b61209c565b3480156106e557600080fd5b506102d96106f436600461378c565b6120a7565b34801561070557600080fd5b5061024a610714366004613a4b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561074e57600080fd5b5061030c7f000000000000000000000000000000000000000000000000000000000000038481565b34801561078257600080fd5b506102d9610791366004613804565b6120cc565b60006107a1826121a0565b92915050565b6060600080546107b690613a75565b80601f01602080910402602001604051908101604052809291908181526020018280546107e290613a75565b801561082f5780601f106108045761010080835404028352916020019161082f565b820191906000526020600020905b81548152906001019060200180831161081257829003601f168201915b5050505050905090565b6000610844826121c5565b6108aa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108d18261108a565b9050806001600160a01b0316836001600160a01b03160361093e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108a1565b336001600160a01b038216148061095a575061095a8133610714565b6109cc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108a1565b6109d683836121e2565b505050565b60006109e681612250565b610a268484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061225a92505050565b50505050565b6000610a3781612250565b6000610a4260125490565b90506001600160a01b038516610a8f5760405162461bcd60e51b815260206004820152601260248201527110dc99585d1bdc881b5d5cdd08195e1a5cdd60721b60448201526064016108a1565b7f0000000000000000000000000000000000000000000000000000000000000384831015610af45760405162461bcd60e51b8152602060048201526012602482015271111d5c985d1a5bdb881d1bdbc81cda1bdc9d60721b60448201526064016108a1565b60405180610100016040528088888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506001600160a01b0388166020808401919091526040808401899052606084018890526080840183905260a0840183905260c0840183905260e0909301829052848252601190522081518190610b8d9082613af5565b5060208201516001820180546001600160a01b039283166001600160a01b031990911617905560408301516002830155606083015160038301556080830151600483015560a083015160058301805460c08601511515600160a01b026001600160a81b0319909116929093169190911791909117905560e090910151600690910155610c1d601280546001019055565b6040516001600160a01b0386169082907f5d551e2a2cc977fd8c530317059b4f2d9f504fb82f7dfad736f8d56679bcdfd090600090a350505050505050565b610c6633826122de565b610c825760405162461bcd60e51b81526004016108a190613bb5565b6109d68383836123c8565b60008681526011602052604090206001015486906001600160a01b0316610cc65760405162461bcd60e51b81526004016108a190613c06565b6000610cd181612250565b6001600160a01b038516610d1c5760405162461bcd60e51b815260206004820152601260248201527110dc99585d1bdc881b5d5cdd08195e1a5cdd60721b60448201526064016108a1565b7f0000000000000000000000000000000000000000000000000000000000000384831015610d815760405162461bcd60e51b8152602060048201526012602482015271111d5c985d1a5bdb881d1bdbc81cda1bdc9d60721b60448201526064016108a1565b6000888152601160205260409020610d9a878983613c35565b5050506000958652601160205260409095206001810180546001600160a01b0319166001600160a01b0394909416939093179092556002820155600301929092555050565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e54575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e73906001600160601b031687613d0b565b610e7d9190613d40565b91519350909150505b9250929050565b6000828152600e6020526040902060010154610ea881612250565b6109d6838361256f565b6000610ebd83611101565b8210610f1f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108a1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b0381163314610fb85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108a1565b610fc282826125f5565b5050565b6109d683838360405180602001604052806000815250611ad2565b6000610fec60085490565b821061104f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108a1565b6008828154811061106257611062613d54565b90600052602060002001549050919050565b600061107f81612250565b610a2684848461265c565b6000818152600260205260408120546001600160a01b0316806107a15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108a1565b60006001600160a01b03821661116c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108a1565b506001600160a01b031660009081526003602052604090205490565b600f546001600160a01b031633146111e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a1565b6111ec600061276a565b565b6000818152601160205260408120600101546060919081908190819081908190819089906001600160a01b03166112375760405162461bcd60e51b81526004016108a190613c06565b60008a8152601160205260408082208151610100810190925280548290829061125f90613a75565b80601f016020809104026020016040519081016040528092919081815260200182805461128b90613a75565b80156112d85780601f106112ad576101008083540402835291602001916112d8565b820191906000526020600020905b8154815290600101906020018083116112bb57829003601f168201915b505050505081526020016001820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016005820160149054906101000a900460ff161515151581526020016006820154815250509050806000015181602001518260400151836060015184608001518560a001518660c001518760e00151995099509950995099509950995099505050919395975091939597565b6000918252600e602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546107b690613a75565b60008181526011602052604090206001015481906001600160a01b031661143c5760405162461bcd60e51b81526004016108a190613c06565b600061144781612250565b6000838152601160205260408082208151610100810190925280548290829061146f90613a75565b80601f016020809104026020016040519081016040528092919081815260200182805461149b90613a75565b80156114e85780601f106114bd576101008083540402835291602001916114e8565b820191906000526020600020905b8154815290600101906020018083116114cb57829003601f168201915b505050918352505060018201546001600160a01b039081166020830152600283015460408301526003830154606083015260048301546080830152600583015480821660a080850191909152600160a01b90910460ff16151560c084015260069093015460e09092019190915290820151919250811661159a5760405162461bcd60e51b815260206004820152600d60248201526c2430b9903737903134b23232b960991b60448201526064016108a1565b6000858152601160205260408120600581018054600483018490556001600160a81b03191690556006015560808201516115d59082906127bc565b5050505050565b60008181526011602052604090206001015481906001600160a01b03166116155760405162461bcd60e51b81526004016108a190613c06565b6002600d54036116675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a1565b6002600d556000828152601160205260408082208151610100810190925280548290829061169490613a75565b80601f01602080910402602001604051908101604052809291908181526020018280546116c090613a75565b801561170d5780601f106116e25761010080835404028352916020019161170d565b820191906000526020600020905b8154815290600101906020018083116116f057829003601f168201915b505050918352505060018201546001600160a01b039081166020830152600283015460408301526003830154606083015260048301546080830152600583015490811660a0830152600160a01b900460ff16151560c08083019190915260069092015460e0909101528101519091506117bd5760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206e6f742061637469766560701b60448201526064016108a1565b600034116117fc5760405162461bcd60e51b815260206004820152600c60248201526b486173206e6f2076616c756560a01b60448201526064016108a1565b80604001513410156118505760405162461bcd60e51b815260206004820152601860248201527f4c6f776572207468616e2072657365727665207072696365000000000000000060448201526064016108a1565b60e081015115806118725750606081015160e082015161186f916128d5565b42105b6118b05760405162461bcd60e51b815260206004820152600f60248201526e105d58dd1a5bdb88195e1c1a5c9959608a1b60448201526064016108a1565b61190a6118ff6127106118f97f00000000000000000000000000000000000000000000000000000000000003e86001600160601b031685608001516128e890919063ffffffff16565b906128f4565b6080830151906128d5565b3410156119595760405162461bcd60e51b815260206004820152601d60248201527f4c6f776572207468616e206d696e696d756d2062696420616d6f756e7400000060448201526064016108a1565b8060e0015160000361197b576000838152601160205260409020426006909101555b60a08101516001600160a01b0316156119a0576119a08160a0015182608001516127bc565b60608101516000848152601160205260409020600601547f0000000000000000000000000000000000000000000000000000000000000384916119ef9142916119e991906128d5565b90612900565b1015611a5957606081015160e0820151611a4590611a3e90611a179042906119e990866128d5565b7f000000000000000000000000000000000000000000000000000000000000038490612900565b82906128d5565b600085815260116020526040902060030155505b6000838152601160209081526040918290203460048201819055600590910180546001600160a01b03191633908117909155925190815285917f190a5c21cc0eb4d267fd75d52d8c9f16f57e9e2fba3863695c51cc73236abf66910160405180910390a350506001600d5550565b610fc233838361290c565b611adc33836122de565b611af85760405162461bcd60e51b81526004016108a190613bb5565b610a26848484846129da565b60008181526011602052604090206001015481906001600160a01b0316611b3d5760405162461bcd60e51b81526004016108a190613c06565b6002600d5403611b8f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a1565b6002600d5560008281526011602052604080822081516101008101909252805482908290611bbc90613a75565b80601f0160208091040260200160405190810160405280929190818152602001828054611be890613a75565b8015611c355780601f10611c0a57610100808354040283529160200191611c35565b820191906000526020600020905b815481529060010190602001808311611c1857829003601f168201915b505050918352505060018201546001600160a01b039081166020830152600283015460408301526003830154606083015260048301546080830152600583015490811660a0830152600160a01b900460ff16151560c08083019190915260069092015460e090910152810151909150611ce55760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206e6f742061637469766560701b60448201526064016108a1565b8060e00151600003611d325760405162461bcd60e51b8152602060048201526016602482015275105d58dd1a5bdb881a185cdb89dd081cdd185c9d195960521b60448201526064016108a1565b606081015160e0820151611d45916128d5565b421015611d945760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e206861736e277420636f6d706c65746564000000000000000060448201526064016108a1565b611da28160a0015184612a0d565b611db083826000015161225a565b611ddf8382602001517f00000000000000000000000000000000000000000000000000000000000002ee61265c565b601054608082015160405163107e9cf160e01b81526001600160a01b039092169163107e9cf191611e169160040190815260200190565b600060405180830381600087803b158015611e3057600080fd5b505af1158015611e44573d6000803e3d6000fd5b5050601054604051639af608c960e01b8152306004820152600093506001600160a01b039091169150639af608c990602401602060405180830381865afa158015611e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb79190613d6a565b60105460405163b9bff4bb60e01b8152600481018390529192506001600160a01b03169063b9bff4bb90602401600060405180830381600087803b158015611efe57600080fd5b505af1158015611f12573d6000803e3d6000fd5b5050601054611f2d92506001600160a01b03169050826127bc565b611f518260200151611f4c83856080015161290090919063ffffffff16565b6127bc565b8160a001516001600160a01b0316847fd2aa34a4fdbbc6dff6a3e56f46e0f3ae2a31d7785ff3487aa5c95c642acea5018460800151604051611f9591815260200190565b60405180910390a350506001600d555050565b60008281526011602052604090206001015482906001600160a01b0316611fe15760405162461bcd60e51b81526004016108a190613c06565b6000611fec81612250565b600084815260116020526040808220600501805460ff60a01b1916600160a01b871515908102919091179091559051909186917f24f7d96662c712aaf349b5e57a0f6c5edecf2838645dc2b4e8629f108b72163a9190a350505050565b600061205481612250565b8260005b818110156120945761208286868381811061207557612075613d54565b9050602002013585611fa8565b8061208c81613d83565b915050612058565b505050505050565b60606107a182612a27565b6000828152600e60205260409020600101546120c281612250565b6109d683836125f5565b600f546001600160a01b031633146121265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a1565b6001600160a01b03811661218b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a1565b6121948161276a565b50565b80546001019055565b60006001600160e01b03198216637965db0b60e01b14806107a157506107a182612b95565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122178261108a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6121948133612bba565b612263826121c5565b6122c65760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108a1565b6000828152600a602052604090206109d68282613af5565b60006122e9826121c5565b61234a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108a1565b60006123558361108a565b9050806001600160a01b0316846001600160a01b0316148061239c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806123c05750836001600160a01b03166123b584610839565b6001600160a01b0316145b949350505050565b826001600160a01b03166123db8261108a565b6001600160a01b03161461243f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108a1565b6001600160a01b0382166124a15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a1565b6124ac838383612c1e565b6124b76000826121e2565b6001600160a01b03831660009081526003602052604081208054600192906124e0908490613d9c565b90915550506001600160a01b038216600090815260036020526040812080546001929061250e908490613db3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61257982826113c9565b610fc2576000828152600e602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125b13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6125ff82826113c9565b15610fc2576000828152600e602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6127106001600160601b03821611156126ca5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108a1565b6001600160a01b0382166127205760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016108a1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600c90529190942093519051909116600160a01b029116179055565b600f80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8047101561280c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108a1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612859576040519150601f19603f3d011682016040523d82523d6000602084013e61285e565b606091505b50509050806109d65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108a1565b60006128e18284613db3565b9392505050565b60006128e18284613d0b565b60006128e18284613d40565b60006128e18284613d9c565b816001600160a01b0316836001600160a01b03160361296d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129e58484846123c8565b6129f184848484612c29565b610a265760405162461bcd60e51b81526004016108a190613dcb565b610fc2828260405180602001604052806000815250612d2a565b6060612a32826121c5565b612a985760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016108a1565b6000828152600a602052604081208054612ab190613a75565b80601f0160208091040260200160405190810160405280929190818152602001828054612add90613a75565b8015612b2a5780601f10612aff57610100808354040283529160200191612b2a565b820191906000526020600020905b815481529060010190602001808311612b0d57829003601f168201915b505050505090506000612b4860408051602081019091526000815290565b90508051600003612b5a575092915050565b815115612b8c578082604051602001612b74929190613e1d565b60405160208183030381529060405292505050919050565b6123c084612d5d565b60006001600160e01b0319821663152a902d60e11b14806107a157506107a182612e34565b612bc482826113c9565b610fc257612bdc816001600160a01b03166014612e59565b612be7836020612e59565b604051602001612bf8929190613e4c565b60408051601f198184030181529082905262461bcd60e51b82526108a191600401613558565b6109d6838383612ff5565b60006001600160a01b0384163b15612d1f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c6d903390899088908890600401613ec1565b6020604051808303816000875af1925050508015612ca8575060408051601f3d908101601f19168201909252612ca591810190613efe565b60015b612d05573d808015612cd6576040519150601f19603f3d011682016040523d82523d6000602084013e612cdb565b606091505b508051600003612cfd5760405162461bcd60e51b81526004016108a190613dcb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123c0565b506001949350505050565b612d3483836130ad565b612d416000848484612c29565b6109d65760405162461bcd60e51b81526004016108a190613dcb565b6060612d68826121c5565b612dcc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108a1565b6000612de360408051602081019091526000815290565b90506000815111612e0357604051806020016040528060008152506128e1565b80612e0d846131ec565b604051602001612e1e929190613e1d565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b14806107a157506107a1826132ed565b60606000612e68836002613d0b565b612e73906002613db3565b67ffffffffffffffff811115612e8b57612e8b6138b2565b6040519080825280601f01601f191660200182016040528015612eb5576020820181803683370190505b509050600360fc1b81600081518110612ed057612ed0613d54565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612eff57612eff613d54565b60200101906001600160f81b031916908160001a9053506000612f23846002613d0b565b612f2e906001613db3565b90505b6001811115612fa6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612f6257612f62613d54565b1a60f81b828281518110612f7857612f78613d54565b60200101906001600160f81b031916908160001a90535060049490941c93612f9f81613f1b565b9050612f31565b5083156128e15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108a1565b6001600160a01b0383166130505761304b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613073565b816001600160a01b0316836001600160a01b03161461307357613073838261333d565b6001600160a01b03821661308a576109d6816133da565b826001600160a01b0316826001600160a01b0316146109d6576109d68282613489565b6001600160a01b0382166131035760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a1565b61310c816121c5565b156131595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a1565b61316560008383612c1e565b6001600160a01b038216600090815260036020526040812080546001929061318e908490613db3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816000036132135750506040805180820190915260018152600360fc1b602082015290565b8160005b811561323d578061322781613d83565b91506132369050600a83613d40565b9150613217565b60008167ffffffffffffffff811115613258576132586138b2565b6040519080825280601f01601f191660200182016040528015613282576020820181803683370190505b5090505b84156123c057613297600183613d9c565b91506132a4600a86613f32565b6132af906030613db3565b60f81b8183815181106132c4576132c4613d54565b60200101906001600160f81b031916908160001a9053506132e6600a86613d40565b9450613286565b60006001600160e01b031982166380ac58cd60e01b148061331e57506001600160e01b03198216635b5e139f60e01b145b806107a157506301ffc9a760e01b6001600160e01b03198316146107a1565b6000600161334a84611101565b6133549190613d9c565b6000838152600760205260409020549091508082146133a7576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133ec90600190613d9c565b6000838152600960205260408120546008805493945090928490811061341457613414613d54565b90600052602060002001549050806008838154811061343557613435613d54565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061346d5761346d613f46565b6001900381819060005260206000200160009055905550505050565b600061349483611101565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461219457600080fd5b6000602082840312156134f557600080fd5b81356128e1816134cd565b60005b8381101561351b578181015183820152602001613503565b83811115610a265750506000910152565b60008151808452613544816020860160208601613500565b601f01601f19169290920160200192915050565b6020815260006128e1602083018461352c565b60006020828403121561357d57600080fd5b5035919050565b80356001600160a01b038116811461359b57600080fd5b919050565b600080604083850312156135b357600080fd5b6135bc83613584565b946020939093013593505050565b60008083601f8401126135dc57600080fd5b50813567ffffffffffffffff8111156135f457600080fd5b602083019150836020828501011115610e8657600080fd5b60008060006040848603121561362157600080fd5b83359250602084013567ffffffffffffffff81111561363f57600080fd5b61364b868287016135ca565b9497909650939450505050565b60008060008060006080868803121561367057600080fd5b853567ffffffffffffffff81111561368757600080fd5b613693888289016135ca565b90965094506136a6905060208701613584565b94979396509394604081013594506060013592915050565b6000806000606084860312156136d357600080fd5b6136dc84613584565b92506136ea60208501613584565b9150604084013590509250925092565b60008060008060008060a0878903121561371357600080fd5b86359550602087013567ffffffffffffffff81111561373157600080fd5b61373d89828a016135ca565b9096509450613750905060408801613584565b925060608701359150608087013590509295509295509295565b6000806040838503121561377d57600080fd5b50508035926020909101359150565b6000806040838503121561379f57600080fd5b823591506137af60208401613584565b90509250929050565b6000806000606084860312156137cd57600080fd5b833592506137dd60208501613584565b915060408401356001600160601b03811681146137f957600080fd5b809150509250925092565b60006020828403121561381657600080fd5b6128e182613584565b60006101008083526138338184018c61352c565b6001600160a01b039a8b1660208501526040840199909952505060608101959095526080850193909352941660a083015292151560c082015260e00191909152919050565b8035801515811461359b57600080fd5b6000806040838503121561389b57600080fd5b6138a483613584565b91506137af60208401613878565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156138de57600080fd5b6138e785613584565b93506138f560208601613584565b925060408501359150606085013567ffffffffffffffff8082111561391957600080fd5b818701915087601f83011261392d57600080fd5b81358181111561393f5761393f6138b2565b604051601f8201601f19908116603f01168101908382118183101715613967576139676138b2565b816040528281528a602084870101111561398057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156139b757600080fd5b823591506137af60208401613878565b6000806000604084860312156139dc57600080fd5b833567ffffffffffffffff808211156139f457600080fd5b818601915086601f830112613a0857600080fd5b813581811115613a1757600080fd5b8760208260051b8501011115613a2c57600080fd5b602092830195509350613a429186019050613878565b90509250925092565b60008060408385031215613a5e57600080fd5b613a6783613584565b91506137af60208401613584565b600181811c90821680613a8957607f821691505b602082108103613aa957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109d657600081815260208120601f850160051c81016020861015613ad65750805b601f850160051c820191505b8181101561209457828155600101613ae2565b815167ffffffffffffffff811115613b0f57613b0f6138b2565b613b2381613b1d8454613a75565b84613aaf565b602080601f831160018114613b585760008415613b405750858301515b600019600386901b1c1916600185901b178555612094565b600085815260208120601f198616915b82811015613b8757888601518255948401946001909101908401613b68565b5085821015613ba55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260159082015274105d58dd1a5bdb88191bd95cdb89dd08195e1a5cdd605a1b604082015260600190565b67ffffffffffffffff831115613c4d57613c4d6138b2565b613c6183613c5b8354613a75565b83613aaf565b6000601f841160018114613c955760008515613c7d5750838201355b600019600387901b1c1916600186901b1783556115d5565b600083815260209020601f19861690835b82811015613cc65786850135825560209485019460019092019101613ca6565b5086821015613ce35760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d2557613d25613cf5565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613d4f57613d4f613d2a565b500490565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613d7c57600080fd5b5051919050565b600060018201613d9557613d95613cf5565b5060010190565b600082821015613dae57613dae613cf5565b500390565b60008219821115613dc657613dc6613cf5565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351613e2f818460208801613500565b835190830190613e43818360208801613500565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e84816017850160208801613500565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613eb5816028840160208801613500565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ef49083018461352c565b9695505050505050565b600060208284031215613f1057600080fd5b81516128e1816134cd565b600081613f2a57613f2a613cf5565b506000190190565b600082613f4157613f41613d2a565b500690565b634e487b7160e01b600052603160045260246000fdfea264697066735822122052319067ff47cc19f82ffb7581b8745b00e0f9ef891e6f2f8e91564ef04579df64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000038400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000370a695f879b665db5745de917105208a1dc61fd000000000000000000000000000000000000000000000000000000000000001b546865204e65787420313030205965617273206f66204775636369000000000000000000000000000000000000000000000000000000000000000000000000024747000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): The Next 100 Years of Gucci
Arg [1] : symbol_ (string): GG
Arg [2] : timeBuffer_ (uint256): 900
Arg [3] : minBidNumerator_ (uint96): 1000
Arg [4] : baseFeeNumerator_ (uint96): 750
Arg [5] : niftyKit_ (address): 0x370a695F879B665dB5745DE917105208A1Dc61fD
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000384
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [5] : 000000000000000000000000370a695f879b665db5745de917105208a1dc61fd
Arg [6] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [7] : 546865204e65787420313030205965617273206f662047756363690000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 4747000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.