ERC-721
Overview
Max Total Supply
2,692 SSSL
Holders
163
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SSSLLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SMASHSORTSLICELOVE
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: CONSTANTLY WANTS TO MAKE THE WORLD BEAUTIFUL // ///..//*..//..//,..////////#,,,,,,,,,,,,,,,,,&&&&&,**(*./,///*%(.%,,%*,#%/%#(/// // *#%%%%%%%%%%/%/////*&@@(*#(#,,,,,,,,,,,,,,,,,@@@@@/***,./,///%./%#(%.#%/.(.*//// // *******%%%%(/(/(/(/******#(#,,,,,,,,,,,,,,,,,********((#((@%%.........%@@@@@@@@@ // #############%%%%%%%%%%%%%,,,,,,,,,,,,,,,,,**,*,/.**,,///////####%####,.///,*%*, // .*,%,%./%#%(./,(,(*#*#*#*,,,**.,,,********//(****//(#((#(@@@@@*@@@@@&&&&&***&&&& // /.%((%,*#&%% %.%%#&@&&&.%,*#*,,,.*,,******,,,,,,,,,##,....,,,,*,,,,,,,,,,%*%,,&& // ███████╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ ███████╗ ██████╗ ██████╗ ████████╗███████╗██╗ ██╗ ██████╗███████╗ // ██╔════╝████╗ ████║██╔══██╗██╔════╝██║ ██║ ██╔════╝██╔═══██╗██╔══██╗╚══██╔══╝██╔════╝██║ ██║██╔════╝██╔════╝ // ███████╗██╔████╔██║███████║███████╗███████║ ███████╗██║ ██║██████╔╝ ██║ ███████╗██║ ██║██║ █████╗ // ╚════██║██║╚██╔╝██║██╔══██║╚════██║██╔══██║ ╚════██║██║ ██║██╔══██╗ ██║ ╚════██║██║ ██║██║ ██╔══╝ // ███████║██║ ╚═╝ ██║██║ ██║███████║██║ ██║██╗███████║╚██████╔╝██║ ██║ ██║██╗███████║███████╗██║╚██████╗███████╗ // ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝ ╚═════╝╚══════╝ // ,*//%@@@*%%(##@@@@&&&&&/,,//.(%@@@##%@##########%&**/,,,@@@@@@@@@@&&&&#######*** // ,*(/%@@@#*,/**((((((((&/,,/.**,,,,%%/,%%%%%&#%%&&&%%%#,,@@@@@@@@@@&&&&#######/// // ,...%@@@@@@@@@,,,,,,,,@/,,@&**,,,,##/,,/%%%&*/(//,/*/(,,@@@@@@@@@@&&&%....../*** // ,,,(##########((((&@@@@,,,*&**,,,,,,,,*##/#*//////*,**,,@@@@@@@@@@@@@%(%***%&&#% // ,,,(############,,,,,,,,,,(#/&,,,,,,,,(*,/,(*%%%((%%##@@@@@@@@@@@@@@@&@@@/*#@&#( // ,***/((%##%(//((#((##((((,,/*.%,/%/#*(*(*(#(#///####.,///(////(#./(/////*(#///// // a contribution to ARTGLIXXX EGOSYSTEM // by berk aka princesscamel aka guerrilla pimp minion god bastard // @berkozdemir - berkozdemir.com - twitter.com/berkozdemir // https://artglixxx.io/ // https://glicpixxx.love/ pragma solidity ^0.8.0; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface IGLIX { function burn(address from, uint256 amount) external returns (bool); } // contract COPYMINTFACTORY is ERC721AQueryable, Ownable, ERC2981 { contract SMASHSORTSLICELOVE is ERC721AQueryable, ERC2981, Ownable { enum SaleStatus { NoSale, YesSale } // IGLIX public GLIXTOKEN; SaleStatus saleStatus = SaleStatus.NoSale; string private _baseTokenURI; uint256 public etherBasePrice; uint256 public glixBasePrice = 100 ether; // 100 GLIX uint256 public increaseGlixPerMint = 0.25 ether; // 0.25 GLIX uint256 public maxSupply = 2693; // 2692 PIECES uint256 public maxBuyAtOnce = 101; // 100 MINTS address public treasuryAddress = 0xe49381184A49CD2A48e4b09a979524e672Fdd10E; // GLICPIXYZ.eth address private GLIXTOKEN_ADDRESS = 0x4e09d18baa1dA0b396d1A48803956FAc01c28E88; // mainnet constructor() ERC721A("SMASH.SORT.SLICE.LOVE", "SSSL") { _setDefaultRoyalty(treasuryAddress, 250); // royalty _safeMint(msg.sender, 1); etherBasePrice = 0.015 ether; setBaseTokenURI("https://artglixxx.io/api/mashsortslice/"); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function calculateGlixCost(uint256 startId, uint256 amount) public view returns (uint256) { uint256 lastId = startId + amount; return (glixBasePrice * amount) + ((((lastId * (lastId + 1)) / 2) - ((startId * (startId + 1)) / 2) - 1) * increaseGlixPerMint); } function setRoyalty(address _address, uint96 _royalty) external onlyOwner { _setDefaultRoyalty(_address, _royalty); } function setEtherBasePrice(uint256 _price) external onlyOwner { etherBasePrice = _price; } function setGlixBasePrice(uint256 _price) external onlyOwner { glixBasePrice = _price; } function setIncreaseGlixPerMint(uint256 _price) external onlyOwner { increaseGlixPerMint = _price; } function setSaleStatus(SaleStatus _saleStatus) external onlyOwner { saleStatus = _saleStatus; } function editMaxSupply(uint _maxSupply) external onlyOwner { require( _maxSupply < maxSupply, "MAX SUPPLY CAN'T EXCEED INITIAL SUPPLY" ); maxSupply = _maxSupply; } function mintAdmin(address[] calldata _to, uint _amount) public onlyOwner { require( totalSupply() + (_amount * _to.length) < maxSupply, "MAX SUPPLY IS EXCEEDED" ); for (uint i; i < _to.length; i++) { _safeMint(_to[i], _amount); } } function withdraw(address _to) external onlyOwner { // require(saleStatus == SaleStatus.SaleFinished, "CAN'T WITHDRAW DURING SALE"); require(address(this).balance > 0, "INSUFFICIENT FUNDS"); payable(_to).transfer(address(this).balance); } function buywithEther(address _to, uint256 _amount) public payable { require(saleStatus == SaleStatus.YesSale, "SALE IS NOT OPEN"); require(_amount < maxBuyAtOnce, "YOU CAN'T BUY THIS MUCH"); require(totalSupply() + _amount < maxSupply, "MAX SUPPLY IS EXCEEDED"); require(msg.value >= (_amount * etherBasePrice), "NOT ENOUGH ETHER"); _safeMint(_to, _amount); } function buywithGlix(address _to, uint256 _amount) public { require(saleStatus == SaleStatus.YesSale, "SALE IS NOT OPEN"); require(_amount < maxBuyAtOnce, "YOU CAN'T BUY THIS MUCH"); require(totalSupply() + _amount < maxSupply, "MAX SUPPLY IS EXCEEDED"); require( IGLIX(GLIXTOKEN_ADDRESS).burn( msg.sender, calculateGlixCost(totalSupply(), _amount) ) ); _safeMint(_to, _amount); } function burn(uint256 _tokenId) public { _burn(_tokenId, true); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @dev Set the base token URI */ function setBaseTokenURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '../ERC721A.sol'; error InvalidQueryRange(); /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/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/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 (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 (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 (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 (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 (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) (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/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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[{"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":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buywithEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buywithGlix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateGlixCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"editMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"etherBasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"glixBasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increaseGlixPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxBuyAtOnce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintAdmin","outputs":[],"stateMutability":"nonpayable","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":[],"name":"renounceOwnership","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":"string","name":"baseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setEtherBasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setGlixBasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setIncreaseGlixPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint96","name":"_royalty","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SMASHSORTSLICELOVE.SaleStatus","name":"_saleStatus","type":"uint8"}],"name":"setSaleStatus","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a805460ff60a01b1916905568056bc75e2d63100000600d556703782dace9d90000600e55610a85600f556065601055601180546001600160a01b031990811673e49381184a49cd2a48e4b09a979524e672fdd10e1790915560128054909116734e09d18baa1da0b396d1a48803956fac01c28e881790553480156200008a57600080fd5b506040518060400160405280601581526020017f534d4153482e534f52542e534c4943452e4c4f564500000000000000000000008152506040518060400160405280600481526020016314d4d4d360e21b8152508160029081620000ef9190620006d4565b506003620000fe8282620006d4565b5050600080555062000110336200016e565b60115462000129906001600160a01b031660fa620001c0565b62000136336001620002c5565b66354a6ba7a18000600c81905550620001686040518060600160405280602781526020016200344860279139620002eb565b6200084e565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002345760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200028c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200022b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b620002e78282604051806020016040528060008152506200035560201b60201c565b5050565b600a546001600160a01b03163314620003475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200022b565b600b620002e78282620006d4565b62000364838383600162000369565b505050565b6000546001600160a01b0385166200039357604051622e076360e81b815260040160405180910390fd5b83600003620003b55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156200046e57506200046e876001600160a01b03166200052d60201b620017bf1760201c565b15620004ed575b60405182906001600160a01b038916906000906000805160206200346f833981519152908290a46001820191620004b2906000908990886200053c565b620004d0576040516368d2bf6b60e11b815260040160405180910390fd5b80820362000475578260005414620004e757600080fd5b62000522565b5b6040516001830192906001600160a01b038916906000906000805160206200346f833981519152908290a4808203620004ee575b506000555050505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029062000573903390899088908890600401620007a0565b6020604051808303816000875af1925050508015620005b1575060408051601f3d908101601f19168201909252620005ae918101906200081b565b60015b62000613573d808015620005e2576040519150601f19603f3d011682016040523d82523d6000602084013e620005e7565b606091505b5080516000036200060b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200065b57607f821691505b6020821081036200067c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200036457600081815260208120601f850160051c81016020861015620006ab5750805b601f850160051c820191505b81811015620006cc57828155600101620006b7565b505050505050565b81516001600160401b03811115620006f057620006f062000630565b620007088162000701845462000646565b8462000682565b602080601f831160018114620007405760008415620007275750858301515b600019600386901b1c1916600185901b178555620006cc565b600085815260208120601f198616915b82811015620007715788860151825594840194600190910190840162000750565b5085821015620007905787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620007ef5785810182015185820160a001528101620007d1565b828111156200080257600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200082e57600080fd5b81516001600160e01b0319811681146200084757600080fd5b9392505050565b612bea806200085e6000396000f3fe6080604052600436106102465760003560e01c806370a0823111610139578063b88d4fde116100b6578063c6525d361161007a578063c6525d36146106e2578063c87b56dd146106f8578063d5abeb0114610718578063e985e9c51461072e578063f0904bcc14610777578063f2fde38b1461079757600080fd5b8063b88d4fde14610635578063beb6b56914610655578063c23dc68f14610675578063c546815b146106a2578063c5f956af146106c257600080fd5b80638f2fc60b116100fd5780638f2fc60b146105a057806395d89b41146105c057806399a2557a146105d5578063a22cb465146105f5578063b36832821461061557600080fd5b806370a082311461050d578063715018a61461052d5780637828846e146105425780638462151c146105555780638da5cb5b1461058257600080fd5b80632fb611f6116101c75780634891ad881161018b5780634891ad881461046057806351cff8d9146104805780635bbb2177146104a057806362c4fc4e146104cd5780636352211e146104ed57600080fd5b80632fb611f6146103d457806330176e13146103ea578063374b6e3a1461040a57806342842e0e1461042057806342966c681461044057600080fd5b806318160ddd1161020e57806318160ddd1461031c57806323b872dd1461033f5780632a55205a1461035f5780632ba556681461039e5780632c317b14146103b457600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da5780630e310d28146102fc575b600080fd5b34801561025757600080fd5b5061026b6102663660046122a1565b6107b7565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107d7565b6040516102779190612316565b3480156102ae57600080fd5b506102c26102bd366004612329565b610869565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f536600461235e565b6108ad565b005b34801561030857600080fd5b506102fa610317366004612329565b61093a565b34801561032857600080fd5b50600154600054035b604051908152602001610277565b34801561034b57600080fd5b506102fa61035a366004612388565b6109d2565b34801561036b57600080fd5b5061037f61037a3660046123c4565b6109dd565b604080516001600160a01b039093168352602083019190915201610277565b3480156103aa57600080fd5b50610331600e5481565b3480156103c057600080fd5b506102fa6103cf3660046123e6565b610a89565b3480156103e057600080fd5b50610331600d5481565b3480156103f657600080fd5b506102fa6104053660046124fd565b610b41565b34801561041657600080fd5b50610331600c5481565b34801561042c57600080fd5b506102fa61043b366004612388565b610b7b565b34801561044c57600080fd5b506102fa61045b366004612329565b610b96565b34801561046c57600080fd5b506102fa61047b366004612545565b610ba4565b34801561048c57600080fd5b506102fa61049b366004612566565b610bfb565b3480156104ac57600080fd5b506104c06104bb366004612581565b610c9f565b6040516102779190612626565b3480156104d957600080fd5b506102fa6104e8366004612329565b610d65565b3480156104f957600080fd5b506102c2610508366004612329565b610d94565b34801561051957600080fd5b50610331610528366004612566565b610da6565b34801561053957600080fd5b506102fa610df4565b6102fa61055036600461235e565b610e2a565b34801561056157600080fd5b50610575610570366004612566565b610f66565b6040516102779190612690565b34801561058e57600080fd5b50600a546001600160a01b03166102c2565b3480156105ac57600080fd5b506102fa6105bb3660046126c8565b6110ab565b3480156105cc57600080fd5b506102956110df565b3480156105e157600080fd5b506105756105f036600461270b565b6110ee565b34801561060157600080fd5b506102fa61061036600461274c565b6112a1565b34801561062157600080fd5b506102fa610630366004612329565b611336565b34801561064157600080fd5b506102fa610650366004612778565b611365565b34801561066157600080fd5b506103316106703660046123c4565b6113b0565b34801561068157600080fd5b50610695610690366004612329565b611444565b60405161027791906127f3565b3480156106ae57600080fd5b506102fa6106bd366004612329565b6114f2565b3480156106ce57600080fd5b506011546102c2906001600160a01b031681565b3480156106ee57600080fd5b5061033160105481565b34801561070457600080fd5b50610295610713366004612329565b611521565b34801561072457600080fd5b50610331600f5481565b34801561073a57600080fd5b5061026b610749366004612828565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561078357600080fd5b506102fa61079236600461235e565b6115a4565b3480156107a357600080fd5b506102fa6107b2366004612566565b611727565b60006107c2826117ce565b806107d157506107d18261181e565b92915050565b6060600280546107e69061285b565b80601f01602080910402602001604051908101604052809291908181526020018280546108129061285b565b801561085f5780601f106108345761010080835404028352916020019161085f565b820191906000526020600020905b81548152906001019060200180831161084257829003601f168201915b5050505050905090565b600061087482611843565b610891576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108b882610d94565b9050806001600160a01b0316836001600160a01b0316036108ec5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061090c575061090a8133610749565b155b1561092a576040516367d9dca160e11b815260040160405180910390fd5b61093583838361186e565b505050565b600a546001600160a01b0316331461096d5760405162461bcd60e51b815260040161096490612895565b60405180910390fd5b600f5481106109cd5760405162461bcd60e51b815260206004820152602660248201527f4d415820535550504c592043414e27542045584345454420494e495449414c20604482015265535550504c5960d01b6064820152608401610964565b600f55565b6109358383836118ca565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a525750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a71906001600160601b0316876128e0565b610a7b9190612915565b915196919550909350505050565b600a546001600160a01b03163314610ab35760405162461bcd60e51b815260040161096490612895565b600f54610ac083836128e0565b60015460005403610ad19190612929565b10610aee5760405162461bcd60e51b815260040161096490612941565b60005b82811015610b3b57610b29848483818110610b0e57610b0e612971565b9050602002016020810190610b239190612566565b83611aa6565b80610b3381612987565b915050610af1565b50505050565b600a546001600160a01b03163314610b6b5760405162461bcd60e51b815260040161096490612895565b600b610b7782826129ee565b5050565b61093583838360405180602001604052806000815250611365565b610ba1816001611ac0565b50565b600a546001600160a01b03163314610bce5760405162461bcd60e51b815260040161096490612895565b600a805482919060ff60a01b1916600160a01b836001811115610bf357610bf3612aad565b021790555050565b600a546001600160a01b03163314610c255760405162461bcd60e51b815260040161096490612895565b60004711610c6a5760405162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e542046554e445360701b6044820152606401610964565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610b77573d6000803e3d6000fd5b80516060906000816001600160401b03811115610cbe57610cbe612460565b604051908082528060200260200182016040528015610d0957816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610cdc5790505b50905060005b828114610d5d57610d38858281518110610d2b57610d2b612971565b6020026020010151611444565b828281518110610d4a57610d4a612971565b6020908102919091010152600101610d0f565b509392505050565b600a546001600160a01b03163314610d8f5760405162461bcd60e51b815260040161096490612895565b600e55565b6000610d9f82611c73565b5192915050565b60006001600160a01b038216610dcf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600a546001600160a01b03163314610e1e5760405162461bcd60e51b815260040161096490612895565b610e286000611d8d565b565b6001600a54600160a01b900460ff166001811115610e4a57610e4a612aad565b14610e8a5760405162461bcd60e51b815260206004820152601060248201526f29a0a6229024a9902727aa1027a822a760811b6044820152606401610964565b6010548110610ed55760405162461bcd60e51b81526020600482015260176024820152760b29eaa4086829c4ea84084aab240a89092a6409aaa869604b1b6044820152606401610964565b600f5481610ee66001546000540390565b610ef09190612929565b10610f0d5760405162461bcd60e51b815260040161096490612941565b600c54610f1a90826128e0565b341015610f5c5760405162461bcd60e51b815260206004820152601060248201526f2727aa1022a727aaa3a41022aa2422a960811b6044820152606401610964565b610b778282611aa6565b60606000806000610f7685610da6565b90506000816001600160401b03811115610f9257610f92612460565b604051908082528060200260200182016040528015610fbb578160200160208202803683370190505b509050610fe1604080516060810182526000808252602082018190529181019190915290565b60005b83861461109f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905292506110975781516001600160a01b03161561105857815194505b876001600160a01b0316856001600160a01b031603611097578083878060010198508151811061108a5761108a612971565b6020026020010181815250505b600101610fe4565b50909695505050505050565b600a546001600160a01b031633146110d55760405162461bcd60e51b815260040161096490612895565b610b778282611ddf565b6060600380546107e69061285b565b606081831061111057604051631960ccad60e11b815260040160405180910390fd5b6000805480841115611120578093505b600061112b87610da6565b90508486101561114a5785850381811015611144578091505b5061114e565b5060005b6000816001600160401b0381111561116857611168612460565b604051908082528060200260200182016040528015611191578160200160208202803683370190505b509050816000036111a757935061129a92505050565b60006111b288611444565b9050600081604001516111c3575080515b885b8881141580156111d55750848714155b1561128e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905293506112865782516001600160a01b03161561124757825191505b8a6001600160a01b0316826001600160a01b031603611286578084888060010199508151811061127957611279612971565b6020026020010181815250505b6001016111c5565b50505092835250909150505b9392505050565b336001600160a01b038316036112ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146113605760405162461bcd60e51b815260040161096490612895565b600c55565b6113708484846118ca565b6001600160a01b0383163b15158015611392575061139084848484611edc565b155b15610b3b576040516368d2bf6b60e11b815260040160405180910390fd5b6000806113bd8385612929565b600e54909150600160026113d18783612929565b6113db90886128e0565b6113e59190612915565b60026113f2856001612929565b6113fc90866128e0565b6114069190612915565b6114109190612ac3565b61141a9190612ac3565b61142491906128e0565b83600d5461143291906128e0565b61143c9190612929565b949350505050565b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810183905290915060005483106114895792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906114e95792915050565b61129a83611c73565b600a546001600160a01b0316331461151c5760405162461bcd60e51b815260040161096490612895565b600d55565b606061152c82611843565b61154957604051630a14c4b560e41b815260040160405180910390fd5b6000611553611fc7565b90508051600003611573576040518060200160405280600081525061129a565b8061157d84611fd6565b60405160200161158e929190612ada565b6040516020818303038152906040529392505050565b6001600a54600160a01b900460ff1660018111156115c4576115c4612aad565b146116045760405162461bcd60e51b815260206004820152601060248201526f29a0a6229024a9902727aa1027a822a760811b6044820152606401610964565b601054811061164f5760405162461bcd60e51b81526020600482015260176024820152760b29eaa4086829c4ea84084aab240a89092a6409aaa869604b1b6044820152606401610964565b600f54816116606001546000540390565b61166a9190612929565b106116875760405162461bcd60e51b815260040161096490612941565b6012546001600160a01b0316639dc29fac336116af6116a96001546000540390565b856113b0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156116fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171e9190612b09565b610f5c57600080fd5b600a546001600160a01b031633146117515760405162461bcd60e51b815260040161096490612895565b6001600160a01b0381166117b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610964565b610ba181611d8d565b6001600160a01b03163b151590565b60006001600160e01b031982166380ac58cd60e01b14806117ff57506001600160e01b03198216635b5e139f60e01b145b806107d157506301ffc9a760e01b6001600160e01b03198316146107d1565b60006001600160e01b0319821663152a902d60e11b14806107d157506107d1826117ce565b60008054821080156107d1575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118d582611c73565b9050836001600160a01b031681600001516001600160a01b03161461190c5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061192a575061192a8533610749565b8061194557503361193a84610869565b6001600160a01b0316145b90508061196557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661198c57604051633a954ecd60e21b815260040160405180910390fd5b6119986000848761186e565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611a6c576000548214611a6c57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020612b9583398151915260405160405180910390a45b5050505050565b610b778282604051806020016040528060008152506120d6565b6000611acb83611c73565b80519091508215611b31576000336001600160a01b0383161480611af45750611af48233610749565b80611b0f575033611b0486610869565b6001600160a01b0316145b905080611b2f57604051632ce44b5f60e11b815260040160405180910390fd5b505b611b3d6000858361186e565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116611c3b576000548214611c3b57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020612b95833981519152908390a4505060018054810190555050565b604080516060810182526000808252602082018190529181019190915281600054811015611d7457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611d725780516001600160a01b031615611d09579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611d6d579392505050565b611d09565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115611e4d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610964565b6001600160a01b038216611ea35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610964565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f11903390899088908890600401612b26565b6020604051808303816000875af1925050508015611f4c575060408051601f3d908101601f19168201909252611f4991810190612b63565b60015b611faa573d808015611f7a576040519150601f19603f3d011682016040523d82523d6000602084013e611f7f565b606091505b508051600003611fa2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600b80546107e69061285b565b606081600003611ffd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612027578061201181612987565b91506120209050600a83612915565b9150612001565b6000816001600160401b0381111561204157612041612460565b6040519080825280601f01601f19166020018201604052801561206b576020820181803683370190505b5090505b841561143c57612080600183612ac3565b915061208d600a86612b80565b612098906030612929565b60f81b8183815181106120ad576120ad612971565b60200101906001600160f81b031916908160001a9053506120cf600a86612915565b945061206f565b61093583838360016000546001600160a01b03851661210757604051622e076360e81b815260040160405180910390fd5b836000036121285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156121d957506001600160a01b0387163b15155b1561224f575b60405182906001600160a01b03891690600090600080516020612b95833981519152908290a46122186000888480600101955088611edc565b612235576040516368d2bf6b60e11b815260040160405180910390fd5b8082036121df57826000541461224a57600080fd5b612282565b5b6040516001830192906001600160a01b03891690600090600080516020612b95833981519152908290a4808203612250575b50600055611a9f565b6001600160e01b031981168114610ba157600080fd5b6000602082840312156122b357600080fd5b813561129a8161228b565b60005b838110156122d95781810151838201526020016122c1565b83811115610b3b5750506000910152565b600081518084526123028160208601602086016122be565b601f01601f19169290920160200192915050565b60208152600061129a60208301846122ea565b60006020828403121561233b57600080fd5b5035919050565b80356001600160a01b038116811461235957600080fd5b919050565b6000806040838503121561237157600080fd5b61237a83612342565b946020939093013593505050565b60008060006060848603121561239d57600080fd5b6123a684612342565b92506123b460208501612342565b9150604084013590509250925092565b600080604083850312156123d757600080fd5b50508035926020909101359150565b6000806000604084860312156123fb57600080fd5b83356001600160401b038082111561241257600080fd5b818601915086601f83011261242657600080fd5b81358181111561243557600080fd5b8760208260051b850101111561244a57600080fd5b6020928301989097509590910135949350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561249e5761249e612460565b604052919050565b60006001600160401b038311156124bf576124bf612460565b6124d2601f8401601f1916602001612476565b90508281528383830111156124e657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561250f57600080fd5b81356001600160401b0381111561252557600080fd5b8201601f8101841361253657600080fd5b61143c848235602084016124a6565b60006020828403121561255757600080fd5b81356002811061129a57600080fd5b60006020828403121561257857600080fd5b61129a82612342565b6000602080838503121561259457600080fd5b82356001600160401b03808211156125ab57600080fd5b818501915085601f8301126125bf57600080fd5b8135818111156125d1576125d1612460565b8060051b91506125e2848301612476565b81815291830184019184810190888411156125fc57600080fd5b938501935b8385101561261a57843582529385019390850190612601565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561109f5761267d83855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612642565b6020808252825182820181905260009190848201906040850190845b8181101561109f578351835292840192918401916001016126ac565b600080604083850312156126db57600080fd5b6126e483612342565b915060208301356001600160601b038116811461270057600080fd5b809150509250929050565b60008060006060848603121561272057600080fd5b61272984612342565b95602085013595506040909401359392505050565b8015158114610ba157600080fd5b6000806040838503121561275f57600080fd5b61276883612342565b915060208301356127008161273e565b6000806000806080858703121561278e57600080fd5b61279785612342565b93506127a560208601612342565b92506040850135915060608501356001600160401b038111156127c757600080fd5b8501601f810187136127d857600080fd5b6127e7878235602084016124a6565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016107d1565b6000806040838503121561283b57600080fd5b61284483612342565b915061285260208401612342565b90509250929050565b600181811c9082168061286f57607f821691505b60208210810361288f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156128fa576128fa6128ca565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612924576129246128ff565b500490565b6000821982111561293c5761293c6128ca565b500190565b6020808252601690820152751350560814d554141316481254c8115610d15151115160521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612999576129996128ca565b5060010190565b601f82111561093557600081815260208120601f850160051c810160208610156129c75750805b601f850160051c820191505b818110156129e6578281556001016129d3565b505050505050565b81516001600160401b03811115612a0757612a07612460565b612a1b81612a15845461285b565b846129a0565b602080601f831160018114612a505760008415612a385750858301515b600019600386901b1c1916600185901b1785556129e6565b600085815260208120601f198616915b82811015612a7f57888601518255948401946001909101908401612a60565b5085821015612a9d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b600082821015612ad557612ad56128ca565b500390565b60008351612aec8184602088016122be565b835190830190612b008183602088016122be565b01949350505050565b600060208284031215612b1b57600080fd5b815161129a8161273e565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b59908301846122ea565b9695505050505050565b600060208284031215612b7557600080fd5b815161129a8161228b565b600082612b8f57612b8f6128ff565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122056f211fc1f4ed1487f940f3324d23787a1e59d1e2a87003c02727fb73f105aaf64736f6c634300080f003368747470733a2f2f617274676c697878782e696f2f6170692f6d617368736f7274736c6963652fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106102465760003560e01c806370a0823111610139578063b88d4fde116100b6578063c6525d361161007a578063c6525d36146106e2578063c87b56dd146106f8578063d5abeb0114610718578063e985e9c51461072e578063f0904bcc14610777578063f2fde38b1461079757600080fd5b8063b88d4fde14610635578063beb6b56914610655578063c23dc68f14610675578063c546815b146106a2578063c5f956af146106c257600080fd5b80638f2fc60b116100fd5780638f2fc60b146105a057806395d89b41146105c057806399a2557a146105d5578063a22cb465146105f5578063b36832821461061557600080fd5b806370a082311461050d578063715018a61461052d5780637828846e146105425780638462151c146105555780638da5cb5b1461058257600080fd5b80632fb611f6116101c75780634891ad881161018b5780634891ad881461046057806351cff8d9146104805780635bbb2177146104a057806362c4fc4e146104cd5780636352211e146104ed57600080fd5b80632fb611f6146103d457806330176e13146103ea578063374b6e3a1461040a57806342842e0e1461042057806342966c681461044057600080fd5b806318160ddd1161020e57806318160ddd1461031c57806323b872dd1461033f5780632a55205a1461035f5780632ba556681461039e5780632c317b14146103b457600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da5780630e310d28146102fc575b600080fd5b34801561025757600080fd5b5061026b6102663660046122a1565b6107b7565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107d7565b6040516102779190612316565b3480156102ae57600080fd5b506102c26102bd366004612329565b610869565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f536600461235e565b6108ad565b005b34801561030857600080fd5b506102fa610317366004612329565b61093a565b34801561032857600080fd5b50600154600054035b604051908152602001610277565b34801561034b57600080fd5b506102fa61035a366004612388565b6109d2565b34801561036b57600080fd5b5061037f61037a3660046123c4565b6109dd565b604080516001600160a01b039093168352602083019190915201610277565b3480156103aa57600080fd5b50610331600e5481565b3480156103c057600080fd5b506102fa6103cf3660046123e6565b610a89565b3480156103e057600080fd5b50610331600d5481565b3480156103f657600080fd5b506102fa6104053660046124fd565b610b41565b34801561041657600080fd5b50610331600c5481565b34801561042c57600080fd5b506102fa61043b366004612388565b610b7b565b34801561044c57600080fd5b506102fa61045b366004612329565b610b96565b34801561046c57600080fd5b506102fa61047b366004612545565b610ba4565b34801561048c57600080fd5b506102fa61049b366004612566565b610bfb565b3480156104ac57600080fd5b506104c06104bb366004612581565b610c9f565b6040516102779190612626565b3480156104d957600080fd5b506102fa6104e8366004612329565b610d65565b3480156104f957600080fd5b506102c2610508366004612329565b610d94565b34801561051957600080fd5b50610331610528366004612566565b610da6565b34801561053957600080fd5b506102fa610df4565b6102fa61055036600461235e565b610e2a565b34801561056157600080fd5b50610575610570366004612566565b610f66565b6040516102779190612690565b34801561058e57600080fd5b50600a546001600160a01b03166102c2565b3480156105ac57600080fd5b506102fa6105bb3660046126c8565b6110ab565b3480156105cc57600080fd5b506102956110df565b3480156105e157600080fd5b506105756105f036600461270b565b6110ee565b34801561060157600080fd5b506102fa61061036600461274c565b6112a1565b34801561062157600080fd5b506102fa610630366004612329565b611336565b34801561064157600080fd5b506102fa610650366004612778565b611365565b34801561066157600080fd5b506103316106703660046123c4565b6113b0565b34801561068157600080fd5b50610695610690366004612329565b611444565b60405161027791906127f3565b3480156106ae57600080fd5b506102fa6106bd366004612329565b6114f2565b3480156106ce57600080fd5b506011546102c2906001600160a01b031681565b3480156106ee57600080fd5b5061033160105481565b34801561070457600080fd5b50610295610713366004612329565b611521565b34801561072457600080fd5b50610331600f5481565b34801561073a57600080fd5b5061026b610749366004612828565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561078357600080fd5b506102fa61079236600461235e565b6115a4565b3480156107a357600080fd5b506102fa6107b2366004612566565b611727565b60006107c2826117ce565b806107d157506107d18261181e565b92915050565b6060600280546107e69061285b565b80601f01602080910402602001604051908101604052809291908181526020018280546108129061285b565b801561085f5780601f106108345761010080835404028352916020019161085f565b820191906000526020600020905b81548152906001019060200180831161084257829003601f168201915b5050505050905090565b600061087482611843565b610891576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108b882610d94565b9050806001600160a01b0316836001600160a01b0316036108ec5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061090c575061090a8133610749565b155b1561092a576040516367d9dca160e11b815260040160405180910390fd5b61093583838361186e565b505050565b600a546001600160a01b0316331461096d5760405162461bcd60e51b815260040161096490612895565b60405180910390fd5b600f5481106109cd5760405162461bcd60e51b815260206004820152602660248201527f4d415820535550504c592043414e27542045584345454420494e495449414c20604482015265535550504c5960d01b6064820152608401610964565b600f55565b6109358383836118ca565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a525750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a71906001600160601b0316876128e0565b610a7b9190612915565b915196919550909350505050565b600a546001600160a01b03163314610ab35760405162461bcd60e51b815260040161096490612895565b600f54610ac083836128e0565b60015460005403610ad19190612929565b10610aee5760405162461bcd60e51b815260040161096490612941565b60005b82811015610b3b57610b29848483818110610b0e57610b0e612971565b9050602002016020810190610b239190612566565b83611aa6565b80610b3381612987565b915050610af1565b50505050565b600a546001600160a01b03163314610b6b5760405162461bcd60e51b815260040161096490612895565b600b610b7782826129ee565b5050565b61093583838360405180602001604052806000815250611365565b610ba1816001611ac0565b50565b600a546001600160a01b03163314610bce5760405162461bcd60e51b815260040161096490612895565b600a805482919060ff60a01b1916600160a01b836001811115610bf357610bf3612aad565b021790555050565b600a546001600160a01b03163314610c255760405162461bcd60e51b815260040161096490612895565b60004711610c6a5760405162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e542046554e445360701b6044820152606401610964565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610b77573d6000803e3d6000fd5b80516060906000816001600160401b03811115610cbe57610cbe612460565b604051908082528060200260200182016040528015610d0957816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610cdc5790505b50905060005b828114610d5d57610d38858281518110610d2b57610d2b612971565b6020026020010151611444565b828281518110610d4a57610d4a612971565b6020908102919091010152600101610d0f565b509392505050565b600a546001600160a01b03163314610d8f5760405162461bcd60e51b815260040161096490612895565b600e55565b6000610d9f82611c73565b5192915050565b60006001600160a01b038216610dcf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600a546001600160a01b03163314610e1e5760405162461bcd60e51b815260040161096490612895565b610e286000611d8d565b565b6001600a54600160a01b900460ff166001811115610e4a57610e4a612aad565b14610e8a5760405162461bcd60e51b815260206004820152601060248201526f29a0a6229024a9902727aa1027a822a760811b6044820152606401610964565b6010548110610ed55760405162461bcd60e51b81526020600482015260176024820152760b29eaa4086829c4ea84084aab240a89092a6409aaa869604b1b6044820152606401610964565b600f5481610ee66001546000540390565b610ef09190612929565b10610f0d5760405162461bcd60e51b815260040161096490612941565b600c54610f1a90826128e0565b341015610f5c5760405162461bcd60e51b815260206004820152601060248201526f2727aa1022a727aaa3a41022aa2422a960811b6044820152606401610964565b610b778282611aa6565b60606000806000610f7685610da6565b90506000816001600160401b03811115610f9257610f92612460565b604051908082528060200260200182016040528015610fbb578160200160208202803683370190505b509050610fe1604080516060810182526000808252602082018190529181019190915290565b60005b83861461109f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905292506110975781516001600160a01b03161561105857815194505b876001600160a01b0316856001600160a01b031603611097578083878060010198508151811061108a5761108a612971565b6020026020010181815250505b600101610fe4565b50909695505050505050565b600a546001600160a01b031633146110d55760405162461bcd60e51b815260040161096490612895565b610b778282611ddf565b6060600380546107e69061285b565b606081831061111057604051631960ccad60e11b815260040160405180910390fd5b6000805480841115611120578093505b600061112b87610da6565b90508486101561114a5785850381811015611144578091505b5061114e565b5060005b6000816001600160401b0381111561116857611168612460565b604051908082528060200260200182016040528015611191578160200160208202803683370190505b509050816000036111a757935061129a92505050565b60006111b288611444565b9050600081604001516111c3575080515b885b8881141580156111d55750848714155b1561128e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905293506112865782516001600160a01b03161561124757825191505b8a6001600160a01b0316826001600160a01b031603611286578084888060010199508151811061127957611279612971565b6020026020010181815250505b6001016111c5565b50505092835250909150505b9392505050565b336001600160a01b038316036112ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146113605760405162461bcd60e51b815260040161096490612895565b600c55565b6113708484846118ca565b6001600160a01b0383163b15158015611392575061139084848484611edc565b155b15610b3b576040516368d2bf6b60e11b815260040160405180910390fd5b6000806113bd8385612929565b600e54909150600160026113d18783612929565b6113db90886128e0565b6113e59190612915565b60026113f2856001612929565b6113fc90866128e0565b6114069190612915565b6114109190612ac3565b61141a9190612ac3565b61142491906128e0565b83600d5461143291906128e0565b61143c9190612929565b949350505050565b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810183905290915060005483106114895792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906114e95792915050565b61129a83611c73565b600a546001600160a01b0316331461151c5760405162461bcd60e51b815260040161096490612895565b600d55565b606061152c82611843565b61154957604051630a14c4b560e41b815260040160405180910390fd5b6000611553611fc7565b90508051600003611573576040518060200160405280600081525061129a565b8061157d84611fd6565b60405160200161158e929190612ada565b6040516020818303038152906040529392505050565b6001600a54600160a01b900460ff1660018111156115c4576115c4612aad565b146116045760405162461bcd60e51b815260206004820152601060248201526f29a0a6229024a9902727aa1027a822a760811b6044820152606401610964565b601054811061164f5760405162461bcd60e51b81526020600482015260176024820152760b29eaa4086829c4ea84084aab240a89092a6409aaa869604b1b6044820152606401610964565b600f54816116606001546000540390565b61166a9190612929565b106116875760405162461bcd60e51b815260040161096490612941565b6012546001600160a01b0316639dc29fac336116af6116a96001546000540390565b856113b0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156116fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171e9190612b09565b610f5c57600080fd5b600a546001600160a01b031633146117515760405162461bcd60e51b815260040161096490612895565b6001600160a01b0381166117b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610964565b610ba181611d8d565b6001600160a01b03163b151590565b60006001600160e01b031982166380ac58cd60e01b14806117ff57506001600160e01b03198216635b5e139f60e01b145b806107d157506301ffc9a760e01b6001600160e01b03198316146107d1565b60006001600160e01b0319821663152a902d60e11b14806107d157506107d1826117ce565b60008054821080156107d1575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118d582611c73565b9050836001600160a01b031681600001516001600160a01b03161461190c5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061192a575061192a8533610749565b8061194557503361193a84610869565b6001600160a01b0316145b90508061196557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661198c57604051633a954ecd60e21b815260040160405180910390fd5b6119986000848761186e565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611a6c576000548214611a6c57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020612b9583398151915260405160405180910390a45b5050505050565b610b778282604051806020016040528060008152506120d6565b6000611acb83611c73565b80519091508215611b31576000336001600160a01b0383161480611af45750611af48233610749565b80611b0f575033611b0486610869565b6001600160a01b0316145b905080611b2f57604051632ce44b5f60e11b815260040160405180910390fd5b505b611b3d6000858361186e565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116611c3b576000548214611c3b57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020612b95833981519152908390a4505060018054810190555050565b604080516060810182526000808252602082018190529181019190915281600054811015611d7457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611d725780516001600160a01b031615611d09579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611d6d579392505050565b611d09565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115611e4d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610964565b6001600160a01b038216611ea35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610964565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f11903390899088908890600401612b26565b6020604051808303816000875af1925050508015611f4c575060408051601f3d908101601f19168201909252611f4991810190612b63565b60015b611faa573d808015611f7a576040519150601f19603f3d011682016040523d82523d6000602084013e611f7f565b606091505b508051600003611fa2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600b80546107e69061285b565b606081600003611ffd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612027578061201181612987565b91506120209050600a83612915565b9150612001565b6000816001600160401b0381111561204157612041612460565b6040519080825280601f01601f19166020018201604052801561206b576020820181803683370190505b5090505b841561143c57612080600183612ac3565b915061208d600a86612b80565b612098906030612929565b60f81b8183815181106120ad576120ad612971565b60200101906001600160f81b031916908160001a9053506120cf600a86612915565b945061206f565b61093583838360016000546001600160a01b03851661210757604051622e076360e81b815260040160405180910390fd5b836000036121285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156121d957506001600160a01b0387163b15155b1561224f575b60405182906001600160a01b03891690600090600080516020612b95833981519152908290a46122186000888480600101955088611edc565b612235576040516368d2bf6b60e11b815260040160405180910390fd5b8082036121df57826000541461224a57600080fd5b612282565b5b6040516001830192906001600160a01b03891690600090600080516020612b95833981519152908290a4808203612250575b50600055611a9f565b6001600160e01b031981168114610ba157600080fd5b6000602082840312156122b357600080fd5b813561129a8161228b565b60005b838110156122d95781810151838201526020016122c1565b83811115610b3b5750506000910152565b600081518084526123028160208601602086016122be565b601f01601f19169290920160200192915050565b60208152600061129a60208301846122ea565b60006020828403121561233b57600080fd5b5035919050565b80356001600160a01b038116811461235957600080fd5b919050565b6000806040838503121561237157600080fd5b61237a83612342565b946020939093013593505050565b60008060006060848603121561239d57600080fd5b6123a684612342565b92506123b460208501612342565b9150604084013590509250925092565b600080604083850312156123d757600080fd5b50508035926020909101359150565b6000806000604084860312156123fb57600080fd5b83356001600160401b038082111561241257600080fd5b818601915086601f83011261242657600080fd5b81358181111561243557600080fd5b8760208260051b850101111561244a57600080fd5b6020928301989097509590910135949350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561249e5761249e612460565b604052919050565b60006001600160401b038311156124bf576124bf612460565b6124d2601f8401601f1916602001612476565b90508281528383830111156124e657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561250f57600080fd5b81356001600160401b0381111561252557600080fd5b8201601f8101841361253657600080fd5b61143c848235602084016124a6565b60006020828403121561255757600080fd5b81356002811061129a57600080fd5b60006020828403121561257857600080fd5b61129a82612342565b6000602080838503121561259457600080fd5b82356001600160401b03808211156125ab57600080fd5b818501915085601f8301126125bf57600080fd5b8135818111156125d1576125d1612460565b8060051b91506125e2848301612476565b81815291830184019184810190888411156125fc57600080fd5b938501935b8385101561261a57843582529385019390850190612601565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561109f5761267d83855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612642565b6020808252825182820181905260009190848201906040850190845b8181101561109f578351835292840192918401916001016126ac565b600080604083850312156126db57600080fd5b6126e483612342565b915060208301356001600160601b038116811461270057600080fd5b809150509250929050565b60008060006060848603121561272057600080fd5b61272984612342565b95602085013595506040909401359392505050565b8015158114610ba157600080fd5b6000806040838503121561275f57600080fd5b61276883612342565b915060208301356127008161273e565b6000806000806080858703121561278e57600080fd5b61279785612342565b93506127a560208601612342565b92506040850135915060608501356001600160401b038111156127c757600080fd5b8501601f810187136127d857600080fd5b6127e7878235602084016124a6565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016107d1565b6000806040838503121561283b57600080fd5b61284483612342565b915061285260208401612342565b90509250929050565b600181811c9082168061286f57607f821691505b60208210810361288f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156128fa576128fa6128ca565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612924576129246128ff565b500490565b6000821982111561293c5761293c6128ca565b500190565b6020808252601690820152751350560814d554141316481254c8115610d15151115160521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612999576129996128ca565b5060010190565b601f82111561093557600081815260208120601f850160051c810160208610156129c75750805b601f850160051c820191505b818110156129e6578281556001016129d3565b505050505050565b81516001600160401b03811115612a0757612a07612460565b612a1b81612a15845461285b565b846129a0565b602080601f831160018114612a505760008415612a385750858301515b600019600386901b1c1916600185901b1785556129e6565b600085815260208120601f198616915b82811015612a7f57888601518255948401946001909101908401612a60565b5085821015612a9d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b600082821015612ad557612ad56128ca565b500390565b60008351612aec8184602088016122be565b835190830190612b008183602088016122be565b01949350505050565b600060208284031215612b1b57600080fd5b815161129a8161273e565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b59908301846122ea565b9695505050505050565b600060208284031215612b7557600080fd5b815161129a8161228b565b600082612b8f57612b8f6128ff565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122056f211fc1f4ed1487f940f3324d23787a1e59d1e2a87003c02727fb73f105aaf64736f6c634300080f0033
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.