ERC-721
Overview
Max Total Supply
1,294 RENAI
Holders
445
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 RENAILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Renaissance
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "./core/NPassCore.sol"; import "./interfaces/IN.sol"; import "./Helpers.sol"; /** * @title RenAIssaNce -> forked from NDerivative * @author Inspired by @KnavETH @0xBlossom */ contract Renaissance is NPassCore, Pausable{ mapping(uint => uint) public metaId; // Rarity checkers uint256[] private isRare; uint256[] private isSuperRare; // The starting metaID indexes for each tournament round [ROUND0, ROUND1, ROUND2, FINAL_ROUND] uint256[] private superRareCounter = [ 0, 1200, 1450, 1525]; uint256[] private rareCounter = [40, 1215, 1455, 1528]; uint256[] private commonCounter = [80, 1230, 1460, 1531]; // The limit of mints in each tournement round [ROUND0, ROUND1, ROUND2, FINAL_ROUND] uint256[] private MAX_SUPER_RARE_NUMBER = [40, 1215, 1455, 1528]; uint256[] private MAX_RARE_NUMBER = [80, 1230, 1460, 1531]; uint256[] private MAX_COMMON_NUMBER = [1200,1450,1525, 1545]; // This block contains adjustable flags for minting rounds uint256 private currentPrice = 0; uint256 private currentRound = 0; // IPFS URLS for each round, they are mutable until BASE_LOCK is called for each index string[] private BASE_URIS = ["ipfs://QmYNc7SNm5boYDwKgqyrXX1aqHidHXAVRnjwqnF4hHqpRV", "", "",""]; bool[] private BASE_LOCK = [true, false, false, false]; // Allow common minters for overflow upwards into rare / rare into super_rare bool private _allowMovingUp = false; // Constructor uses NPassCore constructor( address _nContractAddress, uint256[] memory _superRareIds, uint256[] memory _rareIds ) NPassCore("renaiss.art | art reborn", "RENAI", IN(_nContractAddress), true, 1545, 0, 0, 0) { isRare = _rareIds; isSuperRare = _superRareIds; } /** Allow moving up * @notice Controls upwards overflow out of rareness categories */ function allowMovingUp() public view onlyOwner returns(bool) { return _allowMovingUp; } function setAllowMovingUp(bool _newValue) public onlyOwner { _allowMovingUp = _newValue; } /** Open Zepellin Pausable */ function pauseMints() public onlyOwner { _pause(); } function resumeMints() public onlyOwner { _unpause(); } /** Set the mint price * @notice To be used for setting price for later tournament rounds */ function setCurrentPrice(uint256 _newPrice) public onlyOwner { require(_newPrice >= 0, "REN:InvalidPrice"); currentPrice = _newPrice; } function getCurrentPrice() public view returns (uint){ return currentPrice; } /**Set current round *@notice sets the current round for pending mints * Only */ function setCurrentRound(uint256 _newValue) public onlyOwner { require(_newValue >= 0 && _newValue < 4, "REN:RoundNotValid"); require(bytes(BASE_URIS[_newValue]).length > 0, "REN:URINotSet"); currentRound = _newValue; } function getCurrentRound() public view returns (uint) { return currentRound; } /** Set the IPFS Link for each tournment round * @notice can only be done when the round is unlocked */ function setIPFSLink(string calldata _newValue, uint _round) public onlyOwner { require(!BASE_LOCK[_round], "REN:RoundLocked"); BASE_URIS[_round] = _newValue; } function getCurrentIPFSLink() public view returns (string memory) { string memory base_uri = BASE_URIS[currentRound]; return base_uri; } /** Lock the IPFS link for that round * @notice CANNOT BE UNSET USE WITH CAUTION */ function setLockRound(uint _round) public onlyOwner{ require(_round >= 0 && _round < 4, "REN:RoundNotValid"); BASE_LOCK[_round] = true; } /** Get base URI from MetaID * @notice Each tournement round has a different metadata range, this allows them to use different IPFS links based * on the round in which they were minted */ function getBaseURIFromMetaId(uint _metaId) internal view returns (string memory){ if (_metaId < 1200){ return BASE_URIS[0]; } else if (_metaId < 1450){ return BASE_URIS[1]; } else if (_metaId < 1525){ return BASE_URIS[2]; } else { return BASE_URIS[3]; } } /** TokenURI - reference to ERC721 metadata * @notice uses getBASEURIFROMMETAID to determine base URI hash */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); uint _metaId = getMetaId(tokenId); string memory baseURI = getBaseURIFromMetaId(_metaId); string memory uri = RenaissanceHelpers.append(baseURI,"/", RenaissanceHelpers.toString(_metaId)); return uri; } /** Decides the rarity of the N holder based on the rarity of their token */ function assignMetaId(uint256 _tokenId) internal returns (uint256){ if(RenaissanceHelpers.checkRarity(_tokenId, isSuperRare)){ if(superRareCounter[currentRound] < MAX_SUPER_RARE_NUMBER[currentRound]){ return superRareCounter[currentRound]++; }else if(rareCounter[currentRound] < MAX_RARE_NUMBER[currentRound]){ return rareCounter[currentRound]++; }else if (commonCounter[currentRound] < MAX_COMMON_NUMBER[currentRound]){ return commonCounter[currentRound]++; }else{ revert("All have been minted."); } }else if(RenaissanceHelpers.checkRarity(_tokenId, isRare)){ if(rareCounter[currentRound] < MAX_RARE_NUMBER[currentRound]){ return rareCounter[currentRound]++; }else if (commonCounter[currentRound] < MAX_COMMON_NUMBER[currentRound]){ return commonCounter[currentRound]++; } else if(_allowMovingUp && superRareCounter[currentRound] < MAX_SUPER_RARE_NUMBER[currentRound]){ return superRareCounter[currentRound]++; } else{ revert("All have been minted."); } } else { if (commonCounter[currentRound] < MAX_COMMON_NUMBER[currentRound]){ return commonCounter[currentRound]++; }else if(_allowMovingUp && rareCounter[currentRound] < MAX_RARE_NUMBER[currentRound]){ return rareCounter[currentRound]++; }else if(_allowMovingUp && superRareCounter[currentRound] < MAX_SUPER_RARE_NUMBER[currentRound]){ return superRareCounter[currentRound]++; }else{ revert("All have been minted."); } } } /** * @notice Allow a n token holder to mint a token with one of their n token's id * @param tokenId Id to be minted */ function mintWithN(uint256 tokenId) public payable override nonReentrant whenNotPaused { require( // If no reserved allowance we respect total supply contraint (reservedAllowance == 0 && totalSupply() < maxTotalSupply) || reserveMinted < reservedAllowance, "NPass:MAX_ALLOCATION_REACHED" ); require(n.ownerOf(tokenId) == msg.sender, "NPass:INVALID_OWNER"); require(msg.value == currentPrice, "REN:INVALID_PRICE"); // If reserved allowance is active we track mints count if (reservedAllowance > 0) { reserveMinted++; } uint256 _metaId = assignMetaId(tokenId); uint256 _roundAdjustedID = ((tokenId * 100) + currentRound); metaId[_roundAdjustedID] = _metaId; _safeMint(msg.sender, _roundAdjustedID); } /** * @notice Allow a n token holder to bulk mint tokens with id of their n tokens' id * @param tokenIds Ids to be minted */ function multiMintWithN(uint256[] calldata tokenIds) public payable override nonReentrant whenNotPaused { uint256 maxTokensToMint = tokenIds.length; require(maxTokensToMint <= MAX_MULTI_MINT_AMOUNT, "NPass:TOO_LARGE"); require( // If no reserved allowance we respect total supply contraint (reservedAllowance == 0 && totalSupply() + maxTokensToMint <= maxTotalSupply) || reserveMinted + maxTokensToMint <= reservedAllowance, "NPass:MAX_ALLOCATION_REACHED" ); require(msg.value == currentPrice * maxTokensToMint, "NPass:INVALID_PRICE"); // To avoid wasting gas we want to check all preconditions beforehand for (uint256 i = 0; i < maxTokensToMint; i++) { require(n.ownerOf(tokenIds[i]) == msg.sender, "NPass:INVALID_OWNER"); } // If reserved allowance is active we track mints count if (reservedAllowance > 0) { reserveMinted += uint16(maxTokensToMint); } for (uint256 i = 0; i < maxTokensToMint; i++) { uint256 _metaId = assignMetaId(tokenIds[i]); uint256 _roundAdjustedID = ((tokenIds[i] * 100) + currentRound); metaId[_roundAdjustedID] = _metaId; _safeMint(msg.sender, _roundAdjustedID); } } /** notice: Only public for verification purposes, returns the base_url/metaID for the provided token @param _tokenId - the tokenID to search with */ function getMetaId(uint256 _tokenId) public view returns (uint256){ return metaId[_tokenId]; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; interface IN is IERC721Enumerable, IERC721Metadata { function getFirst(uint256 tokenId) external view returns (uint256); function getSecond(uint256 tokenId) external view returns (uint256); function getThird(uint256 tokenId) external view returns (uint256); function getFourth(uint256 tokenId) external view returns (uint256); function getFifth(uint256 tokenId) external view returns (uint256); function getSixth(uint256 tokenId) external view returns (uint256); function getSeventh(uint256 tokenId) external view returns (uint256); function getEight(uint256 tokenId) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/IN.sol"; /** * @title NPassCore contract * @author Tony Snark * @notice This contract provides basic functionalities to allow minting using the NPass * @dev This contract should be used only for testing or testnet deployments */ abstract contract NPassCore is ERC721Enumerable, ReentrancyGuard, Ownable { uint256 public constant MAX_MULTI_MINT_AMOUNT = 32; uint256 public constant MAX_N_TOKEN_ID = 8888; IN public immutable n; bool public immutable onlyNHolders; uint16 public immutable reservedAllowance; uint16 public reserveMinted; uint256 public immutable maxTotalSupply; uint256 public immutable priceForNHoldersInWei; uint256 public immutable priceForOpenMintInWei; /** * @notice Construct an NPassCore instance * @param name Name of the token * @param symbol Symbol of the token * @param n_ Address of your n instance (only for testing) * @param onlyNHolders_ True if only n tokens holders can mint this token * @param maxTotalSupply_ Maximum number of tokens that can ever be minted * @param reservedAllowance_ Number of tokens reserved for n token holders * @param priceForNHoldersInWei_ Price n token holders need to pay to mint * @param priceForOpenMintInWei_ Price open minter need to pay to mint */ constructor( string memory name, string memory symbol, IN n_, bool onlyNHolders_, uint256 maxTotalSupply_, uint16 reservedAllowance_, uint256 priceForNHoldersInWei_, uint256 priceForOpenMintInWei_ ) ERC721(name, symbol) { require(maxTotalSupply_ > 0, "NPass:INVALID_SUPPLY"); require(!onlyNHolders_ || (onlyNHolders_ && maxTotalSupply_ <= MAX_N_TOKEN_ID), "NPass:INVALID_SUPPLY"); require(maxTotalSupply_ >= reservedAllowance_, "NPass:INVALID_ALLOWANCE"); // If restricted to n token holders we limit max total supply n = n_; onlyNHolders = onlyNHolders_; maxTotalSupply = maxTotalSupply_; reservedAllowance = reservedAllowance_; priceForNHoldersInWei = priceForNHoldersInWei_; priceForOpenMintInWei = priceForOpenMintInWei_; } /** * @notice Allow a n token holder to bulk mint tokens with id of their n tokens' id * @param tokenIds Ids to be minted */ function multiMintWithN(uint256[] calldata tokenIds) public payable virtual nonReentrant { uint256 maxTokensToMint = tokenIds.length; require(maxTokensToMint <= MAX_MULTI_MINT_AMOUNT, "NPass:TOO_LARGE"); require( // If no reserved allowance we respect total supply contraint (reservedAllowance == 0 && totalSupply() + maxTokensToMint <= maxTotalSupply) || reserveMinted + maxTokensToMint <= reservedAllowance, "NPass:MAX_ALLOCATION_REACHED" ); require(msg.value == priceForNHoldersInWei * maxTokensToMint, "NPass:INVALID_PRICE"); // To avoid wasting gas we want to check all preconditions beforehand for (uint256 i = 0; i < maxTokensToMint; i++) { require(n.ownerOf(tokenIds[i]) == msg.sender, "NPass:INVALID_OWNER"); } // If reserved allowance is active we track mints count if (reservedAllowance > 0) { reserveMinted += uint16(maxTokensToMint); } for (uint256 i = 0; i < maxTokensToMint; i++) { _safeMint(msg.sender, tokenIds[i]); } } /** * @notice Allow a n token holder to mint a token with one of their n token's id * @param tokenId Id to be minted */ function mintWithN(uint256 tokenId) public payable virtual nonReentrant { require( // If no reserved allowance we respect total supply contraint (reservedAllowance == 0 && totalSupply() < maxTotalSupply) || reserveMinted < reservedAllowance, "NPass:MAX_ALLOCATION_REACHED" ); require(n.ownerOf(tokenId) == msg.sender, "NPass:INVALID_OWNER"); require(msg.value == priceForNHoldersInWei, "NPass:INVALID_PRICE"); // If reserved allowance is active we track mints count if (reservedAllowance > 0) { reserveMinted++; } _safeMint(msg.sender, tokenId); } /** * @notice Allow anyone to mint a token with the supply id if this pass is unrestricted. * n token holders can use this function without using the n token holders allowance, * this is useful when the allowance is fully utilized. * @param tokenId Id to be minted */ function mint(uint256 tokenId) public payable virtual nonReentrant { require(!onlyNHolders, "NPass:OPEN_MINTING_DISABLED"); require(openMintsAvailable() > 0, "NPass:MAX_ALLOCATION_REACHED"); require( (tokenId > MAX_N_TOKEN_ID && tokenId <= maxTokenId()) || n.ownerOf(tokenId) == msg.sender, "NPass:INVALID_ID" ); require(msg.value == priceForOpenMintInWei, "NPass:INVALID_PRICE"); _safeMint(msg.sender, tokenId); } /** * @notice Calculate the maximum token id that can ever be minted * @return Maximum token id */ function maxTokenId() public view returns (uint256) { uint256 maxOpenMints = maxTotalSupply - reservedAllowance; return MAX_N_TOKEN_ID + maxOpenMints; } /** * @notice Calculate the currently available number of reserved tokens for n token holders * @return Reserved mint available */ function nHoldersMintsAvailable() external view returns (uint256) { return reservedAllowance - reserveMinted; } /** * @notice Calculate the currently available number of open mints * @return Open mint available */ function openMintsAvailable() public view returns (uint256) { uint256 maxOpenMints = maxTotalSupply - reservedAllowance; uint256 currentOpenMints = totalSupply() - reserveMinted; return maxOpenMints - currentOpenMints; } /** * @notice Allows owner to withdraw amount */ function withdrawAll() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
library RenaissanceHelpers { function append(string memory a, string memory b, string memory c) internal pure returns (string memory) { return string(abi.encodePacked(a, b, c)); } /**Checks the rarity by shifting bits and comparing to 1 */ function checkRarity(uint _nTokenId, uint256[] storage _rare) internal returns (bool){ return ((_rare[(_nTokenId-1) >> 8] >> (255 - ((_nTokenId-1) % 256))) & 0x00000000000000000000000000000001) == 1 ; } function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } }
// SPDX-License-Identifier: MIT 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 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 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_nContractAddress","type":"address"},{"internalType":"uint256[]","name":"_superRareIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_rareIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MULTI_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_N_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowMovingUp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentIPFSLink","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getMetaId","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":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metaId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintWithN","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"multiMintWithN","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"n","outputs":[{"internalType":"contract IN","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nHoldersMintsAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyNHolders","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMintsAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pauseMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceForNHoldersInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceForOpenMintInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedAllowance","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resumeMints","outputs":[],"stateMutability":"nonpayable","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":"bool","name":"_newValue","type":"bool"}],"name":"setAllowMovingUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setCurrentPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newValue","type":"uint256"}],"name":"setCurrentRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newValue","type":"string"},{"internalType":"uint256","name":"_round","type":"uint256"}],"name":"setIPFSLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_round","type":"uint256"}],"name":"setLockRound","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101c060405260006101409081526104b0610160526105aa610180526105f56101a0526200003290600f9060046200045e565b5060408051608081018252602881526104bf60208201526105af918101919091526105f860608201526200006b9060109060046200045e565b5060408051608081018252605081526104ce60208201526105b4918101919091526105fb6060820152620000a49060119060046200045e565b5060408051608081018252602881526104bf60208201526105af918101919091526105f86060820152620000dd9060129060046200045e565b5060408051608081018252605081526104ce60208201526105b4918101919091526105fb6060820152620001169060139060046200045e565b50604080516080810182526104b081526105aa60208201526105f5918101919091526106096060820152620001509060149060046200045e565b50600060158190556016556040805160e0810190915260356080820181815282916200400e60a084013981526040805160208181018352600080835281850192909252825180820184528281528385015282519081019092528152606090910152620001c1906017906004620004b4565b5060408051608081018252600181526000602082018190529181018290526060810191909152620001f790601890600462000514565b506019805460ff191690553480156200020f57600080fd5b506040516200404338038062004043833981016040819052620002329162000799565b6040518060400160405280601881526020017f72656e616973732e617274207c20617274207265626f726e00000000000000008152506040518060400160405280600581526020016452454e414960d81b815250846001610609600080600087878160009080519060200190620002ab929190620005bb565b508051620002c1906001906020840190620005bb565b50506001600a5550620002d4336200040c565b60008411620003005760405162461bcd60e51b8152600401620002f79062000823565b60405180910390fd5b8415806200031957508480156200031957506122b88411155b620003385760405162461bcd60e51b8152600401620002f79062000823565b8261ffff168410156200038e5760405162461bcd60e51b815260206004820152601760248201527f4e506173733a494e56414c49445f414c4c4f57414e43450000000000000000006044820152606401620002f7565b60609590951b6001600160601b03191660805292151560f81b60a05260e09190915260f01b6001600160f01b03191660c05261010052610120525050600b805460ff60b01b191690558051620003ec90600d90602084019062000638565b5081516200040290600e90602085019062000638565b50505050620008ad565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620004a2579160200282015b82811115620004a2578251829061ffff169055916020019190600101906200047f565b50620004b092915062000675565b5090565b82805482825590600052602060002090810192821562000506579160200282015b82811115620005065782518051620004f5918491602090910190620005bb565b5091602001919060010190620004d5565b50620004b09291506200068c565b82805482825590600052602060002090601f01602090048101928215620004a25791602002820160005b838211156200057d57835183826101000a81548160ff02191690831515021790555092602001926001016020816000010492830192600103026200053e565b8015620005ac5782816101000a81549060ff02191690556001016020816000010492830192600103026200057d565b5050620004b092915062000675565b828054620005c9906200085a565b90600052602060002090601f016020900481019282620005ed5760008555620004a2565b82601f106200060857805160ff1916838001178555620004a2565b82800160010185558215620004a2579182015b82811115620004a25782518255916020019190600101906200061b565b828054828255906000526020600020908101928215620004a25791602002820182811115620004a25782518255916020019190600101906200061b565b5b80821115620004b0576000815560010162000676565b80821115620004b0576000620006a38282620006ad565b506001016200068c565b508054620006bb906200085a565b6000825580601f10620006cc575050565b601f016020900490600052602060002090810190620006ec919062000675565b50565b600082601f8301126200070157600080fd5b815160206001600160401b038083111562000720576200072062000897565b8260051b604051601f19603f8301168101818110848211171562000748576200074862000897565b604052848152838101925086840182880185018910156200076857600080fd5b600092505b858310156200078d5780518452928401926001929092019184016200076d565b50979650505050505050565b600080600060608486031215620007af57600080fd5b83516001600160a01b0381168114620007c757600080fd5b60208501519093506001600160401b0380821115620007e557600080fd5b620007f387838801620006ef565b935060408601519150808211156200080a57600080fd5b506200081986828701620006ef565b9150509250925092565b60208082526014908201527f4e506173733a494e56414c49445f535550504c59000000000000000000000000604082015260600190565b600181811c908216806200086f57607f821691505b602082108114156200089157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160f81c60c05160f01c60e051610100516101205161368a620009846000396000818161082701526119890152600061079e0152600081816103c401528181610a0f015281816110b401528181611676015261178301526000818161035d015281816109e501528181610a4701528181610b990152818161108a015281816110f80152818161127801528181611654015281816117610152611b560152600081816105cf01526117f40152600081816103f801528181610aaf0152818161118601526118c3015261368a6000f3fe60806040526004361061022e5760003560e01c806301ffc9a71461023357806306fdde0314610268578063081812fc1461028a5780630860b12c146102b7578063095ea7b3146102cc5780630c505bcd146102ec57806318160ddd1461030c57806318b200711461032b57806320bc84ce1461034b57806323b872dd146103925780632ab4d052146103b25780632e52d606146103e65780632f745c591461041a5780633bc91e281461043a57806342842e0e1461045a578063446816481461047a57806347febae81461048f5780634c81433f146104a25780634f6ccce7146104c45780635c975abb146104e45780635d48ca59146104f95780635d929f701461052657806361fd9bcc1461053b5780636304faf31461055b5780636352211e146105705780636958dad6146105905780636a4c19d9146105bd57806370a08231146105f1578063715018a6146106115780638416b69614610626578063853828b61461063b5780638da5cb5b1461065057806391ba317a1461066557806395d89b411461067a578063a0712d681461068f578063a22cb465146106a2578063a32bf597146106c2578063a3398b80146106d7578063ab15f723146106ec578063ae5a583f14610701578063b88d4fde14610717578063c5de34a014610737578063c87b56dd1461074c578063d5fb93451461076c578063daf5d3741461078c578063e985e9c5146107c0578063eb91d37e146107e0578063f2fde38b146107f5578063f82cbbe814610815575b600080fd5b34801561023f57600080fd5b5061025361024e3660046130a7565b610849565b60405190151581526020015b60405180910390f35b34801561027457600080fd5b5061027d610874565b60405161025f9190613231565b34801561029657600080fd5b506102aa6102a5366004613158565b610906565b60405161025f91906131e0565b6102ca6102c5366004613158565b610993565b005b3480156102d857600080fd5b506102ca6102e7366004612fec565b610c45565b3480156102f857600080fd5b506102ca610307366004613158565b610d56565b34801561031857600080fd5b506008545b60405190815260200161025f565b34801561033757600080fd5b506102ca610346366004613158565b610de6565b34801561035757600080fd5b5061037f7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff909116815260200161025f565b34801561039e57600080fd5b506102ca6103ad366004612e97565b610e1a565b3480156103be57600080fd5b5061031d7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103f257600080fd5b506102aa7f000000000000000000000000000000000000000000000000000000000000000081565b34801561042657600080fd5b5061031d610435366004612fec565b610e4b565b34801561044657600080fd5b506102ca610455366004613158565b610ee1565b34801561046657600080fd5b506102ca610475366004612e97565b610f9e565b34801561048657600080fd5b50610253610fb9565b6102ca61049d366004613018565b610ff4565b3480156104ae57600080fd5b50600b5461037f90600160a01b900461ffff1681565b3480156104d057600080fd5b5061031d6104df366004613158565b611378565b3480156104f057600080fd5b5061025361140b565b34801561050557600080fd5b5061031d610514366004613158565b6000908152600c602052604090205490565b34801561053257600080fd5b5061031d602081565b34801561054757600080fd5b506102ca61055636600461308c565b61141b565b34801561056757600080fd5b5061027d61145d565b34801561057c57600080fd5b506102aa61058b366004613158565b611510565b34801561059c57600080fd5b5061031d6105ab366004613158565b600c6020526000908152604090205481565b3480156105c957600080fd5b506102537f000000000000000000000000000000000000000000000000000000000000000081565b3480156105fd57600080fd5b5061031d61060c366004612e1d565b611587565b34801561061d57600080fd5b506102ca61160e565b34801561063257600080fd5b5061031d611649565b34801561064757600080fd5b506102ca6116d5565b34801561065c57600080fd5b506102aa611747565b34801561067157600080fd5b5061031d611756565b34801561068657600080fd5b5061027d6117bb565b6102ca61069d366004613158565b6117ca565b3480156106ae57600080fd5b506102ca6106bd366004612fb7565b6119d8565b3480156106ce57600080fd5b5060165461031d565b3480156106e357600080fd5b506102ca611a99565b3480156106f857600080fd5b506102ca611ad0565b34801561070d57600080fd5b5061031d6122b881565b34801561072357600080fd5b506102ca610732366004612ed8565b611b07565b34801561074357600080fd5b5061031d611b3f565b34801561075857600080fd5b5061027d610767366004613158565b611b83565b34801561077857600080fd5b506102ca6107873660046130e1565b611c44565b34801561079857600080fd5b5061031d7f000000000000000000000000000000000000000000000000000000000000000081565b3480156107cc57600080fd5b506102536107db366004612e5e565b611d11565b3480156107ec57600080fd5b5060155461031d565b34801561080157600080fd5b506102ca610810366004612e1d565b611d3f565b34801561082157600080fd5b5061031d7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663780e9d6360e01b148061086e575061086e82611ddc565b92915050565b6060600080546108839061350f565b80601f01602080910402602001604051908101604052809291908181526020018280546108af9061350f565b80156108fc5780601f106108d1576101008083540402835291602001916108fc565b820191906000526020600020905b8154815290600101906020018083116108df57829003601f168201915b5050505050905090565b600061091182611e2c565b6109775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6002600a5414156109b65760405162461bcd60e51b815260040161096e906133a0565b6002600a556109c361140b565b156109e05760405162461bcd60e51b815260040161096e906132c3565b61ffff7f000000000000000000000000000000000000000000000000000000000000000016158015610a3957507f0000000000000000000000000000000000000000000000000000000000000000610a3760085490565b105b80610a735750600b5461ffff7f00000000000000000000000000000000000000000000000000000000000000008116600160a01b90920416105b610a8f5760405162461bcd60e51b815260040161096e906133d7565b6040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b158015610af157600080fd5b505afa158015610b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b299190612e41565b6001600160a01b031614610b4f5760405162461bcd60e51b815260040161096e90613322565b6015543414610b945760405162461bcd60e51b815260206004820152601160248201527052454e3a494e56414c49445f505249434560781b604482015260640161096e565b61ffff7f00000000000000000000000000000000000000000000000000000000000000001615610bf557600b8054600160a01b900461ffff16906014610bd98361354a565b91906101000a81548161ffff021916908361ffff160217905550505b6000610c0082611e49565b90506000601654836064610c14919061348a565b610c1e919061345e565b6000818152600c602052604090208390559050610c3b33826121c4565b50506001600a5550565b6000610c5082611510565b9050806001600160a01b0316836001600160a01b03161415610cbe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161096e565b336001600160a01b0382161480610cda5750610cda8133611d11565b610d475760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161096e565b610d5183836121e2565b505050565b33610d5f611747565b6001600160a01b031614610d855760405162461bcd60e51b815260040161096e906132ed565b60048110610da55760405162461bcd60e51b815260040161096e9061340d565b600160188281548110610dba57610dba6135dd565b90600052602060002090602091828204019190066101000a81548160ff02191690831515021790555050565b33610def611747565b6001600160a01b031614610e155760405162461bcd60e51b815260040161096e906132ed565b601555565b610e243382612250565b610e405760405162461bcd60e51b815260040161096e9061334f565b610d5183838361231a565b6000610e5683611587565b8210610eb85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161096e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b33610eea611747565b6001600160a01b031614610f105760405162461bcd60e51b815260040161096e906132ed565b60048110610f305760405162461bcd60e51b815260040161096e9061340d565b600060178281548110610f4557610f456135dd565b906000526020600020018054610f5a9061350f565b905011610f995760405162461bcd60e51b815260206004820152600d60248201526c1491538e955492539bdd14d95d609a1b604482015260640161096e565b601655565b610d5183838360405180602001604052806000815250611b07565b600033610fc4611747565b6001600160a01b031614610fea5760405162461bcd60e51b815260040161096e906132ed565b5060195460ff1690565b6002600a5414156110175760405162461bcd60e51b815260040161096e906133a0565b6002600a5561102461140b565b156110415760405162461bcd60e51b815260040161096e906132c3565b8060208111156110855760405162461bcd60e51b815260206004820152600f60248201526e4e506173733a544f4f5f4c4152474560881b604482015260640161096e565b61ffff7f0000000000000000000000000000000000000000000000000000000000000000161580156110ea57507f0000000000000000000000000000000000000000000000000000000000000000816110dd60085490565b6110e7919061345e565b11155b806111305750600b5461ffff7f000000000000000000000000000000000000000000000000000000000000000081169161112d918491600160a01b90041661345e565b11155b61114c5760405162461bcd60e51b815260040161096e906133d7565b8060155461115a919061348a565b34146111785760405162461bcd60e51b815260040161096e90613296565b60005b8181101561127257337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e8686858181106111c5576111c56135dd565b905060200201356040518263ffffffff1660e01b81526004016111ea91815260200190565b60206040518083038186803b15801561120257600080fd5b505afa158015611216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123a9190612e41565b6001600160a01b0316146112605760405162461bcd60e51b815260040161096e90613322565b8061126a8161356c565b91505061117b565b5061ffff7f000000000000000000000000000000000000000000000000000000000000000016156112d75780600b60148282829054906101000a900461ffff166112bc9190613438565b92506101000a81548161ffff021916908361ffff1602179055505b60005b8181101561136d5760006113058585848181106112f9576112f96135dd565b90506020020135611e49565b9050600060165486868581811061131e5761131e6135dd565b905060200201356064611331919061348a565b61133b919061345e565b6000818152600c60205260409020839055905061135833826121c4565b505080806113659061356c565b9150506112da565b50506001600a555050565b600061138360085490565b82106113e65760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161096e565b600882815481106113f9576113f96135dd565b90600052602060002001549050919050565b600b54600160b01b900460ff1690565b33611424611747565b6001600160a01b03161461144a5760405162461bcd60e51b815260040161096e906132ed565b6019805460ff1916911515919091179055565b60606000601760165481548110611476576114766135dd565b90600052602060002001805461148b9061350f565b80601f01602080910402602001604051908101604052809291908181526020018280546114b79061350f565b80156115045780601f106114d957610100808354040283529160200191611504565b820191906000526020600020905b8154815290600101906020018083116114e757829003601f168201915b50939695505050505050565b6000818152600260205260408120546001600160a01b03168061086e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161096e565b60006001600160a01b0382166115f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161096e565b506001600160a01b031660009081526003602052604090205490565b33611617611747565b6001600160a01b03161461163d5760405162461bcd60e51b815260040161096e906132ed565b61164760006124b3565b565b60008061169a61ffff7f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006134cc565b600b5490915060009061ffff600160a01b909104166116b860085490565b6116c291906134cc565b90506116ce81836134cc565b9250505090565b336116de611747565b6001600160a01b0316146117045760405162461bcd60e51b815260040161096e906132ed565b61170c611747565b6001600160a01b03166108fc479081150290604051600060405180830381858888f19350505050158015611744573d6000803e3d6000fd5b50565b600b546001600160a01b031690565b6000806117a761ffff7f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006134cc565b90506117b5816122b861345e565b91505090565b6060600180546108839061350f565b6002600a5414156117ed5760405162461bcd60e51b815260040161096e906133a0565b6002600a557f00000000000000000000000000000000000000000000000000000000000000001561185e5760405162461bcd60e51b815260206004820152601b60248201527a1394185cdcce93d4115397d3525395125391d7d11254d050931151602a1b604482015260640161096e565b6000611868611649565b116118855760405162461bcd60e51b815260040161096e906133d7565b6122b88111801561189d5750611899611756565b8111155b8061194857506040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b15801561190557600080fd5b505afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190612e41565b6001600160a01b0316145b6119875760405162461bcd60e51b815260206004820152601060248201526f1394185cdcce9253959053125117d25160821b604482015260640161096e565b7f000000000000000000000000000000000000000000000000000000000000000034146119c65760405162461bcd60e51b815260040161096e90613296565b6119d033826121c4565b506001600a55565b6001600160a01b038216331415611a2d5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161096e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611aa2611747565b6001600160a01b031614611ac85760405162461bcd60e51b815260040161096e906132ed565b611647612505565b33611ad9611747565b6001600160a01b031614611aff5760405162461bcd60e51b815260040161096e906132ed565b611647612597565b611b113383612250565b611b2d5760405162461bcd60e51b815260040161096e9061334f565b611b39848484846125f7565b50505050565b600b54600090611b7a90600160a01b900461ffff167f00000000000000000000000000000000000000000000000000000000000000006134a9565b61ffff16905090565b6060611b8e82611e2c565b611bf25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161096e565b6000828152600c602052604081205490611c0b8261262a565b90506000611c3b82604051806040016040528060018152602001602f60f81b815250611c3686612734565b612831565b95945050505050565b33611c4d611747565b6001600160a01b031614611c735760405162461bcd60e51b815260040161096e906132ed565b60188181548110611c8657611c866135dd565b90600052602060002090602091828204019190069054906101000a900460ff1615611ce55760405162461bcd60e51b815260206004820152600f60248201526e1491538e949bdd5b99131bd8dad959608a1b604482015260640161096e565b828260178381548110611cfa57611cfa6135dd565b906000526020600020019190611b39929190612d74565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33611d48611747565b6001600160a01b031614611d6e5760405162461bcd60e51b815260040161096e906132ed565b6001600160a01b038116611dd35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161096e565b611744816124b3565b60006001600160e01b031982166380ac58cd60e01b1480611e0d57506001600160e01b03198216635b5e139f60e01b145b8061086e57506301ffc9a760e01b6001600160e01b031983161461086e565b6000908152600260205260409020546001600160a01b0316151590565b6000611e5682600e612860565b15611fcc57601260165481548110611e7057611e706135dd565b9060005260206000200154600f60165481548110611e9057611e906135dd565b90600052602060002001541015611ed657600f60165481548110611eb657611eb66135dd565b60009182526020822001805491611ecc8361356c565b9091555092915050565b601360165481548110611eeb57611eeb6135dd565b9060005260206000200154601060165481548110611f0b57611f0b6135dd565b90600052602060002001541015611f3157601060165481548110611eb657611eb66135dd565b601460165481548110611f4657611f466135dd565b9060005260206000200154601160165481548110611f6657611f666135dd565b90600052602060002001541015611f8c57601160165481548110611eb657611eb66135dd565b60405162461bcd60e51b815260206004820152601560248201527420b636103430bb32903132b2b71036b4b73a32b21760591b604482015260640161096e565b611fd782600d612860565b156120fb57601360165481548110611ff157611ff16135dd565b9060005260206000200154601060165481548110612011576120116135dd565b9060005260206000200154101561203757601060165481548110611eb657611eb66135dd565b60146016548154811061204c5761204c6135dd565b906000526020600020015460116016548154811061206c5761206c6135dd565b9060005260206000200154101561209257601160165481548110611eb657611eb66135dd565b60195460ff1680156120e157506012601654815481106120b4576120b46135dd565b9060005260206000200154600f601654815481106120d4576120d46135dd565b9060005260206000200154105b15611f8c57600f60165481548110611eb657611eb66135dd565b601460165481548110612110576121106135dd565b9060005260206000200154601160165481548110612130576121306135dd565b9060005260206000200154101561215657601160165481548110611eb657611eb66135dd565b60195460ff1680156121a55750601360165481548110612178576121786135dd565b9060005260206000200154601060165481548110612198576121986135dd565b9060005260206000200154105b1561209257601060165481548110611eb657611eb66135dd565b919050565b6121de8282604051806020016040528060008152506128c0565b5050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061221782611510565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061225b82611e2c565b6122bc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161096e565b60006122c783611510565b9050806001600160a01b0316846001600160a01b031614806123025750836001600160a01b03166122f784610906565b6001600160a01b0316145b8061231257506123128185611d11565b949350505050565b826001600160a01b031661232d82611510565b6001600160a01b0316146123955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161096e565b6001600160a01b0382166123f75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161096e565b6124028383836128f3565b61240d6000826121e2565b6001600160a01b03831660009081526003602052604081208054600192906124369084906134cc565b90915550506001600160a01b038216600090815260036020526040812080546001929061246490849061345e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061363583398151915291a4505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61250d61140b565b6125505760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161096e565b600b805460ff60b01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405161258d91906131e0565b60405180910390a1565b61259f61140b565b156125bc5760405162461bcd60e51b815260040161096e906132c3565b600b805460ff60b01b1916600160b01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125803390565b61260284848461231a565b61260e848484846129ab565b611b395760405162461bcd60e51b815260040161096e90613244565b60606104b08210156126e457601760008154811061264a5761264a6135dd565b90600052602060002001805461265f9061350f565b80601f016020809104026020016040519081016040528092919081815260200182805461268b9061350f565b80156126d85780601f106126ad576101008083540402835291602001916126d8565b820191906000526020600020905b8154815290600101906020018083116126bb57829003601f168201915b50505050509050919050565b6105aa82101561270257601760018154811061264a5761264a6135dd565b6105f582101561272057601760028154811061264a5761264a6135dd565b601760038154811061264a5761264a6135dd565b6060816127585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612782578061276c8161356c565b915061277b9050600a83613476565b915061275c565b6000816001600160401b0381111561279c5761279c6135f3565b6040519080825280601f01601f1916602001820160405280156127c6576020820181803683370190505b5090505b8415612312576127db6001836134cc565b91506127e8600a86613587565b6127f390603061345e565b60f81b818381518110612808576128086135dd565b60200101906001600160f81b031916908160001a90535061282a600a86613476565b94506127ca565b60608383836040516020016128489392919061319d565b60405160208183030381529060405290509392505050565b60006101006128706001856134cc565b61287a9190613587565b6128859060ff6134cc565b8260086128936001876134cc565b901c815481106128a5576128a56135dd565b9060005260206000200154901c600116600114905092915050565b6128ca8383612ab8565b6128d760008484846129ab565b610d515760405162461bcd60e51b815260040161096e90613244565b6001600160a01b03831661294e5761294981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612971565b816001600160a01b0316836001600160a01b031614612971576129718382612be4565b6001600160a01b03821661298857610d5181612c81565b826001600160a01b0316826001600160a01b031614610d5157610d518282612d30565b60006001600160a01b0384163b15612aad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129ef9033908990889088906004016131f4565b602060405180830381600087803b158015612a0957600080fd5b505af1925050508015612a39575060408051601f3d908101601f19168201909252612a36918101906130c4565b60015b612a93573d808015612a67576040519150601f19603f3d011682016040523d82523d6000602084013e612a6c565b606091505b508051612a8b5760405162461bcd60e51b815260040161096e90613244565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612312565b506001949350505050565b6001600160a01b038216612b0e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161096e565b612b1781611e2c565b15612b635760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161096e565b612b6f600083836128f3565b6001600160a01b0382166000908152600360205260408120805460019290612b9890849061345e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020613635833981519152908290a45050565b60006001612bf184611587565b612bfb91906134cc565b600083815260076020526040902054909150808214612c4e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612c93906001906134cc565b60008381526009602052604081205460088054939450909284908110612cbb57612cbb6135dd565b906000526020600020015490508060088381548110612cdc57612cdc6135dd565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d1457612d146135c7565b6001900381819060005260206000200160009055905550505050565b6000612d3b83611587565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612d809061350f565b90600052602060002090601f016020900481019282612da25760008555612de8565b82601f10612dbb5782800160ff19823516178555612de8565b82800160010185558215612de8579182015b82811115612de8578235825591602001919060010190612dcd565b50612df4929150612df8565b5090565b5b80821115612df45760008155600101612df9565b803580151581146121bf57600080fd5b600060208284031215612e2f57600080fd5b8135612e3a81613609565b9392505050565b600060208284031215612e5357600080fd5b8151612e3a81613609565b60008060408385031215612e7157600080fd5b8235612e7c81613609565b91506020830135612e8c81613609565b809150509250929050565b600080600060608486031215612eac57600080fd5b8335612eb781613609565b92506020840135612ec781613609565b929592945050506040919091013590565b60008060008060808587031215612eee57600080fd5b8435612ef981613609565b93506020850135612f0981613609565b92506040850135915060608501356001600160401b0380821115612f2c57600080fd5b818701915087601f830112612f4057600080fd5b813581811115612f5257612f526135f3565b604051601f8201601f19908116603f01168101908382118183101715612f7a57612f7a6135f3565b816040528281528a6020848701011115612f9357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612fca57600080fd5b8235612fd581613609565b9150612fe360208401612e0d565b90509250929050565b60008060408385031215612fff57600080fd5b823561300a81613609565b946020939093013593505050565b6000806020838503121561302b57600080fd5b82356001600160401b038082111561304257600080fd5b818501915085601f83011261305657600080fd5b81358181111561306557600080fd5b8660208260051b850101111561307a57600080fd5b60209290920196919550909350505050565b60006020828403121561309e57600080fd5b612e3a82612e0d565b6000602082840312156130b957600080fd5b8135612e3a8161361e565b6000602082840312156130d657600080fd5b8151612e3a8161361e565b6000806000604084860312156130f657600080fd5b83356001600160401b038082111561310d57600080fd5b818601915086601f83011261312157600080fd5b81358181111561313057600080fd5b87602082850101111561314257600080fd5b6020928301989097509590910135949350505050565b60006020828403121561316a57600080fd5b5035919050565b600081518084526131898160208601602086016134e3565b601f01601f19169290920160200192915050565b600084516131af8184602089016134e3565b8451908301906131c38183602089016134e3565b84519101906131d68183602088016134e3565b0195945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061322790830184613171565b9695505050505050565b602081526000612e3a6020830184613171565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601390820152724e506173733a494e56414c49445f505249434560681b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260139082015272272830b9b99d24a72b20a624a22fa7aba722a960691b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601c908201527b1394185cdcce93505617d0531313d0d0551253d397d4915050d2115160221b604082015260600190565b6020808252601190820152701491538e949bdd5b99139bdd15985b1a59607a1b604082015260600190565b600061ffff8083168185168083038211156134555761345561359b565b01949350505050565b600082198211156134715761347161359b565b500190565b600082613485576134856135b1565b500490565b60008160001904831182151516156134a4576134a461359b565b500290565b600061ffff838116908316818110156134c4576134c461359b565b039392505050565b6000828210156134de576134de61359b565b500390565b60005b838110156134fe5781810151838201526020016134e6565b83811115611b395750506000910152565b600181811c9082168061352357607f821691505b6020821081141561354457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156135625761356261359b565b6001019392505050565b60006000198214156135805761358061359b565b5060010190565b600082613596576135966135b1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461174457600080fd5b6001600160e01b03198116811461174457600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a0f20b5311d5739a5ca9ad071e26549704d4084e37c9438f96eace637588b4c64736f6c63430008060033697066733a2f2f516d594e6337534e6d35626f5944774b67717972585831617148696448584156526e6a77716e463468487170525600000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000000230200020000400000220000080200004000000000008400000400000080000100040000402002001000000000080000000020001000000000000000000400000000800182000040010020801000000000400100000000000000000000080000002000400000000000000000801080000000400000000000000000040000000000000000005000000000200000000000000000024804080000000004000000000050000000000000000400000002002000108800020004008000000000000000000000000000800000010000000000000000000020000000000000000080000000100000000400001000000080000020000005000000100000002024040404000000010008020002000480000200000000000000000000000000000000000000000005000000000000000400000000000000000200000000010808010000008000000000400000002010800000018000108000000000000000000000810000000000000008000000200000000010000000000800000000008100010000000000002001000008200008002012000008002000002004000040000000128000400000904000000200004000000000000098000004000000002208002000000000000044000800003000900000000000000100009000000000804000000000082000080000000000010200004000040000000000000000000004000020000000000080100000400000000000000000000000000000000000002000000000000000000000000001000080003000000000200000a000000000000000001000000000002260400000000021000100800200000080000284000000000000000000000000000000001000210000000000000000000000000000200000000002840000000000001204000000000000000080000400000000120000200000000000000000000020400000000000000020000000000000400000000000000004000000004020010008000000000000000004000000000000600000000000000000000000201000000000001200000000000000200000000000000000000020000000000000100000010000008000000000000000000000000000000000000000004000000000004000000000000000800000000000008000000000000000000000800000000400040000000000000000200000000000202500000004000000000000000000000000020000000000200800204000000000000200000000000000000000000000000000004000000010000000120000000000000000000002000000000000000000020000002290202000024000000000000000000000000010200000400010000000000000000001000000000000000000400000000000000000080000001000018000020000000800100000000000004010002400000000021000000020200000000000000000000000000000902000000040000200000040050000000000002000400000000000000140810000020000000000008000000840000000000000000000000100000000000008040020000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000002300089404c01c1980011a008340401a2418000004104004808040ab000005002140080400c0014400000c0600012100000000d240510014080001140040400400c4080001a1402c40140010000002c8002c0000942020041201080c80000040b202000810044000d200000044000100026000106000280040010010c202008041108e28000d0c420104000080000c4800a00000250032a0028150004000005010200100413c1002002181400810004a2200120040a04080000020440010100020410d022000000070240890204021408a801400050000004000003284018000000032014020100a00202000004044100000080081420000814000080200a200001a00001300000000c80002014d004490000001001314000005219080110200001400c0ca001000a0048800000001208a0100101c5a201802000104101100000102001020020200092000000018400080005009410000102042800614000028a89004114008840000000430090548a0001000340020500000440200100c0320110000101000902c900009800005204041400a80008020100a122000008002200800282104000e22800081c006416600101000a0050000011010418100000120000800118000009024060010102000082004000084036400004040801080004c000000100800200080000003608044061a08000004210c110094008408500149408801120a02010010002801102288001900000000102900080c80100231004404090000000a010c0c04820000428000080480000150000480040011400213824000090806c4000c000004000000180040008040002080460002100a002821201203508080000000030080048008ab21000020005101a2602001004005a00960000080100000b1000c2013901928020000c0040002890001000120000c4000100294000062024080080000010080082000014000100440140068420400008800008110101221831407601140000006004e010100000100000152104580c04401002800001000200140002280081801000002000200084001510200000000000120808018462140c0000900004f00501900064808c0110c0602282101140001600009001001843a0040100000000680016480046008401042000100304e10480000020103a000801508001834820204501800010000000088140006240008000112a0408040000000002000000028440080880008704000a00050808411980080c50020420c1092410010000b28001a409084042201004209024009000810000000482000020008020c106420681005016044002820411c8a82020880040080800004040905200000008200000008041950000108221890210412000820010010200020008000100100881c00240000222040b0000402010020004004010205449200200882080020020824a24c20034088008602080110090000814100854c02000401200008060409022100102908e282840000821051000600a0a004000001810000002004102006080200020040414000424100102210000000000000000000
Deployed Bytecode
0x60806040526004361061022e5760003560e01c806301ffc9a71461023357806306fdde0314610268578063081812fc1461028a5780630860b12c146102b7578063095ea7b3146102cc5780630c505bcd146102ec57806318160ddd1461030c57806318b200711461032b57806320bc84ce1461034b57806323b872dd146103925780632ab4d052146103b25780632e52d606146103e65780632f745c591461041a5780633bc91e281461043a57806342842e0e1461045a578063446816481461047a57806347febae81461048f5780634c81433f146104a25780634f6ccce7146104c45780635c975abb146104e45780635d48ca59146104f95780635d929f701461052657806361fd9bcc1461053b5780636304faf31461055b5780636352211e146105705780636958dad6146105905780636a4c19d9146105bd57806370a08231146105f1578063715018a6146106115780638416b69614610626578063853828b61461063b5780638da5cb5b1461065057806391ba317a1461066557806395d89b411461067a578063a0712d681461068f578063a22cb465146106a2578063a32bf597146106c2578063a3398b80146106d7578063ab15f723146106ec578063ae5a583f14610701578063b88d4fde14610717578063c5de34a014610737578063c87b56dd1461074c578063d5fb93451461076c578063daf5d3741461078c578063e985e9c5146107c0578063eb91d37e146107e0578063f2fde38b146107f5578063f82cbbe814610815575b600080fd5b34801561023f57600080fd5b5061025361024e3660046130a7565b610849565b60405190151581526020015b60405180910390f35b34801561027457600080fd5b5061027d610874565b60405161025f9190613231565b34801561029657600080fd5b506102aa6102a5366004613158565b610906565b60405161025f91906131e0565b6102ca6102c5366004613158565b610993565b005b3480156102d857600080fd5b506102ca6102e7366004612fec565b610c45565b3480156102f857600080fd5b506102ca610307366004613158565b610d56565b34801561031857600080fd5b506008545b60405190815260200161025f565b34801561033757600080fd5b506102ca610346366004613158565b610de6565b34801561035757600080fd5b5061037f7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff909116815260200161025f565b34801561039e57600080fd5b506102ca6103ad366004612e97565b610e1a565b3480156103be57600080fd5b5061031d7f000000000000000000000000000000000000000000000000000000000000060981565b3480156103f257600080fd5b506102aa7f00000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d681565b34801561042657600080fd5b5061031d610435366004612fec565b610e4b565b34801561044657600080fd5b506102ca610455366004613158565b610ee1565b34801561046657600080fd5b506102ca610475366004612e97565b610f9e565b34801561048657600080fd5b50610253610fb9565b6102ca61049d366004613018565b610ff4565b3480156104ae57600080fd5b50600b5461037f90600160a01b900461ffff1681565b3480156104d057600080fd5b5061031d6104df366004613158565b611378565b3480156104f057600080fd5b5061025361140b565b34801561050557600080fd5b5061031d610514366004613158565b6000908152600c602052604090205490565b34801561053257600080fd5b5061031d602081565b34801561054757600080fd5b506102ca61055636600461308c565b61141b565b34801561056757600080fd5b5061027d61145d565b34801561057c57600080fd5b506102aa61058b366004613158565b611510565b34801561059c57600080fd5b5061031d6105ab366004613158565b600c6020526000908152604090205481565b3480156105c957600080fd5b506102537f000000000000000000000000000000000000000000000000000000000000000181565b3480156105fd57600080fd5b5061031d61060c366004612e1d565b611587565b34801561061d57600080fd5b506102ca61160e565b34801561063257600080fd5b5061031d611649565b34801561064757600080fd5b506102ca6116d5565b34801561065c57600080fd5b506102aa611747565b34801561067157600080fd5b5061031d611756565b34801561068657600080fd5b5061027d6117bb565b6102ca61069d366004613158565b6117ca565b3480156106ae57600080fd5b506102ca6106bd366004612fb7565b6119d8565b3480156106ce57600080fd5b5060165461031d565b3480156106e357600080fd5b506102ca611a99565b3480156106f857600080fd5b506102ca611ad0565b34801561070d57600080fd5b5061031d6122b881565b34801561072357600080fd5b506102ca610732366004612ed8565b611b07565b34801561074357600080fd5b5061031d611b3f565b34801561075857600080fd5b5061027d610767366004613158565b611b83565b34801561077857600080fd5b506102ca6107873660046130e1565b611c44565b34801561079857600080fd5b5061031d7f000000000000000000000000000000000000000000000000000000000000000081565b3480156107cc57600080fd5b506102536107db366004612e5e565b611d11565b3480156107ec57600080fd5b5060155461031d565b34801561080157600080fd5b506102ca610810366004612e1d565b611d3f565b34801561082157600080fd5b5061031d7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663780e9d6360e01b148061086e575061086e82611ddc565b92915050565b6060600080546108839061350f565b80601f01602080910402602001604051908101604052809291908181526020018280546108af9061350f565b80156108fc5780601f106108d1576101008083540402835291602001916108fc565b820191906000526020600020905b8154815290600101906020018083116108df57829003601f168201915b5050505050905090565b600061091182611e2c565b6109775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6002600a5414156109b65760405162461bcd60e51b815260040161096e906133a0565b6002600a556109c361140b565b156109e05760405162461bcd60e51b815260040161096e906132c3565b61ffff7f000000000000000000000000000000000000000000000000000000000000000016158015610a3957507f0000000000000000000000000000000000000000000000000000000000000609610a3760085490565b105b80610a735750600b5461ffff7f00000000000000000000000000000000000000000000000000000000000000008116600160a01b90920416105b610a8f5760405162461bcd60e51b815260040161096e906133d7565b6040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d61690636352211e9060240160206040518083038186803b158015610af157600080fd5b505afa158015610b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b299190612e41565b6001600160a01b031614610b4f5760405162461bcd60e51b815260040161096e90613322565b6015543414610b945760405162461bcd60e51b815260206004820152601160248201527052454e3a494e56414c49445f505249434560781b604482015260640161096e565b61ffff7f00000000000000000000000000000000000000000000000000000000000000001615610bf557600b8054600160a01b900461ffff16906014610bd98361354a565b91906101000a81548161ffff021916908361ffff160217905550505b6000610c0082611e49565b90506000601654836064610c14919061348a565b610c1e919061345e565b6000818152600c602052604090208390559050610c3b33826121c4565b50506001600a5550565b6000610c5082611510565b9050806001600160a01b0316836001600160a01b03161415610cbe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161096e565b336001600160a01b0382161480610cda5750610cda8133611d11565b610d475760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161096e565b610d5183836121e2565b505050565b33610d5f611747565b6001600160a01b031614610d855760405162461bcd60e51b815260040161096e906132ed565b60048110610da55760405162461bcd60e51b815260040161096e9061340d565b600160188281548110610dba57610dba6135dd565b90600052602060002090602091828204019190066101000a81548160ff02191690831515021790555050565b33610def611747565b6001600160a01b031614610e155760405162461bcd60e51b815260040161096e906132ed565b601555565b610e243382612250565b610e405760405162461bcd60e51b815260040161096e9061334f565b610d5183838361231a565b6000610e5683611587565b8210610eb85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161096e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b33610eea611747565b6001600160a01b031614610f105760405162461bcd60e51b815260040161096e906132ed565b60048110610f305760405162461bcd60e51b815260040161096e9061340d565b600060178281548110610f4557610f456135dd565b906000526020600020018054610f5a9061350f565b905011610f995760405162461bcd60e51b815260206004820152600d60248201526c1491538e955492539bdd14d95d609a1b604482015260640161096e565b601655565b610d5183838360405180602001604052806000815250611b07565b600033610fc4611747565b6001600160a01b031614610fea5760405162461bcd60e51b815260040161096e906132ed565b5060195460ff1690565b6002600a5414156110175760405162461bcd60e51b815260040161096e906133a0565b6002600a5561102461140b565b156110415760405162461bcd60e51b815260040161096e906132c3565b8060208111156110855760405162461bcd60e51b815260206004820152600f60248201526e4e506173733a544f4f5f4c4152474560881b604482015260640161096e565b61ffff7f0000000000000000000000000000000000000000000000000000000000000000161580156110ea57507f0000000000000000000000000000000000000000000000000000000000000609816110dd60085490565b6110e7919061345e565b11155b806111305750600b5461ffff7f000000000000000000000000000000000000000000000000000000000000000081169161112d918491600160a01b90041661345e565b11155b61114c5760405162461bcd60e51b815260040161096e906133d7565b8060155461115a919061348a565b34146111785760405162461bcd60e51b815260040161096e90613296565b60005b8181101561127257337f00000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d66001600160a01b0316636352211e8686858181106111c5576111c56135dd565b905060200201356040518263ffffffff1660e01b81526004016111ea91815260200190565b60206040518083038186803b15801561120257600080fd5b505afa158015611216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123a9190612e41565b6001600160a01b0316146112605760405162461bcd60e51b815260040161096e90613322565b8061126a8161356c565b91505061117b565b5061ffff7f000000000000000000000000000000000000000000000000000000000000000016156112d75780600b60148282829054906101000a900461ffff166112bc9190613438565b92506101000a81548161ffff021916908361ffff1602179055505b60005b8181101561136d5760006113058585848181106112f9576112f96135dd565b90506020020135611e49565b9050600060165486868581811061131e5761131e6135dd565b905060200201356064611331919061348a565b61133b919061345e565b6000818152600c60205260409020839055905061135833826121c4565b505080806113659061356c565b9150506112da565b50506001600a555050565b600061138360085490565b82106113e65760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161096e565b600882815481106113f9576113f96135dd565b90600052602060002001549050919050565b600b54600160b01b900460ff1690565b33611424611747565b6001600160a01b03161461144a5760405162461bcd60e51b815260040161096e906132ed565b6019805460ff1916911515919091179055565b60606000601760165481548110611476576114766135dd565b90600052602060002001805461148b9061350f565b80601f01602080910402602001604051908101604052809291908181526020018280546114b79061350f565b80156115045780601f106114d957610100808354040283529160200191611504565b820191906000526020600020905b8154815290600101906020018083116114e757829003601f168201915b50939695505050505050565b6000818152600260205260408120546001600160a01b03168061086e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161096e565b60006001600160a01b0382166115f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161096e565b506001600160a01b031660009081526003602052604090205490565b33611617611747565b6001600160a01b03161461163d5760405162461bcd60e51b815260040161096e906132ed565b61164760006124b3565b565b60008061169a61ffff7f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000006096134cc565b600b5490915060009061ffff600160a01b909104166116b860085490565b6116c291906134cc565b90506116ce81836134cc565b9250505090565b336116de611747565b6001600160a01b0316146117045760405162461bcd60e51b815260040161096e906132ed565b61170c611747565b6001600160a01b03166108fc479081150290604051600060405180830381858888f19350505050158015611744573d6000803e3d6000fd5b50565b600b546001600160a01b031690565b6000806117a761ffff7f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000006096134cc565b90506117b5816122b861345e565b91505090565b6060600180546108839061350f565b6002600a5414156117ed5760405162461bcd60e51b815260040161096e906133a0565b6002600a557f00000000000000000000000000000000000000000000000000000000000000011561185e5760405162461bcd60e51b815260206004820152601b60248201527a1394185cdcce93d4115397d3525395125391d7d11254d050931151602a1b604482015260640161096e565b6000611868611649565b116118855760405162461bcd60e51b815260040161096e906133d7565b6122b88111801561189d5750611899611756565b8111155b8061194857506040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d61690636352211e9060240160206040518083038186803b15801561190557600080fd5b505afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190612e41565b6001600160a01b0316145b6119875760405162461bcd60e51b815260206004820152601060248201526f1394185cdcce9253959053125117d25160821b604482015260640161096e565b7f000000000000000000000000000000000000000000000000000000000000000034146119c65760405162461bcd60e51b815260040161096e90613296565b6119d033826121c4565b506001600a55565b6001600160a01b038216331415611a2d5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161096e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611aa2611747565b6001600160a01b031614611ac85760405162461bcd60e51b815260040161096e906132ed565b611647612505565b33611ad9611747565b6001600160a01b031614611aff5760405162461bcd60e51b815260040161096e906132ed565b611647612597565b611b113383612250565b611b2d5760405162461bcd60e51b815260040161096e9061334f565b611b39848484846125f7565b50505050565b600b54600090611b7a90600160a01b900461ffff167f00000000000000000000000000000000000000000000000000000000000000006134a9565b61ffff16905090565b6060611b8e82611e2c565b611bf25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161096e565b6000828152600c602052604081205490611c0b8261262a565b90506000611c3b82604051806040016040528060018152602001602f60f81b815250611c3686612734565b612831565b95945050505050565b33611c4d611747565b6001600160a01b031614611c735760405162461bcd60e51b815260040161096e906132ed565b60188181548110611c8657611c866135dd565b90600052602060002090602091828204019190069054906101000a900460ff1615611ce55760405162461bcd60e51b815260206004820152600f60248201526e1491538e949bdd5b99131bd8dad959608a1b604482015260640161096e565b828260178381548110611cfa57611cfa6135dd565b906000526020600020019190611b39929190612d74565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33611d48611747565b6001600160a01b031614611d6e5760405162461bcd60e51b815260040161096e906132ed565b6001600160a01b038116611dd35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161096e565b611744816124b3565b60006001600160e01b031982166380ac58cd60e01b1480611e0d57506001600160e01b03198216635b5e139f60e01b145b8061086e57506301ffc9a760e01b6001600160e01b031983161461086e565b6000908152600260205260409020546001600160a01b0316151590565b6000611e5682600e612860565b15611fcc57601260165481548110611e7057611e706135dd565b9060005260206000200154600f60165481548110611e9057611e906135dd565b90600052602060002001541015611ed657600f60165481548110611eb657611eb66135dd565b60009182526020822001805491611ecc8361356c565b9091555092915050565b601360165481548110611eeb57611eeb6135dd565b9060005260206000200154601060165481548110611f0b57611f0b6135dd565b90600052602060002001541015611f3157601060165481548110611eb657611eb66135dd565b601460165481548110611f4657611f466135dd565b9060005260206000200154601160165481548110611f6657611f666135dd565b90600052602060002001541015611f8c57601160165481548110611eb657611eb66135dd565b60405162461bcd60e51b815260206004820152601560248201527420b636103430bb32903132b2b71036b4b73a32b21760591b604482015260640161096e565b611fd782600d612860565b156120fb57601360165481548110611ff157611ff16135dd565b9060005260206000200154601060165481548110612011576120116135dd565b9060005260206000200154101561203757601060165481548110611eb657611eb66135dd565b60146016548154811061204c5761204c6135dd565b906000526020600020015460116016548154811061206c5761206c6135dd565b9060005260206000200154101561209257601160165481548110611eb657611eb66135dd565b60195460ff1680156120e157506012601654815481106120b4576120b46135dd565b9060005260206000200154600f601654815481106120d4576120d46135dd565b9060005260206000200154105b15611f8c57600f60165481548110611eb657611eb66135dd565b601460165481548110612110576121106135dd565b9060005260206000200154601160165481548110612130576121306135dd565b9060005260206000200154101561215657601160165481548110611eb657611eb66135dd565b60195460ff1680156121a55750601360165481548110612178576121786135dd565b9060005260206000200154601060165481548110612198576121986135dd565b9060005260206000200154105b1561209257601060165481548110611eb657611eb66135dd565b919050565b6121de8282604051806020016040528060008152506128c0565b5050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061221782611510565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061225b82611e2c565b6122bc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161096e565b60006122c783611510565b9050806001600160a01b0316846001600160a01b031614806123025750836001600160a01b03166122f784610906565b6001600160a01b0316145b8061231257506123128185611d11565b949350505050565b826001600160a01b031661232d82611510565b6001600160a01b0316146123955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161096e565b6001600160a01b0382166123f75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161096e565b6124028383836128f3565b61240d6000826121e2565b6001600160a01b03831660009081526003602052604081208054600192906124369084906134cc565b90915550506001600160a01b038216600090815260036020526040812080546001929061246490849061345e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061363583398151915291a4505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61250d61140b565b6125505760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161096e565b600b805460ff60b01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405161258d91906131e0565b60405180910390a1565b61259f61140b565b156125bc5760405162461bcd60e51b815260040161096e906132c3565b600b805460ff60b01b1916600160b01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125803390565b61260284848461231a565b61260e848484846129ab565b611b395760405162461bcd60e51b815260040161096e90613244565b60606104b08210156126e457601760008154811061264a5761264a6135dd565b90600052602060002001805461265f9061350f565b80601f016020809104026020016040519081016040528092919081815260200182805461268b9061350f565b80156126d85780601f106126ad576101008083540402835291602001916126d8565b820191906000526020600020905b8154815290600101906020018083116126bb57829003601f168201915b50505050509050919050565b6105aa82101561270257601760018154811061264a5761264a6135dd565b6105f582101561272057601760028154811061264a5761264a6135dd565b601760038154811061264a5761264a6135dd565b6060816127585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612782578061276c8161356c565b915061277b9050600a83613476565b915061275c565b6000816001600160401b0381111561279c5761279c6135f3565b6040519080825280601f01601f1916602001820160405280156127c6576020820181803683370190505b5090505b8415612312576127db6001836134cc565b91506127e8600a86613587565b6127f390603061345e565b60f81b818381518110612808576128086135dd565b60200101906001600160f81b031916908160001a90535061282a600a86613476565b94506127ca565b60608383836040516020016128489392919061319d565b60405160208183030381529060405290509392505050565b60006101006128706001856134cc565b61287a9190613587565b6128859060ff6134cc565b8260086128936001876134cc565b901c815481106128a5576128a56135dd565b9060005260206000200154901c600116600114905092915050565b6128ca8383612ab8565b6128d760008484846129ab565b610d515760405162461bcd60e51b815260040161096e90613244565b6001600160a01b03831661294e5761294981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612971565b816001600160a01b0316836001600160a01b031614612971576129718382612be4565b6001600160a01b03821661298857610d5181612c81565b826001600160a01b0316826001600160a01b031614610d5157610d518282612d30565b60006001600160a01b0384163b15612aad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129ef9033908990889088906004016131f4565b602060405180830381600087803b158015612a0957600080fd5b505af1925050508015612a39575060408051601f3d908101601f19168201909252612a36918101906130c4565b60015b612a93573d808015612a67576040519150601f19603f3d011682016040523d82523d6000602084013e612a6c565b606091505b508051612a8b5760405162461bcd60e51b815260040161096e90613244565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612312565b506001949350505050565b6001600160a01b038216612b0e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161096e565b612b1781611e2c565b15612b635760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161096e565b612b6f600083836128f3565b6001600160a01b0382166000908152600360205260408120805460019290612b9890849061345e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020613635833981519152908290a45050565b60006001612bf184611587565b612bfb91906134cc565b600083815260076020526040902054909150808214612c4e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612c93906001906134cc565b60008381526009602052604081205460088054939450909284908110612cbb57612cbb6135dd565b906000526020600020015490508060088381548110612cdc57612cdc6135dd565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d1457612d146135c7565b6001900381819060005260206000200160009055905550505050565b6000612d3b83611587565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612d809061350f565b90600052602060002090601f016020900481019282612da25760008555612de8565b82601f10612dbb5782800160ff19823516178555612de8565b82800160010185558215612de8579182015b82811115612de8578235825591602001919060010190612dcd565b50612df4929150612df8565b5090565b5b80821115612df45760008155600101612df9565b803580151581146121bf57600080fd5b600060208284031215612e2f57600080fd5b8135612e3a81613609565b9392505050565b600060208284031215612e5357600080fd5b8151612e3a81613609565b60008060408385031215612e7157600080fd5b8235612e7c81613609565b91506020830135612e8c81613609565b809150509250929050565b600080600060608486031215612eac57600080fd5b8335612eb781613609565b92506020840135612ec781613609565b929592945050506040919091013590565b60008060008060808587031215612eee57600080fd5b8435612ef981613609565b93506020850135612f0981613609565b92506040850135915060608501356001600160401b0380821115612f2c57600080fd5b818701915087601f830112612f4057600080fd5b813581811115612f5257612f526135f3565b604051601f8201601f19908116603f01168101908382118183101715612f7a57612f7a6135f3565b816040528281528a6020848701011115612f9357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612fca57600080fd5b8235612fd581613609565b9150612fe360208401612e0d565b90509250929050565b60008060408385031215612fff57600080fd5b823561300a81613609565b946020939093013593505050565b6000806020838503121561302b57600080fd5b82356001600160401b038082111561304257600080fd5b818501915085601f83011261305657600080fd5b81358181111561306557600080fd5b8660208260051b850101111561307a57600080fd5b60209290920196919550909350505050565b60006020828403121561309e57600080fd5b612e3a82612e0d565b6000602082840312156130b957600080fd5b8135612e3a8161361e565b6000602082840312156130d657600080fd5b8151612e3a8161361e565b6000806000604084860312156130f657600080fd5b83356001600160401b038082111561310d57600080fd5b818601915086601f83011261312157600080fd5b81358181111561313057600080fd5b87602082850101111561314257600080fd5b6020928301989097509590910135949350505050565b60006020828403121561316a57600080fd5b5035919050565b600081518084526131898160208601602086016134e3565b601f01601f19169290920160200192915050565b600084516131af8184602089016134e3565b8451908301906131c38183602089016134e3565b84519101906131d68183602088016134e3565b0195945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061322790830184613171565b9695505050505050565b602081526000612e3a6020830184613171565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601390820152724e506173733a494e56414c49445f505249434560681b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260139082015272272830b9b99d24a72b20a624a22fa7aba722a960691b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601c908201527b1394185cdcce93505617d0531313d0d0551253d397d4915050d2115160221b604082015260600190565b6020808252601190820152701491538e949bdd5b99139bdd15985b1a59607a1b604082015260600190565b600061ffff8083168185168083038211156134555761345561359b565b01949350505050565b600082198211156134715761347161359b565b500190565b600082613485576134856135b1565b500490565b60008160001904831182151516156134a4576134a461359b565b500290565b600061ffff838116908316818110156134c4576134c461359b565b039392505050565b6000828210156134de576134de61359b565b500390565b60005b838110156134fe5781810151838201526020016134e6565b83811115611b395750506000910152565b600181811c9082168061352357607f821691505b6020821081141561354457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156135625761356261359b565b6001019392505050565b60006000198214156135805761358061359b565b5060010190565b600082613596576135966135b1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461174457600080fd5b6001600160e01b03198116811461174457600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a0f20b5311d5739a5ca9ad071e26549704d4084e37c9438f96eace637588b4c64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000000230200020000400000220000080200004000000000008400000400000080000100040000402002001000000000080000000020001000000000000000000400000000800182000040010020801000000000400100000000000000000000080000002000400000000000000000801080000000400000000000000000040000000000000000005000000000200000000000000000024804080000000004000000000050000000000000000400000002002000108800020004008000000000000000000000000000800000010000000000000000000020000000000000000080000000100000000400001000000080000020000005000000100000002024040404000000010008020002000480000200000000000000000000000000000000000000000005000000000000000400000000000000000200000000010808010000008000000000400000002010800000018000108000000000000000000000810000000000000008000000200000000010000000000800000000008100010000000000002001000008200008002012000008002000002004000040000000128000400000904000000200004000000000000098000004000000002208002000000000000044000800003000900000000000000100009000000000804000000000082000080000000000010200004000040000000000000000000004000020000000000080100000400000000000000000000000000000000000002000000000000000000000000001000080003000000000200000a000000000000000001000000000002260400000000021000100800200000080000284000000000000000000000000000000001000210000000000000000000000000000200000000002840000000000001204000000000000000080000400000000120000200000000000000000000020400000000000000020000000000000400000000000000004000000004020010008000000000000000004000000000000600000000000000000000000201000000000001200000000000000200000000000000000000020000000000000100000010000008000000000000000000000000000000000000000004000000000004000000000000000800000000000008000000000000000000000800000000400040000000000000000200000000000202500000004000000000000000000000000020000000000200800204000000000000200000000000000000000000000000000004000000010000000120000000000000000000002000000000000000000020000002290202000024000000000000000000000000010200000400010000000000000000001000000000000000000400000000000000000080000001000018000020000000800100000000000004010002400000000021000000020200000000000000000000000000000902000000040000200000040050000000000002000400000000000000140810000020000000000008000000840000000000000000000000100000000000008040020000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000002300089404c01c1980011a008340401a2418000004104004808040ab000005002140080400c0014400000c0600012100000000d240510014080001140040400400c4080001a1402c40140010000002c8002c0000942020041201080c80000040b202000810044000d200000044000100026000106000280040010010c202008041108e28000d0c420104000080000c4800a00000250032a0028150004000005010200100413c1002002181400810004a2200120040a04080000020440010100020410d022000000070240890204021408a801400050000004000003284018000000032014020100a00202000004044100000080081420000814000080200a200001a00001300000000c80002014d004490000001001314000005219080110200001400c0ca001000a0048800000001208a0100101c5a201802000104101100000102001020020200092000000018400080005009410000102042800614000028a89004114008840000000430090548a0001000340020500000440200100c0320110000101000902c900009800005204041400a80008020100a122000008002200800282104000e22800081c006416600101000a0050000011010418100000120000800118000009024060010102000082004000084036400004040801080004c000000100800200080000003608044061a08000004210c110094008408500149408801120a02010010002801102288001900000000102900080c80100231004404090000000a010c0c04820000428000080480000150000480040011400213824000090806c4000c000004000000180040008040002080460002100a002821201203508080000000030080048008ab21000020005101a2602001004005a00960000080100000b1000c2013901928020000c0040002890001000120000c4000100294000062024080080000010080082000014000100440140068420400008800008110101221831407601140000006004e010100000100000152104580c04401002800001000200140002280081801000002000200084001510200000000000120808018462140c0000900004f00501900064808c0110c0602282101140001600009001001843a0040100000000680016480046008401042000100304e10480000020103a000801508001834820204501800010000000088140006240008000112a0408040000000002000000028440080880008704000a00050808411980080c50020420c1092410010000b28001a409084042201004209024009000810000000482000020008020c106420681005016044002820411c8a82020880040080800004040905200000008200000008041950000108221890210412000820010010200020008000100100881c00240000222040b0000402010020004004010205449200200882080020020824a24c20034088008602080110090000814100854c02000401200008060409022100102908e282840000821051000600a0a004000001810000002004102006080200020040414000424100102210000000000000000000
-----Decoded View---------------
Arg [0] : _nContractAddress (address): 0x05a46f1E545526FB803FF974C790aCeA34D1f2D6
Arg [1] : _superRareIds (uint256[]): 904639500685554431625040072501052981989377555885919406420416415792774512896,1809253123140468437240361843036732647471826774918662799835965223992429641728,226166830831149564648670037278642643136120088037003704077726903655766949888,14474452866430719024028769137627582137362204143399741100307847553663207735296,8424983333487639926915173992410351325836402770187381834925255688192,36185027886661311069964012529841808860238575713590435583419405784032722550784,52656145858798522002813235575568771129153695094633184577647017984,7237005577753511481081043263093770938885435850084641588306258687288282447872,1767062954979518858244228078598026428005242319218161142902499233551613952,8834235323891921648299611388931064793727046805984879408879021406849892352,1725436586898912781213859908162379123084072084345309738135733154086912,215679573538072373889801248991235529902505079278645380271360624820224,14475778002584965232302869174282216501158701627797493263554151210018622406656,65246128408346801507923635545577913134402671690496222293717802353847523344384,30757328917652635692486846739167513449385858056154185202646058335513073418248,414590021548807500559930976869080874791314861477934341807931520,7237007302768848911614133421731959810085737154379778446178465242954273390592,26960152356397261520808000725445690318567820400192306705236209172514,43535111676139442909912478787047114713716769592319415495335328356174246445056,431372722087008136664520019888070188919870321851854920481815071293440,31830854151398080187649281109120422723072532227286104706021970309665521664,14587089366810341025042769157215267044473494338389645352485350158350334042113,14134776518227074636667876583619974971706572246692996591123904932872196096,1895621250034029360745212202972430646515572321889715190393294819328,1766847117434530163861890849701932357662700056323166658396232197192286208,28948022309329048859031297119865317388791533843894097541227523616214119089152,1809251394333065553496361631842480348862277381770245089648475907689864495104,3533694129556969722593622763621857581288004130012103982683383262923980800,1725436586798074574651182887262585246411766232698572153221601684357120,904625700806440480426043412875202163073454174621427679637316438661281087488,1606938044258990275542047162932892837138068839686450592088065,57896058422150804148809740304239550385921712664328891736252867266977959247872,822808294845318178587504416565340481764412358688,113078212145816597124029215494980379408493729716858572368461800970586685440,26959946667150642793669088513878771807578564380595185731442151784448
Arg [2] : _rareIds (uint256[]): 15156363048858255891133220820273831251865235869759703100618068650176610337,28962184713053143741075033746579515602801598119551967308584371608646273991680,88667453142780064002012550946696465547179619330137234674286949830939658698930,904681342944032333449917087150759551847528275267101196407424584846934048833,7488173931758766780974821974015145898394400087199602404869638706462466265104,14475779760451158910107884968868574662631600299460257318048966100245015429152,29423318835965421874417633545275987776440036834496294090262347316076002410496,88350983798444126475159265258686081300829047240073538576931011966256939008,11760134575403912778472570744578934854210163002047349169658034444015379808256,9047587552879721342819577612416691735875146051145115828860242843361672691713,904736988037822167482049017777472076848327201775707680713373165206475122856,65140236640270755584042803895904017600533693041079534252560569042257387397137,110859360005096671906298794423850579035606688471815351107810181836316680,70901748066180835716455172122359043408445120427159164168492669142539771904,3618623569227431567054034740069818956524025229027267666796123313691701562368,110643634286826153310354731977107776553405720335066161497816624957311296,61516438755633752164670144933312881513469128168007856023855699882514975835140,4070815638302951146877102783989479072070569300807096908576311544407982834240,15957019954688236674510748116666646386455550955605215121300144622351228946,1499173185337632517776888500944641335067884489295244942598879160608592846848,226266852305995495980456697134833625545900012401212962792663301057130008578,66942304232635357254555408664309557468650907545277454349994304071713411301376,58376737937027634991535084043595377255961298427706566446161581574048738181376,18092514374702968254477632549693854426046287819864214732782955738086179340576,58122368575560262810352542302454580296026000275341868244045151307977170444288,4070926106075975529988692247455267481836272843614143017720614867042954641408,906417563114508218622301372937131455525516495835041783101456465318092210450,72484019134437414627415572895070037442543821725854492185074566975113949905093,56994946596318515968652624499048974596054776100514444251487091755463999488,32623064257991275894445145478057425964800737965891413370162809222084767547392,1816381036479026878220336416281745208037822368457063397431243718237752397856,56542556952665322333280537295351327706664604759565551092463940337987306642,56597825679299120759883823678726089712959915080422544061718142995630129664,1811239098125914310346810460515927357037753023248679592520777893449924870529,863146175993600364694411554914303460210585847536410525614410251108352
-----Encoded View---------------
75 Constructor Arguments found :
Arg [0] : 00000000000000000000000005a46f1e545526fb803ff974c790acea34d1f2d6
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000004e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [4] : 0200020000400000220000080200004000000000008400000400000080000100
Arg [5] : 0400004020020010000000000800000000200010000000000000000004000000
Arg [6] : 0080018200004001002080100000000040010000000000000000000008000000
Arg [7] : 2000400000000000000000801080000000400000000000000000040000000000
Arg [8] : 0000000050000000002000000000000000000248040800000000040000000000
Arg [9] : 5000000000000000040000000200200010880002000400800000000000000000
Arg [10] : 0000000000800000010000000000000000000020000000000000000080000000
Arg [11] : 1000000004000010000000800000200000050000001000000020240404040000
Arg [12] : 0001000802000200048000020000000000000000000000000000000000000000
Arg [13] : 0005000000000000000400000000000000000200000000010808010000008000
Arg [14] : 0000004000000020108000000180001080000000000000000000008100000000
Arg [15] : 0000000800000020000000001000000000080000000000810001000000000000
Arg [16] : 2001000008200008002012000008002000002004000040000000128000400000
Arg [17] : 9040000002000040000000000000980000040000000022080020000000000000
Arg [18] : 4400080000300090000000000000010000900000000080400000000008200008
Arg [19] : 0000000000010200004000040000000000000000000004000020000000000080
Arg [20] : 1000004000000000000000000000000000000000000020000000000000000000
Arg [21] : 00000001000080003000000000200000a0000000000000000010000000000022
Arg [22] : 6040000000002100010080020000008000028400000000000000000000000000
Arg [23] : 0000001000210000000000000000000000000000200000000002840000000000
Arg [24] : 0012040000000000000000800004000000001200002000000000000000000000
Arg [25] : 2040000000000000002000000000000040000000000000000400000000402001
Arg [26] : 0008000000000000000004000000000000600000000000000000000000201000
Arg [27] : 0000000012000000000000002000000000000000000000200000000000001000
Arg [28] : 0001000000800000000000000000000000000000000000000000400000000000
Arg [29] : 4000000000000000800000000000008000000000000000000000800000000400
Arg [30] : 0400000000000000002000000000002025000000040000000000000000000000
Arg [31] : 0002000000000020080020400000000000020000000000000000000000000000
Arg [32] : 0000004000000010000000120000000000000000000002000000000000000000
Arg [33] : 0200000022902020000240000000000000000000000000102000004000100000
Arg [34] : 0000000000000100000000000000000040000000000000000008000000100001
Arg [35] : 8000020000000800100000000000004010002400000000021000000020200000
Arg [36] : 0000000000000000000000009020000000400002000000400500000000000020
Arg [37] : 0040000000000000014081000002000000000000800000084000000000000000
Arg [38] : 0000000100000000000008040020000000000000800000000000000000000000
Arg [39] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [40] : 00089404c01c1980011a008340401a2418000004104004808040ab0000050021
Arg [41] : 40080400c0014400000c0600012100000000d240510014080001140040400400
Arg [42] : c4080001a1402c40140010000002c8002c0000942020041201080c80000040b2
Arg [43] : 02000810044000d200000044000100026000106000280040010010c202008041
Arg [44] : 108e28000d0c420104000080000c4800a00000250032a0028150004000005010
Arg [45] : 200100413c1002002181400810004a2200120040a04080000020440010100020
Arg [46] : 410d022000000070240890204021408a80140005000000400000328401800000
Arg [47] : 0032014020100a00202000004044100000080081420000814000080200a20000
Arg [48] : 1a00001300000000c80002014d00449000000100131400000521908011020000
Arg [49] : 1400c0ca001000a0048800000001208a0100101c5a2018020001041011000001
Arg [50] : 02001020020200092000000018400080005009410000102042800614000028a8
Arg [51] : 9004114008840000000430090548a0001000340020500000440200100c032011
Arg [52] : 0000101000902c900009800005204041400a80008020100a1220000080022008
Arg [53] : 00282104000e22800081c006416600101000a005000001101041810000012000
Arg [54] : 0800118000009024060010102000082004000084036400004040801080004c00
Arg [55] : 0000100800200080000003608044061a08000004210c11009400840850014940
Arg [56] : 8801120a02010010002801102288001900000000102900080c80100231004404
Arg [57] : 090000000a010c0c048200004280000804800001500004800400114002138240
Arg [58] : 00090806c4000c000004000000180040008040002080460002100a0028212012
Arg [59] : 03508080000000030080048008ab21000020005101a2602001004005a0096000
Arg [60] : 0080100000b1000c2013901928020000c0040002890001000120000c40001002
Arg [61] : 9400006202408008000001008008200001400010044014006842040000880000
Arg [62] : 8110101221831407601140000006004e010100000100000152104580c0440100
Arg [63] : 2800001000200140002280081801000002000200084001510200000000000120
Arg [64] : 808018462140c0000900004f00501900064808c0110c06022821011400016000
Arg [65] : 09001001843a0040100000000680016480046008401042000100304e10480000
Arg [66] : 020103a000801508001834820204501800010000000088140006240008000112
Arg [67] : a0408040000000002000000028440080880008704000a00050808411980080c5
Arg [68] : 0020420c1092410010000b28001a409084042201004209024009000810000000
Arg [69] : 482000020008020c106420681005016044002820411c8a820208800400808000
Arg [70] : 0404090520000000820000000804195000010822189021041200082001001020
Arg [71] : 0020008000100100881c00240000222040b00004020100200040040102054492
Arg [72] : 00200882080020020824a24c20034088008602080110090000814100854c0200
Arg [73] : 0401200008060409022100102908e282840000821051000600a0a00400000181
Arg [74] : 0000002004102006080200020040414000424100102210000000000000000000
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.