ERC-721
Overview
Max Total Supply
0 PUSSY
Holders
37
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PUSSYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PussyDaoOG
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ * * * /$$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ * * | $$__ $$ | $$__ $$ /$$__ $$ /$$__ $$ * * | $$ \ $$ /$$ /$$ /$$$$$$$ /$$$$$$$ /$$ /$$| $$ \ $$| $$ \ $$| $$ \ $$ * * | $$$$$$$/| $$ | $$ /$$_____//$$_____/| $$ | $$| $$ | $$| $$$$$$$$| $$ | $$ * * | $$____/ | $$ | $$| $$$$$$| $$$$$$ | $$ | $$| $$ | $$| $$__ $$| $$ | $$ * * | $$ | $$ | $$ \____ $$\____ $$| $$ | $$| $$ | $$| $$ | $$| $$ | $$ * * | $$ | $$$$$$/ /$$$$$$$//$$$$$$$/| $$$$$$$| $$$$$$$/| $$ | $$| $$$$$$/ * * |__/ \______/ |_______/|_______/ \____ $$|_______/ |__/ |__/ \______/ * * /$$ | $$ * * | $$$$$$/ * * \______/ * * /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$$$ * * /$$__ $$ /$$__ $$ | $$$ | $$| $$_____/|__ $$__/ * * | $$ \ $$| $$ \__/ | $$$$| $$| $$ | $$ /$$$$$$$ * * | $$ | $$| $$ /$$$$ | $$ $$ $$| $$$$$ | $$ /$$_____/ * * | $$ | $$| $$|_ $$ | $$ $$$$| $$__/ | $$| $$$$$$ * * | $$ | $$| $$ \ $$ | $$\ $$$| $$ | $$ \____ $$ * * | $$$$$$/| $$$$$$/ | $$ \ $$| $$ | $$ /$$$$$$$/ * * \______/ \______/ |__/ \__/|__/ |__/|_______/ * * * \ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract PussyDaoOG is ERC721Pausable, ERC721Royalty, Ownable, ReentrancyGuard { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; event Mint( address indexed buyer, uint256 price, uint256 indexed tokenId, bool indexed reservedMint, bool adminMint ); event RedeemNft(address indexed redeemer, uint256 indexed tokenId); enum MintPhase { Closed, Presale, Public } // public variables uint256 public MAX_TOTAL_SUPPLY = 900; uint256 public MAX_PRESALE_SUPPLY = 600; uint96 public ROYALTY_BPS = 500; uint256 public nftPrice; MintPhase public mintPhase; bool public hasRevealed; bool public canRedeemNfts; mapping(uint256 => bool) public redeemedTokens; address public splitAddress; // content URI variables // base URI is public to prove the use of IPFS // CIDs kept private to prevent metadata leaks // see string public baseURI; string private preRevealCID; string private unredeemedCID; string private redeemedCID; // addresses who already minted an NFT from the old contract // and the tokenId they've minted. reserved addresses can // mint their token IDs for free, see isCorrectPayment() mapping(address => uint256) private reservedAddressTokenIds; constructor( string memory _name, string memory _symbol, MintPhase _mintPhase, uint256 _nftPrice, string memory _baseURI, string memory _preRevealCID, address[] memory _reservedAddresses, address _ownerAddress ) ERC721(_name, _symbol) { mintPhase = _mintPhase; nftPrice = _nftPrice; baseURI = _baseURI; preRevealCID = _preRevealCID; hasRevealed = false; canRedeemNfts = false; splitAddress = _ownerAddress; // first tokenIds previously minted on old contract // are reserved for free mints, see isCorrectPayment() for (uint256 i = 0; i < _reservedAddresses.length; i++) { reservedAddressTokenIds[_reservedAddresses[i]] = i + 1; _tokenIdCounter.increment(); } _setDefaultRoyalty(splitAddress, ROYALTY_BPS); // transfer contract ownership away from deployer address _transferOwnership(_ownerAddress); } // ========== MODIFIERS + UTILS =========== modifier presaleMintOpen() { require(mintPhase == MintPhase.Presale, "Pre-sale is not open"); _; } modifier publicSaleOpen() { require(mintPhase == MintPhase.Public, "Public sale is not open"); _; } modifier isCorrectPayment(uint256 _amountToMint) { // if address is not on reserved list, enforce NFT price if (reservedAddressTokenIds[msg.sender] == 0) { require( nftPrice * _amountToMint == msg.value, "Incorrect ETH value sent" ); } else { // if address on reserved list has already minted their // reserved token ID, enforce NFT price as normal if (_exists(reservedAddressTokenIds[msg.sender])) { require( nftPrice * _amountToMint == msg.value, "Incorrect ETH value sent" ); } else { // reserved addresses should mint their one reserved token ID // BEFORE minting any other NFTs, for simplicity require( _amountToMint == 1, "Please mint your 1 free NFT before purchasing additional NFTs" ); // if reserved address has not minted their reserved token ID, // but ETH is sent, refund and allow minting, do not revert if (msg.value > 0) { payable(msg.sender).transfer(msg.value); } } } _; } modifier canMintNftAmount(uint256 _amountToMint) { if (mintPhase == MintPhase.Presale) { require( _tokenIdCounter.current() + _amountToMint <= MAX_PRESALE_SUPPLY, "Exceeds max pre-mint supply" ); } else if (mintPhase == MintPhase.Public) { require( _tokenIdCounter.current() + _amountToMint <= MAX_TOTAL_SUPPLY, "Exceeds max total supply" ); } else { revert("Minting is not open"); } _; } modifier nftRedemptionsAllowed() { require(canRedeemNfts, "Cannot redeem NFTs yet"); _; } function getMetadataCID( uint256 _tokenId ) private view returns (string memory) { if (!hasRevealed) { return preRevealCID; } else if (nftHasBeenRedeemed(_tokenId)) { return redeemedCID; } else { return unredeemedCID; } } function mintNft( address _address, uint256 _tokenId, bool _reservedMint, bool _adminMint ) private { _safeMint(_address, _tokenId); emit Mint(_address, nftPrice, _tokenId, _reservedMint, _adminMint); } function mintNftAmount(uint256 _amountToMint) private { if ( reservedAddressTokenIds[msg.sender] > 0 && !_exists(reservedAddressTokenIds[msg.sender]) ) { // if address is on reserved list, and reserved token ID // has not been minted yet, mint reserved token ID mintNft( msg.sender, reservedAddressTokenIds[msg.sender], true, false ); } else { // otherwise, mint normally for (uint256 i = 0; i < _amountToMint; i++) { mintNft( msg.sender, _tokenIdCounter.current() + 1, false, false ); _tokenIdCounter.increment(); } } } // ============ PUBLIC FUNCTIONS ============ /** * @notice Fetch metadata for a given token ID * @param _tokenId token ID */ function tokenURI( uint256 _tokenId ) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); string memory metadataCID = getMetadataCID(_tokenId); return string( abi.encodePacked( baseURI, metadataCID, "/", _tokenId.toString(), ".json" ) ); } /** * @notice Mint NFTs during pre-sale * @param _amountToMint number of NFTs to mint */ function mintPresale( uint256 _amountToMint ) public payable presaleMintOpen canMintNftAmount(_amountToMint) isCorrectPayment(_amountToMint) whenNotPaused nonReentrant { mintNftAmount(_amountToMint); } /** * @notice Mint NFTs during public sale * @param _amountToMint number of NFTs to mint */ function mintPublic( uint256 _amountToMint ) public payable publicSaleOpen canMintNftAmount(_amountToMint) isCorrectPayment(_amountToMint) whenNotPaused nonReentrant { mintNftAmount(_amountToMint); } /** * @notice redeem NFTs for physical product * @dev should ONLY be called from minting site */ function redeemNfts( uint256[] memory _tokenIdsToRedeem ) external nftRedemptionsAllowed whenNotPaused nonReentrant { for (uint256 i = 0; i < _tokenIdsToRedeem.length; i++) { uint256 tokenId = _tokenIdsToRedeem[i]; // gas saving if ( msg.sender == ownerOf(tokenId) && !nftHasBeenRedeemed(tokenId) ) { // only redeem if sender owns NFT and NFT has not been redeemed redeemedTokens[tokenId] = true; emit RedeemNft(msg.sender, tokenId); } } } function nftHasBeenRedeemed(uint256 _tokenId) public view returns (bool) { return redeemedTokens[_tokenId]; } function totalCurrentSupply() external view returns (uint256) { return _tokenIdCounter.current(); } // =========== ADMIN / OWNER ONLY FUNCTIONS ============= /** * @notice step 1: open presale minting * @dev Contract Owner only */ function setPresaleMintLive() external onlyOwner { mintPhase = MintPhase.Presale; } /** * @notice step 2: close presale minting, open public minting * @dev Contract Owner only */ function setPublicMintLive() external onlyOwner { mintPhase = MintPhase.Public; } /** * @notice step 3: close all ability to mint * @dev Contract Owner only */ function closeMinting() external onlyOwner { delete mintPhase; } /** * @notice step 4: reveal the NFTs metadata * @dev Contract Owner only */ function revealNfts() external onlyOwner { hasRevealed = true; } /** * @notice step 5: allow NFT redemption * @dev Contract Owner only */ function allowNftRedemption() external onlyOwner { canRedeemNfts = true; } /** * @notice Set the mint phases manually, in case of emergency * @dev Contract Owner only * @param _mintPhase mint phase based on MintPhase enum * @param _hasRevealed sets whether NFT metadata is revealed * @param _canRedeemNfts sets whether NFTs can be redeemed */ function setManualStages( uint256 _mintPhase, bool _hasRevealed, bool _canRedeemNfts ) external onlyOwner { mintPhase = MintPhase(_mintPhase); hasRevealed = _hasRevealed; canRedeemNfts = _canRedeemNfts; } /** * @notice Set metadata base URI * @dev Contract Owner only * @param _baseURI CID for unredeemed NFT metadata */ function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } /** * @notice Set the IPFS CID of the NFT metadata for pre-reveal phase * @dev Contract Owner only * @param _preRevealCID IPFS CID string */ function setPreRevealCID(string memory _preRevealCID) external onlyOwner { preRevealCID = _preRevealCID; } /** * @notice Set the IPFS CID of unredeemed NFT metadata for post-reveal phase * @dev Contract Owner only * @param _unredeemedCID IPFS CID string */ function setUnredeemedCID(string memory _unredeemedCID) external onlyOwner { unredeemedCID = _unredeemedCID; } /** * @notice Set the IPFS CID of redeemed NFT metadata for post-reveal phase * @dev Contract Owner only * @param _redeemedCID IPFS CID string */ function setRedeemedCID(string memory _redeemedCID) external onlyOwner { redeemedCID = _redeemedCID; } /** * @notice Allow admin to mint and reserve NFTs for free for OTC purchases, giveaways, etc. * @dev Contract Owner only * @param _to recipient address of the NFT * @param _amountToMint number of NFTs to mint */ function adminMint(address _to, uint256 _amountToMint) external onlyOwner { for (uint256 i = 0; i < _amountToMint; i++) { uint256 newTokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); mintNft(_to, newTokenId, false, true); } } /** * @notice to adjust price in case of sudden ETH price fluctuations * @dev Contract Owner only * @param _newPrice new price in wei */ function changeNftPrice(uint256 _newPrice) external onlyOwner { nftPrice = _newPrice; } /** * @notice Set the 0xSplit address * @dev IMPORTANT: If you use this function you need to * call setDefaultRoyalty to update the royalty recipient. * @param _newSplitAddress new 0xSplit address */ function setSplitAddress(address _newSplitAddress) public onlyOwner { splitAddress = _newSplitAddress; } /** * @notice Set the default royalty in basis points * @dev Value in basis points e.g. 5% => 500 * @param recipient new royalty recipient * @param fraction new royalty fraction in basis points */ function setDefaultRoyalty( address recipient, uint96 fraction ) public onlyOwner { ROYALTY_BPS = fraction; _setDefaultRoyalty(recipient, fraction); } /** * @notice Set the royalty of a specific token * @dev Value in basis points e.g. 5% => 500 * @param tokenId tokenID of interest * @param recipient new royalty recipient * @param fraction new royalty fraction in basis points */ function setTokenRoyalty( uint256 tokenId, address recipient, uint96 fraction ) public onlyOwner { _setTokenRoyalty(tokenId, recipient, fraction); } /** * @notice Removes enforcement of any royalty for all tokens */ function deleteDefaultRoyalty() public onlyOwner { ROYALTY_BPS = 0; _deleteDefaultRoyalty(); } /** * @notice NFT metadata IPFS CIDs for admin reference only * @dev Contract Owner only to prevent image/attribute leaks */ function getCIDs() external view onlyOwner returns (string memory, string memory, string memory) { return (preRevealCID, unredeemedCID, redeemedCID); } /** * @notice pauses contract to prevent all contract interactions * @dev Contract Owner only */ function pauseContract() external onlyOwner { _pause(); } /** * @notice enables contract to allow all contract interactions * @dev Contract Owner only */ function unpauseContract() external onlyOwner { _unpause(); } /** * @notice withdraw entire Ether balance of contract to owner * @dev Contract Owner only */ function withdrawEther() external onlyOwner { (bool res, ) = payable(msg.sender).call{value: address(this).balance}( "" ); if (res == false) { revert("Withdraw failed"); } } /** * @notice withdraw ERC-20 tokens in case they are accidentally sent to contract * @dev Contract Owner only * @param _token address of ERC-20 token contract to withdraw */ function withdrawTokens(IERC20 _token) external onlyOwner { uint256 balance = _token.balanceOf(address(this)); _token.transfer(msg.sender, balance); } // =========== OVERRIDES ============= function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal override(ERC721, ERC721Pausable) whenNotPaused { super._beforeTokenTransfer(from, to, tokenId, batchSize); } function _burn(uint256 tokenId) internal override(ERC721, ERC721Royalty) { super._burn(tokenId); } function supportsInterface( bytes4 interfaceId ) public view override(ERC721, ERC721Royalty) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) 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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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 // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": true, "runs": 2000, "details": { "yul": true, "yulDetails": { "stackAllocation": true, "optimizerSteps": "dhfoDgvulfnTUtnIf" } } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"enum PussyDaoOG.MintPhase","name":"_mintPhase","type":"uint8"},{"internalType":"uint256","name":"_nftPrice","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_preRevealCID","type":"string"},{"internalType":"address[]","name":"_reservedAddresses","type":"address[]"},{"internalType":"address","name":"_ownerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"reservedMint","type":"bool"},{"indexed":false,"internalType":"bool","name":"adminMint","type":"bool"}],"name":"Mint","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":"redeemer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RedeemNft","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_PRESALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_BPS","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowNftRedemption","outputs":[],"stateMutability":"nonpayable","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canRedeemNfts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"changeNftPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCIDs","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"enum PussyDaoOG.MintPhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"nftHasBeenRedeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPrice","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":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIdsToRedeem","type":"uint256[]"}],"name":"redeemNfts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealNfts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint96","name":"fraction","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPhase","type":"uint256"},{"internalType":"bool","name":"_hasRevealed","type":"bool"},{"internalType":"bool","name":"_canRedeemNfts","type":"bool"}],"name":"setManualStages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_preRevealCID","type":"string"}],"name":"setPreRevealCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPresaleMintLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicMintLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_redeemedCID","type":"string"}],"name":"setRedeemedCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSplitAddress","type":"address"}],"name":"setSplitAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint96","name":"fraction","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unredeemedCID","type":"string"}],"name":"setUnredeemedCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCurrentSupply","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":"unpauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610384600b55610258600c55600d80546001600160601b0319166101f41790553480156200003157600080fd5b506040516200443238038062004432833981016040819052620000549162000511565b8787600262000064838262000766565b50600362000073828262000766565b50506008805460ff19169055506200008b33620001cc565b60016009819055600f8054889260ff1990911690836002811115620000b457620000b462000832565b0217905550600e8590556012620000cc858262000766565b506013620000db848262000766565b50600f805462ffff0019169055601180546001600160a01b0319166001600160a01b03831617905560005b82518110156200018e576200011d8160016200085e565b6016600085848151811062000136576200013662000874565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555062000179600a6200022660201b620017be1760201c565b8062000185816200088a565b91505062000106565b50601154600d54620001b3916001600160a01b0316906001600160601b03166200022f565b620001be81620001cc565b505050505050505062000931565b600880546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b6127106001600160601b0382161115620002665760405162461bcd60e51b81526004016200025d90620008a6565b60405180910390fd5b6001600160a01b0382166200028f5760405162461bcd60e51b81526004016200025d90620008f5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681016001600160401b0381118282101715620003065762000306620002c8565b6040525050565b60006200031960405190565b9050620003278282620002de565b919050565b60006001600160401b03821115620003485762000348620002c8565b601f19601f83011660200192915050565b60005b83811015620003765781810151838201526020016200035c565b50506000910152565b60006200039662000390846200032c565b6200030d565b905082815260208101848484011115620003b357620003b3600080fd5b620003c084828562000359565b509392505050565b600082601f830112620003de57620003de600080fd5b8151620003f08482602086016200037f565b949350505050565b600381106200040657600080fd5b50565b80516200041681620003f8565b92915050565b805b81146200040657600080fd5b805162000416816200041c565b60006001600160401b03821115620004535762000453620002c8565b5060209081020190565b60006001600160a01b03821662000416565b6200041e816200045d565b805162000416816200046f565b600062000498620003908462000437565b83815290506020808201908402830185811115620004b957620004b9600080fd5b835b81811015620004df57620004d087826200047a565b835260209283019201620004bb565b5050509392505050565b600082601f830112620004ff57620004ff600080fd5b8151620003f084826020860162000487565b600080600080600080600080610100898b031215620005335762000533600080fd5b88516001600160401b038111156200054e576200054e600080fd5b6200055c8b828c01620003c8565b60208b015190995090506001600160401b038111156200057f576200057f600080fd5b6200058d8b828c01620003c8565b9750506040620005a08b828c0162000409565b9650506060620005b38b828c016200042a565b60808b015190965090506001600160401b03811115620005d657620005d6600080fd5b620005e48b828c01620003c8565b60a08b015190955090506001600160401b03811115620006075762000607600080fd5b620006158b828c01620003c8565b60c08b015190945090506001600160401b03811115620006385762000638600080fd5b620006468b828c01620004e9565b92505060e0620006598b828c016200047a565b9150509295985092959890939650565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200069457607f821691505b602082108103620006a957620006a962000669565b50919050565b600062000416620006bd8381565b90565b620006cb83620006af565b81546008840282811b60001990911b908116901990911617825550505050565b6000620006fa818484620006c0565b505050565b818110156200071e5762000715600082620006eb565b600101620006ff565b5050565b601f821115620006fa576000818152602090206020601f850104810160208510156200074b5750805b6200075f6020601f860104830182620006ff565b5050505050565b81516001600160401b03811115620007825762000782620002c8565b6200078e82546200067f565b6200079b82828562000722565b506020601f821160018114620007d35760008315620007ba5750848201515b600019600885021c19811660028502178555506200075f565b600084815260208120601f198516915b82811015620008055787850151825560209485019460019092019101620007e3565b5084821015620008235783870151600019601f87166008021c191681555b50505050600202600101905550565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111562000416576200041662000848565b634e487b7160e01b600052603260045260246000fd5b6000600182016200089f576200089f62000848565b5060010190565b602080825281016200041681602a81527f455243323938313a20726f79616c7479206665652077696c6c206578636565646020820152692073616c65507269636560b01b604082015260600190565b602080825281016200041681601981527f455243323938313a20696e76616c696420726563656976657200000000000000602082015260400190565b613af180620009416000396000f3fe6080604052600436106103555760003560e01c80636b8dc355116101bb578063aa1b103f116100f7578063d30801d811610095578063efd0cbf91161006f578063efd0cbf91461098b578063f2fde38b1461099e578063f759867a146109be578063f7602d0d146109d157600080fd5b8063d30801d814610902578063e58306f914610922578063e985e9c51461094257600080fd5b8063b88d4fde116100d1578063b88d4fde14610872578063c4bbf05f14610892578063c5463127146108c2578063c87b56dd146108e257600080fd5b8063aa1b103f14610828578063ac3b9cde1461083d578063b33712c51461085d57600080fd5b8063846bb70c116101645780638da5cb5b1161013e5780638da5cb5b146107b057806395d89b41146107d3578063a1142eee146107e8578063a22cb4651461080857600080fd5b8063846bb70c1461075c578063856e05041461077b57806387491c601461079b57600080fd5b8063715018a611610195578063715018a61461071d5780637362377b1461073257806383cd11391461074757600080fd5b80636b8dc355146106d25780636c0360eb146106e857806370a08231146106fd57600080fd5b80632a55205a116102955780634f4602da116102335780635651c1691161020d5780635651c169146106655780635944c7531461067a5780635c975abb1461069a5780636352211e146106b257600080fd5b80634f4602da146105f557806351090e6a1461062557806355f804b31461064557600080fd5b806342842e0e1161026f57806342842e0e1461056e578063439766ce1461058e57806349c657db146105a357806349df728c146105d557600080fd5b80632a55205a1461050a57806333039d3d146105385780634108e3dc1461054e57600080fd5b8063095ea7b31161030257806317881cbf116102dc57806317881cbf1461048e5780631908beb1146104b557806320b50c06146104ca57806323b872dd146104ea57600080fd5b8063095ea7b31461042b5780630d39fc811461044b5780630e0dca611461046e57600080fd5b8063069f9ef711610333578063069f9ef7146103c757806306fdde03146103dc578063081812fc146103fe57600080fd5b806301b8083b1461035a57806301ffc9a71461037157806304634d8d146103a7575b600080fd5b34801561036657600080fd5b5061036f6109f5565b005b34801561037d57600080fd5b5061039161038c36600461263c565b610a14565b60405161039e9190612667565b60405180910390f35b3480156103b357600080fd5b5061036f6103c23660046126b9565b610a25565b3480156103d357600080fd5b5061036f610a60565b3480156103e857600080fd5b506103f1610a7b565b60405161039e919061274c565b34801561040a57600080fd5b5061041e610419366004612775565b610b0d565b60405161039e919061279f565b34801561043757600080fd5b5061036f6104463660046127ad565b610b34565b34801561045757600080fd5b50610461600e5481565b60405161039e91906127e6565b34801561047a57600080fd5b5061036f6104893660046128f4565b610be0565b34801561049a57600080fd5b50600f546104a89060ff1681565b60405161039e9190612973565b3480156104c157600080fd5b50610461610ce4565b3480156104d657600080fd5b50600f546103919062010000900460ff1681565b3480156104f657600080fd5b5061036f610505366004612981565b610cf4565b34801561051657600080fd5b5061052a6105253660046129d1565b610d25565b60405161039e9291906129f3565b34801561054457600080fd5b50610461600b5481565b34801561055a57600080fd5b5060115461041e906001600160a01b031681565b34801561057a57600080fd5b5061036f610589366004612981565b610de0565b34801561059a57600080fd5b5061036f610dfb565b3480156105af57600080fd5b50600d546105c8906bffffffffffffffffffffffff1681565b60405161039e9190612a22565b3480156105e157600080fd5b5061036f6105f0366004612a4f565b610e0d565b34801561060157600080fd5b50610391610610366004612775565b60106020526000908152604090205460ff1681565b34801561063157600080fd5b5061036f610640366004612aff565b610f2b565b34801561065157600080fd5b5061036f610660366004612aff565b610f3f565b34801561067157600080fd5b5061036f610f53565b34801561068657600080fd5b5061036f610695366004612b3a565b610f89565b3480156106a657600080fd5b5060085460ff16610391565b3480156106be57600080fd5b5061041e6106cd366004612775565b610f9c565b3480156106de57600080fd5b50610461600c5481565b3480156106f457600080fd5b506103f1610fd1565b34801561070957600080fd5b50610461610718366004612b80565b61105f565b34801561072957600080fd5b5061036f6110a3565b34801561073e57600080fd5b5061036f6110b5565b34801561075357600080fd5b5061036f61112b565b34801561076857600080fd5b50600f5461039190610100900460ff1681565b34801561078757600080fd5b5061036f610796366004612b80565b611146565b3480156107a757600080fd5b5061036f61117d565b3480156107bc57600080fd5b5060085461010090046001600160a01b031661041e565b3480156107df57600080fd5b506103f1611191565b3480156107f457600080fd5b5061036f610803366004612bb4565b6111a0565b34801561081457600080fd5b5061036f610823366004612bfa565b611226565b34801561083457600080fd5b5061036f611231565b34801561084957600080fd5b5061036f610858366004612aff565b611257565b34801561086957600080fd5b5061036f61126b565b34801561087e57600080fd5b5061036f61088d366004612c2d565b61127b565b34801561089e57600080fd5b506103916108ad366004612775565b60009081526010602052604090205460ff1690565b3480156108ce57600080fd5b5061036f6108dd366004612775565b6112b3565b3480156108ee57600080fd5b506103f16108fd366004612775565b6112c0565b34801561090e57600080fd5b5061036f61091d366004612aff565b611339565b34801561092e57600080fd5b5061036f61093d3660046127ad565b61134d565b34801561094e57600080fd5b5061039161095d366004612cac565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61036f610999366004612775565b61139c565b3480156109aa57600080fd5b5061036f6109b9366004612b80565b61158f565b61036f6109cc366004612775565b6115c6565b3480156109dd57600080fd5b506109e66115fc565b60405161039e93929190612cdf565b6109fd6117c7565b600f80546002919060ff19166001835b0217905550565b6000610a1f826117f7565b92915050565b610a2d6117c7565b600d80546bffffffffffffffffffffffff19166bffffffffffffffffffffffff8316179055610a5c8282611802565b5050565b610a686117c7565b600f805462ff0000191662010000179055565b606060028054610a8a90612d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab690612d37565b8015610b035780601f10610ad857610100808354040283529160200191610b03565b820191906000526020600020905b815481529060010190602001808311610ae657829003601f168201915b5050505050905090565b6000610b1882611896565b506000908152600660205260409020546001600160a01b031690565b6000610b3f82610f9c565b9050806001600160a01b0316836001600160a01b031603610b7b5760405162461bcd60e51b8152600401610b7290612dbd565b60405180910390fd5b336001600160a01b0382161480610bb557506001600160a01b038116600090815260076020908152604080832033845290915290205460ff165b610bd15760405162461bcd60e51b8152600401610b7290612e25565b610bdb83836118ca565b505050565b600f5462010000900460ff16610c085760405162461bcd60e51b8152600401610b7290612e69565b610c10611945565b610c18611968565b60005b8151811015610cd6576000828281518110610c3857610c38612e79565b60200260200101519050610c4b81610f9c565b6001600160a01b0316336001600160a01b0316148015610c7a575060008181526010602052604090205460ff16155b15610cc357600081815260106020526040808220805460ff1916600117905551829133917f3f925022a03672137e3147c1fb070ed1d59ecba6ff00a8ae696f5cf2172768569190a35b5080610cce81612ea5565b915050610c1b565b50610ce16001600955565b50565b6000610cef600a5490565b905090565b610cfe3382611991565b610d1a5760405162461bcd60e51b8152600401610b7290612f17565b610bdb838383611a10565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610da45750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610dc8906bffffffffffffffffffffffff1687612f27565b610dd29190612f54565b915196919550909350505050565b610bdb8383836040518060200160405280600081525061127b565b610e036117c7565b610e0b611b52565b565b610e156117c7565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a0823190610e5d90309060040161279f565b602060405180830381865afa158015610e7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9e9190612f73565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063a9059cbb90610ee890339085906004016129f3565b6020604051808303816000875af1158015610f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdb9190612f9f565b610f336117c7565b6015610a5c8282613060565b610f476117c7565b6012610a5c8282613060565b610f5b6117c7565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b610f916117c7565b610bdb838383611ba6565b6000818152600460205260408120546001600160a01b031680610a1f5760405162461bcd60e51b8152600401610b7290613152565b60128054610fde90612d37565b80601f016020809104026020016040519081016040528092919081815260200182805461100a90612d37565b80156110575780601f1061102c57610100808354040283529160200191611057565b820191906000526020600020905b81548152906001019060200180831161103a57829003601f168201915b505050505081565b60006001600160a01b0382166110875760405162461bcd60e51b8152600401610b72906131ba565b506001600160a01b031660009081526005602052604090205490565b6110ab6117c7565b610e0b6000611c4b565b6110bd6117c7565b604051600090339047908381818185875af1925050503d80600081146110ff576040519150601f19603f3d011682016040523d82523d6000602084013e611104565b606091505b5090915050801515600003610ce15760405162461bcd60e51b8152600401610b72906131fc565b6111336117c7565b600f80546001919060ff19168280610a0d565b61114e6117c7565b6011805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6111856117c7565b600f805460ff19169055565b606060038054610a8a90612d37565b6111a86117c7565b8260028111156111ba576111ba61292f565b600f805460ff191660018360028111156111d6576111d661292f565b0217905550600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ff166101009315159390930262ff0000191692909217620100009115159190910217905550565b610a5c338383611cbc565b6112396117c7565b600d80546bffffffffffffffffffffffff19169055610e0b60008055565b61125f6117c7565b6013610a5c8282613060565b6112736117c7565b610e0b611d5e565b6112853383611991565b6112a15760405162461bcd60e51b8152600401610b7290612f17565b6112ad84848484611d97565b50505050565b6112bb6117c7565b600e55565b6000818152600460205260409020546060906001600160a01b03166112f75760405162461bcd60e51b8152600401610b729061323e565b600061130283611dca565b905060128161131085611ea4565b604051602001611322939291906132e2565b604051602081830303815290604052915050919050565b6113416117c7565b6014610a5c8282613060565b6113556117c7565b60005b81811015610bdb57600061136b600a5490565b905061137b600a80546001019055565b611389848260006001611f45565b508061139481612ea5565b915050611358565b6002600f5460ff1660028111156113b5576113b561292f565b146113d25760405162461bcd60e51b8152600401610b729061338a565b806001600f5460ff1660028111156113ec576113ec61292f565b0361142b57600c54816113fe600a5490565b611408919061339a565b11156114265760405162461bcd60e51b8152600401610b72906133df565b611496565b6002600f5460ff1660028111156114445761144461292f565b0361147e57600b5481611456600a5490565b611460919061339a565b11156114265760405162461bcd60e51b8152600401610b7290613421565b60405162461bcd60e51b8152600401610b7290613463565b336000908152601660205260408120548391036114de573481600e546114bc9190612f27565b146114d95760405162461bcd60e51b8152600401610b72906134a5565b61156c565b33600090815260166020908152604080832054835260049091529020546001600160a01b031615611518573481600e546114bc9190612f27565b806001146115385760405162461bcd60e51b8152600401610b729061350d565b341561156c5760405133903480156108fc02916000818181858888f1935050505015801561156a573d6000803e3d6000fd5b505b611574611945565b61157c611968565b61158583611f9e565b610bdb6001600955565b6115976117c7565b6001600160a01b0381166115bd5760405162461bcd60e51b8152600401610b7290613575565b610ce181611c4b565b6001600f5460ff1660028111156115df576115df61292f565b146113d25760405162461bcd60e51b8152600401610b72906135b7565b60608060606116096117c7565b60136014601582805461161b90612d37565b80601f016020809104026020016040519081016040528092919081815260200182805461164790612d37565b80156116945780601f1061166957610100808354040283529160200191611694565b820191906000526020600020905b81548152906001019060200180831161167757829003601f168201915b505050505092508180546116a790612d37565b80601f01602080910402602001604051908101604052809291908181526020018280546116d390612d37565b80156117205780601f106116f557610100808354040283529160200191611720565b820191906000526020600020905b81548152906001019060200180831161170357829003601f168201915b5050505050915080805461173390612d37565b80601f016020809104026020016040519081016040528092919081815260200182805461175f90612d37565b80156117ac5780601f10611781576101008083540402835291602001916117ac565b820191906000526020600020905b81548152906001019060200180831161178f57829003601f168201915b50505050509050925092509250909192565b80546001019055565b6008546001600160a01b03610100909104163314610e0b5760405162461bcd60e51b8152600401610b72906135f7565b6000610a1f8261204c565b6127106bffffffffffffffffffffffff821611156118325760405162461bcd60e51b8152600401610b729061365f565b6001600160a01b0382166118585760405162461bcd60e51b8152600401610b72906136a1565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600055565b6000818152600460205260409020546001600160a01b0316610ce15760405162461bcd60e51b8152600401610b7290613152565b6000818152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061190c82610f9c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60085460ff1615610e0b5760405162461bcd60e51b8152600401610b72906136e3565b60026009540361198a5760405162461bcd60e51b8152600401610b7290613725565b6002600955565b60008061199d83610f9c565b9050806001600160a01b0316846001600160a01b031614806119e457506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80611a085750836001600160a01b03166119fd84610b0d565b6001600160a01b0316145b949350505050565b826001600160a01b0316611a2382610f9c565b6001600160a01b031614611a495760405162461bcd60e51b8152600401610b729061378d565b6001600160a01b038216611a6f5760405162461bcd60e51b8152600401610b72906137f5565b611a7c83838360016120ee565b826001600160a01b0316611a8f82610f9c565b6001600160a01b031614611ab55760405162461bcd60e51b8152600401610b729061378d565b6000818152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260058552838620805460001901905590871680865283862080546001019055868652600490945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611b5a611945565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b8f3390565b604051611b9c919061279f565b60405180910390a1565b6127106bffffffffffffffffffffffff82161115611bd65760405162461bcd60e51b8152600401610b729061365f565b6001600160a01b038216611bfc5760405162461bcd60e51b8152600401610b7290613837565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611ced5760405162461bcd60e51b8152600401610b7290613879565b6001600160a01b0383811660008181526007602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611d51908590612667565b60405180910390a3505050565b611d66612102565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611b8f565b611da2848484611a10565b611dae84848484612124565b6112ad5760405162461bcd60e51b8152600401610b72906138e1565b600f54606090610100900460ff16611e6e5760138054611de990612d37565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1590612d37565b8015611e625780601f10611e3757610100808354040283529160200191611e62565b820191906000526020600020905b815481529060010190602001808311611e4557829003601f168201915b50505050509050919050565b60008281526010602052604090205460ff1615611e925760158054611de990612d37565b60148054611de990612d37565b919050565b60606000611eb18361226f565b600101905060008167ffffffffffffffff811115611ed157611ed16127f4565b6040519080825280601f01601f191660200182016040528015611efb576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611f05575b509392505050565b611f4f8484612351565b81151583856001600160a01b03167f544636969c417a3d9c8ab8d0b25d4eaeeda236722dc8d2aab344241e27ffa92a600e5485604051611f909291906138f1565b60405180910390a450505050565b3360009081526016602052604090205415801590611fdf575033600090815260166020908152604080832054835260049091529020546001600160a01b0316155b156120015733600081815260166020526040812054610ce19291600190611f45565b60005b81811015610a5c5761202c33612019600a5490565b61202490600161339a565b600080611f45565b61203a600a80546001019055565b8061204481612ea5565b915050612004565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806120df57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a1f5750610a1f8261236b565b6120f6611945565b6112ad84848484612402565b60085460ff16610e0b5760405162461bcd60e51b8152600401610b729061393e565b60006001600160a01b0384163b15612264576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061218190339089908890889060040161394e565b6020604051808303816000875af19250505080156121bc575060408051601f3d908101601f191682019092526121b99181019061399d565b60015b612219573d8080156121ea576040519150601f19603f3d011682016040523d82523d6000602084013e6121ef565b606091505b5080516000036122115760405162461bcd60e51b8152600401610b72906138e1565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611a08565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106122b8577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106122e4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061230257662386f26fc10000830492506010015b6305f5e100831061231a576305f5e100830492506008015b612710831061232e57612710830492506004015b60648310612340576064830492506002015b600a8310610a1f5760010192915050565b610a5c828260405180602001604052806000815250612431565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610a1f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a1f565b61240e84848484612464565b60085460ff16156112ad5760405162461bcd60e51b8152600401610b7290613a16565b61243b83836124ec565b6124486000848484612124565b610bdb5760405162461bcd60e51b8152600401610b72906138e1565b60018111156112ad576001600160a01b038416156124aa576001600160a01b038416600090815260056020526040812080548392906124a4908490613a26565b90915550505b6001600160a01b038316156112ad576001600160a01b038316600090815260056020526040812080548392906124e190849061339a565b909155505050505050565b6001600160a01b0382166125125760405162461bcd60e51b8152600401610b7290613a69565b6000818152600460205260409020546001600160a01b0316156125475760405162461bcd60e51b8152600401610b7290613aab565b6125556000838360016120ee565b6000818152600460205260409020546001600160a01b03161561258a5760405162461bcd60e51b8152600401610b7290613aab565b6001600160a01b0382166000818152600560209081526040808320805460010190558483526004909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610ce157600080fd5b8035610a1f81612602565b60006020828403121561265157612651600080fd5b6000611a088484612631565b8015155b82525050565b60208101610a1f828461265d565b60006001600160a01b038216610a1f565b61262681612675565b8035610a1f81612686565b6bffffffffffffffffffffffff8116612626565b8035610a1f8161269a565b600080604083850312156126cf576126cf600080fd5b60006126db858561268f565b92505060206126ec858286016126ae565b9150509250929050565b60005b838110156127115781810151838201526020016126f9565b50506000910152565b6000612724825190565b80845260208401935061273b8185602086016126f6565b601f01601f19169290920192915050565b6020808252810161275d818461271a565b9392505050565b80612626565b8035610a1f81612764565b60006020828403121561278a5761278a600080fd5b6000611a08848461276a565b61266181612675565b60208101610a1f8284612796565b600080604083850312156127c3576127c3600080fd5b60006127cf858561268f565b92505060206126ec8582860161276a565b80612661565b60208101610a1f82846127e0565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612830576128306127f4565b6040525050565b600061284260405190565b9050611e9f828261280a565b600067ffffffffffffffff821115612868576128686127f4565b5060209081020190565b60006128856128808461284e565b612837565b838152905060208082019084028301858111156128a4576128a4600080fd5b835b818110156128c6576128b8878261276a565b8352602092830192016128a6565b5050509392505050565b600082601f8301126128e4576128e4600080fd5b8135611a08848260208601612872565b60006020828403121561290957612909600080fd5b813567ffffffffffffffff81111561292357612923600080fd5b611a08848285016128d0565b634e487b7160e01b600052602160045260246000fd5b60038110610ce157610ce161292f565b80611e9f81612945565b6000610a1f82612955565b6126618161295f565b60208101610a1f828461296a565b60008060006060848603121561299957612999600080fd5b60006129a5868661268f565b93505060206129b68682870161268f565b92505060406129c78682870161276a565b9150509250925092565b600080604083850312156129e7576129e7600080fd5b60006127cf858561276a565b60408101612a018285612796565b61275d60208301846127e0565b6bffffffffffffffffffffffff8116612661565b60208101610a1f8284612a0e565b6000610a1f82612675565b61262681612a30565b8035610a1f81612a3b565b600060208284031215612a6457612a64600080fd5b6000611a088484612a44565b600067ffffffffffffffff821115612a8a57612a8a6127f4565b601f19601f83011660200192915050565b82818337506000910152565b6000612ab561288084612a70565b905082815260208101848484011115612ad057612ad0600080fd5b611f3d848285612a9b565b600082601f830112612aef57612aef600080fd5b8135611a08848260208601612aa7565b600060208284031215612b1457612b14600080fd5b813567ffffffffffffffff811115612b2e57612b2e600080fd5b611a0884828501612adb565b600080600060608486031215612b5257612b52600080fd5b6000612b5e868661276a565b9350506020612b6f8682870161268f565b92505060406129c7868287016126ae565b600060208284031215612b9557612b95600080fd5b6000611a08848461268f565b801515612626565b8035610a1f81612ba1565b600080600060608486031215612bcc57612bcc600080fd5b6000612bd8868661276a565b9350506020612be986828701612ba9565b92505060406129c786828701612ba9565b60008060408385031215612c1057612c10600080fd5b6000612c1c858561268f565b92505060206126ec85828601612ba9565b60008060008060808587031215612c4657612c46600080fd5b6000612c52878761268f565b9450506020612c638782880161268f565b9350506040612c748782880161276a565b925050606085013567ffffffffffffffff811115612c9457612c94600080fd5b612ca087828801612adb565b91505092959194509250565b60008060408385031215612cc257612cc2600080fd5b6000612cce858561268f565b92505060206126ec8582860161268f565b60608082528101612cf0818661271a565b90508181036020830152612d04818561271a565b90508181036040830152612d18818461271a565b95945050505050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612d4b57607f821691505b602082108103612d5d57612d5d612d21565b50919050565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b60208082528101610a1f81612d63565b603d8152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060208201529050612db7565b60208082528101610a1f81612dcd565b60168152602081017f43616e6e6f742072656465656d204e4654732079657400000000000000000000815290505b60200190565b60208082528101610a1f81612e35565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198203612eb857612eb8612e8f565b5060010190565b602d8152602081017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581527f72206f7220617070726f7665640000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81612ebf565b8181028115828204841417610a1f57610a1f612e8f565b634e487b7160e01b600052601260045260246000fd5b600082612f6357612f63612f3e565b500490565b8051610a1f81612764565b600060208284031215612f8857612f88600080fd5b6000611a088484612f68565b8051610a1f81612ba1565b600060208284031215612fb457612fb4600080fd5b6000611a088484612f94565b6000610a1f612fcc8381565b90565b612fd883612fc0565b81546008840282811b60001990911b908116901990911617825550505050565b6000610bdb818484612fcf565b81811015610a5c57613018600082612ff8565b600101613005565b601f821115610bdb576000818152602090206020601f850104810160208510156130475750805b6130596020601f860104830182613005565b5050505050565b815167ffffffffffffffff81111561307a5761307a6127f4565b6130848254612d37565b61308f828285613020565b506020601f8211600181146130c457600083156130ac5750848201515b600019600885021c1981166002850217855550613059565b600084815260208120601f198516915b828110156130f457878501518255602094850194600190920191016130d4565b50848210156131115783870151600019601f87166008021c191681555b50505050600202600101905550565b60188152602081017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529050612e63565b60208082528101610a1f81613120565b60298152602081017f4552433732313a2061646472657373207a65726f206973206e6f74206120766181527f6c6964206f776e6572000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613162565b600f8152602081017f5769746864726177206661696c6564000000000000000000000000000000000081529050612e63565b60208082528101610a1f816131ca565b601f8152602081017f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0081529050612e63565b60208082528101610a1f8161320c565b6000815461325b81612d37565b6001821680156132725760018114613287576132b7565b60ff19831686528115158202860193506132b7565b60008581526020902060005b838110156132af57815488820152600190910190602001613293565b505081860193505b50505092915050565b60006132ca825190565b6132d88185602086016126f6565b9290920192915050565b6132ec818561324e565b90506132f881846132c0565b7f2f000000000000000000000000000000000000000000000000000000000000008152600101905061332a81836132c0565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000008152905060058101611a08565b60178152602081017f5075626c69632073616c65206973206e6f74206f70656e00000000000000000081529050612e63565b60208082528101610a1f81613358565b80820180821115610a1f57610a1f612e8f565b601b8152602081017f45786365656473206d6178207072652d6d696e7420737570706c79000000000081529050612e63565b60208082528101610a1f816133ad565b60188152602081017f45786365656473206d617820746f74616c20737570706c79000000000000000081529050612e63565b60208082528101610a1f816133ef565b60138152602081017f4d696e74696e67206973206e6f74206f70656e0000000000000000000000000081529050612e63565b60208082528101610a1f81613431565b60188152602081017f496e636f7272656374204554482076616c75652073656e74000000000000000081529050612e63565b60208082528101610a1f81613473565b603d8152602081017f506c65617365206d696e7420796f757220312066726565204e4654206265666f81527f72652070757263686173696e67206164646974696f6e616c204e46547300000060208201529050612db7565b60208082528101610a1f816134b5565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f8161351d565b60148152602081017f5072652d73616c65206973206e6f74206f70656e00000000000000000000000081529050612e63565b60208082528101610a1f81613585565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612e63565b60208082528101610a1f816135c7565b602a8152602081017f455243323938313a20726f79616c7479206665652077696c6c2065786365656481527f2073616c6550726963650000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613607565b60198152602081017f455243323938313a20696e76616c69642072656365697665720000000000000081529050612e63565b60208082528101610a1f8161366f565b60108152602081017f5061757361626c653a207061757365640000000000000000000000000000000081529050612e63565b60208082528101610a1f816136b1565b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529050612e63565b60208082528101610a1f816136f3565b60258152602081017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e657200000000000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613735565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f8161379d565b601b8152602081017f455243323938313a20496e76616c696420706172616d6574657273000000000081529050612e63565b60208082528101610a1f81613805565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529050612e63565b60208082528101610a1f81613847565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613889565b604081016138ff82856127e0565b61275d602083018461265d565b60148152602081017f5061757361626c653a206e6f742070617573656400000000000000000000000081529050612e63565b60208082528101610a1f8161390c565b6080810161395c8287612796565b6139696020830186612796565b61397660408301856127e0565b8181036060830152613988818461271a565b9695505050505050565b8051610a1f81612602565b6000602082840312156139b2576139b2600080fd5b6000611a088484613992565b602b8152602081017f4552433732315061757361626c653a20746f6b656e207472616e73666572207781527f68696c652070617573656400000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f816139be565b81810381811115610a1f57610a1f612e8f565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152612e63565b60208082528101610a1f81613a39565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529050612e63565b60208082528101610a1f81613a7956fea26469706673582212202e1ce2bcdadd85be7fd459149696e7de3f5603572ac21672be65b265c9d9431264736f6c63430008110033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031f5c4ed2768000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000753c694c22dd9b1bab0e9d3d2258102464b32dfa000000000000000000000000000000000000000000000000000000000000000b507573737944414f204f47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550555353590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b62616679626569616f357a647265766278687262686a6133736d6f343467656f6d36377a6e796e7664636b6c76777a76697877773361676e776d6100000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000b1b09721e8640b7ef1c11eaf09dc2d519cdc4a2e000000000000000000000000266e873a0d1e76c63af2f50bc5ca6d25867d4300000000000000000000000000f3612f6342370620228140147e463fe5d389e494000000000000000000000000b52235dc0751ce6e171c51fbf459fd6637c6ccc8
Deployed Bytecode
0x6080604052600436106103555760003560e01c80636b8dc355116101bb578063aa1b103f116100f7578063d30801d811610095578063efd0cbf91161006f578063efd0cbf91461098b578063f2fde38b1461099e578063f759867a146109be578063f7602d0d146109d157600080fd5b8063d30801d814610902578063e58306f914610922578063e985e9c51461094257600080fd5b8063b88d4fde116100d1578063b88d4fde14610872578063c4bbf05f14610892578063c5463127146108c2578063c87b56dd146108e257600080fd5b8063aa1b103f14610828578063ac3b9cde1461083d578063b33712c51461085d57600080fd5b8063846bb70c116101645780638da5cb5b1161013e5780638da5cb5b146107b057806395d89b41146107d3578063a1142eee146107e8578063a22cb4651461080857600080fd5b8063846bb70c1461075c578063856e05041461077b57806387491c601461079b57600080fd5b8063715018a611610195578063715018a61461071d5780637362377b1461073257806383cd11391461074757600080fd5b80636b8dc355146106d25780636c0360eb146106e857806370a08231146106fd57600080fd5b80632a55205a116102955780634f4602da116102335780635651c1691161020d5780635651c169146106655780635944c7531461067a5780635c975abb1461069a5780636352211e146106b257600080fd5b80634f4602da146105f557806351090e6a1461062557806355f804b31461064557600080fd5b806342842e0e1161026f57806342842e0e1461056e578063439766ce1461058e57806349c657db146105a357806349df728c146105d557600080fd5b80632a55205a1461050a57806333039d3d146105385780634108e3dc1461054e57600080fd5b8063095ea7b31161030257806317881cbf116102dc57806317881cbf1461048e5780631908beb1146104b557806320b50c06146104ca57806323b872dd146104ea57600080fd5b8063095ea7b31461042b5780630d39fc811461044b5780630e0dca611461046e57600080fd5b8063069f9ef711610333578063069f9ef7146103c757806306fdde03146103dc578063081812fc146103fe57600080fd5b806301b8083b1461035a57806301ffc9a71461037157806304634d8d146103a7575b600080fd5b34801561036657600080fd5b5061036f6109f5565b005b34801561037d57600080fd5b5061039161038c36600461263c565b610a14565b60405161039e9190612667565b60405180910390f35b3480156103b357600080fd5b5061036f6103c23660046126b9565b610a25565b3480156103d357600080fd5b5061036f610a60565b3480156103e857600080fd5b506103f1610a7b565b60405161039e919061274c565b34801561040a57600080fd5b5061041e610419366004612775565b610b0d565b60405161039e919061279f565b34801561043757600080fd5b5061036f6104463660046127ad565b610b34565b34801561045757600080fd5b50610461600e5481565b60405161039e91906127e6565b34801561047a57600080fd5b5061036f6104893660046128f4565b610be0565b34801561049a57600080fd5b50600f546104a89060ff1681565b60405161039e9190612973565b3480156104c157600080fd5b50610461610ce4565b3480156104d657600080fd5b50600f546103919062010000900460ff1681565b3480156104f657600080fd5b5061036f610505366004612981565b610cf4565b34801561051657600080fd5b5061052a6105253660046129d1565b610d25565b60405161039e9291906129f3565b34801561054457600080fd5b50610461600b5481565b34801561055a57600080fd5b5060115461041e906001600160a01b031681565b34801561057a57600080fd5b5061036f610589366004612981565b610de0565b34801561059a57600080fd5b5061036f610dfb565b3480156105af57600080fd5b50600d546105c8906bffffffffffffffffffffffff1681565b60405161039e9190612a22565b3480156105e157600080fd5b5061036f6105f0366004612a4f565b610e0d565b34801561060157600080fd5b50610391610610366004612775565b60106020526000908152604090205460ff1681565b34801561063157600080fd5b5061036f610640366004612aff565b610f2b565b34801561065157600080fd5b5061036f610660366004612aff565b610f3f565b34801561067157600080fd5b5061036f610f53565b34801561068657600080fd5b5061036f610695366004612b3a565b610f89565b3480156106a657600080fd5b5060085460ff16610391565b3480156106be57600080fd5b5061041e6106cd366004612775565b610f9c565b3480156106de57600080fd5b50610461600c5481565b3480156106f457600080fd5b506103f1610fd1565b34801561070957600080fd5b50610461610718366004612b80565b61105f565b34801561072957600080fd5b5061036f6110a3565b34801561073e57600080fd5b5061036f6110b5565b34801561075357600080fd5b5061036f61112b565b34801561076857600080fd5b50600f5461039190610100900460ff1681565b34801561078757600080fd5b5061036f610796366004612b80565b611146565b3480156107a757600080fd5b5061036f61117d565b3480156107bc57600080fd5b5060085461010090046001600160a01b031661041e565b3480156107df57600080fd5b506103f1611191565b3480156107f457600080fd5b5061036f610803366004612bb4565b6111a0565b34801561081457600080fd5b5061036f610823366004612bfa565b611226565b34801561083457600080fd5b5061036f611231565b34801561084957600080fd5b5061036f610858366004612aff565b611257565b34801561086957600080fd5b5061036f61126b565b34801561087e57600080fd5b5061036f61088d366004612c2d565b61127b565b34801561089e57600080fd5b506103916108ad366004612775565b60009081526010602052604090205460ff1690565b3480156108ce57600080fd5b5061036f6108dd366004612775565b6112b3565b3480156108ee57600080fd5b506103f16108fd366004612775565b6112c0565b34801561090e57600080fd5b5061036f61091d366004612aff565b611339565b34801561092e57600080fd5b5061036f61093d3660046127ad565b61134d565b34801561094e57600080fd5b5061039161095d366004612cac565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61036f610999366004612775565b61139c565b3480156109aa57600080fd5b5061036f6109b9366004612b80565b61158f565b61036f6109cc366004612775565b6115c6565b3480156109dd57600080fd5b506109e66115fc565b60405161039e93929190612cdf565b6109fd6117c7565b600f80546002919060ff19166001835b0217905550565b6000610a1f826117f7565b92915050565b610a2d6117c7565b600d80546bffffffffffffffffffffffff19166bffffffffffffffffffffffff8316179055610a5c8282611802565b5050565b610a686117c7565b600f805462ff0000191662010000179055565b606060028054610a8a90612d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab690612d37565b8015610b035780601f10610ad857610100808354040283529160200191610b03565b820191906000526020600020905b815481529060010190602001808311610ae657829003601f168201915b5050505050905090565b6000610b1882611896565b506000908152600660205260409020546001600160a01b031690565b6000610b3f82610f9c565b9050806001600160a01b0316836001600160a01b031603610b7b5760405162461bcd60e51b8152600401610b7290612dbd565b60405180910390fd5b336001600160a01b0382161480610bb557506001600160a01b038116600090815260076020908152604080832033845290915290205460ff165b610bd15760405162461bcd60e51b8152600401610b7290612e25565b610bdb83836118ca565b505050565b600f5462010000900460ff16610c085760405162461bcd60e51b8152600401610b7290612e69565b610c10611945565b610c18611968565b60005b8151811015610cd6576000828281518110610c3857610c38612e79565b60200260200101519050610c4b81610f9c565b6001600160a01b0316336001600160a01b0316148015610c7a575060008181526010602052604090205460ff16155b15610cc357600081815260106020526040808220805460ff1916600117905551829133917f3f925022a03672137e3147c1fb070ed1d59ecba6ff00a8ae696f5cf2172768569190a35b5080610cce81612ea5565b915050610c1b565b50610ce16001600955565b50565b6000610cef600a5490565b905090565b610cfe3382611991565b610d1a5760405162461bcd60e51b8152600401610b7290612f17565b610bdb838383611a10565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610da45750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610dc8906bffffffffffffffffffffffff1687612f27565b610dd29190612f54565b915196919550909350505050565b610bdb8383836040518060200160405280600081525061127b565b610e036117c7565b610e0b611b52565b565b610e156117c7565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a0823190610e5d90309060040161279f565b602060405180830381865afa158015610e7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9e9190612f73565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063a9059cbb90610ee890339085906004016129f3565b6020604051808303816000875af1158015610f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdb9190612f9f565b610f336117c7565b6015610a5c8282613060565b610f476117c7565b6012610a5c8282613060565b610f5b6117c7565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b610f916117c7565b610bdb838383611ba6565b6000818152600460205260408120546001600160a01b031680610a1f5760405162461bcd60e51b8152600401610b7290613152565b60128054610fde90612d37565b80601f016020809104026020016040519081016040528092919081815260200182805461100a90612d37565b80156110575780601f1061102c57610100808354040283529160200191611057565b820191906000526020600020905b81548152906001019060200180831161103a57829003601f168201915b505050505081565b60006001600160a01b0382166110875760405162461bcd60e51b8152600401610b72906131ba565b506001600160a01b031660009081526005602052604090205490565b6110ab6117c7565b610e0b6000611c4b565b6110bd6117c7565b604051600090339047908381818185875af1925050503d80600081146110ff576040519150601f19603f3d011682016040523d82523d6000602084013e611104565b606091505b5090915050801515600003610ce15760405162461bcd60e51b8152600401610b72906131fc565b6111336117c7565b600f80546001919060ff19168280610a0d565b61114e6117c7565b6011805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6111856117c7565b600f805460ff19169055565b606060038054610a8a90612d37565b6111a86117c7565b8260028111156111ba576111ba61292f565b600f805460ff191660018360028111156111d6576111d661292f565b0217905550600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ff166101009315159390930262ff0000191692909217620100009115159190910217905550565b610a5c338383611cbc565b6112396117c7565b600d80546bffffffffffffffffffffffff19169055610e0b60008055565b61125f6117c7565b6013610a5c8282613060565b6112736117c7565b610e0b611d5e565b6112853383611991565b6112a15760405162461bcd60e51b8152600401610b7290612f17565b6112ad84848484611d97565b50505050565b6112bb6117c7565b600e55565b6000818152600460205260409020546060906001600160a01b03166112f75760405162461bcd60e51b8152600401610b729061323e565b600061130283611dca565b905060128161131085611ea4565b604051602001611322939291906132e2565b604051602081830303815290604052915050919050565b6113416117c7565b6014610a5c8282613060565b6113556117c7565b60005b81811015610bdb57600061136b600a5490565b905061137b600a80546001019055565b611389848260006001611f45565b508061139481612ea5565b915050611358565b6002600f5460ff1660028111156113b5576113b561292f565b146113d25760405162461bcd60e51b8152600401610b729061338a565b806001600f5460ff1660028111156113ec576113ec61292f565b0361142b57600c54816113fe600a5490565b611408919061339a565b11156114265760405162461bcd60e51b8152600401610b72906133df565b611496565b6002600f5460ff1660028111156114445761144461292f565b0361147e57600b5481611456600a5490565b611460919061339a565b11156114265760405162461bcd60e51b8152600401610b7290613421565b60405162461bcd60e51b8152600401610b7290613463565b336000908152601660205260408120548391036114de573481600e546114bc9190612f27565b146114d95760405162461bcd60e51b8152600401610b72906134a5565b61156c565b33600090815260166020908152604080832054835260049091529020546001600160a01b031615611518573481600e546114bc9190612f27565b806001146115385760405162461bcd60e51b8152600401610b729061350d565b341561156c5760405133903480156108fc02916000818181858888f1935050505015801561156a573d6000803e3d6000fd5b505b611574611945565b61157c611968565b61158583611f9e565b610bdb6001600955565b6115976117c7565b6001600160a01b0381166115bd5760405162461bcd60e51b8152600401610b7290613575565b610ce181611c4b565b6001600f5460ff1660028111156115df576115df61292f565b146113d25760405162461bcd60e51b8152600401610b72906135b7565b60608060606116096117c7565b60136014601582805461161b90612d37565b80601f016020809104026020016040519081016040528092919081815260200182805461164790612d37565b80156116945780601f1061166957610100808354040283529160200191611694565b820191906000526020600020905b81548152906001019060200180831161167757829003601f168201915b505050505092508180546116a790612d37565b80601f01602080910402602001604051908101604052809291908181526020018280546116d390612d37565b80156117205780601f106116f557610100808354040283529160200191611720565b820191906000526020600020905b81548152906001019060200180831161170357829003601f168201915b5050505050915080805461173390612d37565b80601f016020809104026020016040519081016040528092919081815260200182805461175f90612d37565b80156117ac5780601f10611781576101008083540402835291602001916117ac565b820191906000526020600020905b81548152906001019060200180831161178f57829003601f168201915b50505050509050925092509250909192565b80546001019055565b6008546001600160a01b03610100909104163314610e0b5760405162461bcd60e51b8152600401610b72906135f7565b6000610a1f8261204c565b6127106bffffffffffffffffffffffff821611156118325760405162461bcd60e51b8152600401610b729061365f565b6001600160a01b0382166118585760405162461bcd60e51b8152600401610b72906136a1565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600055565b6000818152600460205260409020546001600160a01b0316610ce15760405162461bcd60e51b8152600401610b7290613152565b6000818152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061190c82610f9c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60085460ff1615610e0b5760405162461bcd60e51b8152600401610b72906136e3565b60026009540361198a5760405162461bcd60e51b8152600401610b7290613725565b6002600955565b60008061199d83610f9c565b9050806001600160a01b0316846001600160a01b031614806119e457506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80611a085750836001600160a01b03166119fd84610b0d565b6001600160a01b0316145b949350505050565b826001600160a01b0316611a2382610f9c565b6001600160a01b031614611a495760405162461bcd60e51b8152600401610b729061378d565b6001600160a01b038216611a6f5760405162461bcd60e51b8152600401610b72906137f5565b611a7c83838360016120ee565b826001600160a01b0316611a8f82610f9c565b6001600160a01b031614611ab55760405162461bcd60e51b8152600401610b729061378d565b6000818152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260058552838620805460001901905590871680865283862080546001019055868652600490945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611b5a611945565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b8f3390565b604051611b9c919061279f565b60405180910390a1565b6127106bffffffffffffffffffffffff82161115611bd65760405162461bcd60e51b8152600401610b729061365f565b6001600160a01b038216611bfc5760405162461bcd60e51b8152600401610b7290613837565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611ced5760405162461bcd60e51b8152600401610b7290613879565b6001600160a01b0383811660008181526007602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611d51908590612667565b60405180910390a3505050565b611d66612102565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611b8f565b611da2848484611a10565b611dae84848484612124565b6112ad5760405162461bcd60e51b8152600401610b72906138e1565b600f54606090610100900460ff16611e6e5760138054611de990612d37565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1590612d37565b8015611e625780601f10611e3757610100808354040283529160200191611e62565b820191906000526020600020905b815481529060010190602001808311611e4557829003601f168201915b50505050509050919050565b60008281526010602052604090205460ff1615611e925760158054611de990612d37565b60148054611de990612d37565b919050565b60606000611eb18361226f565b600101905060008167ffffffffffffffff811115611ed157611ed16127f4565b6040519080825280601f01601f191660200182016040528015611efb576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611f05575b509392505050565b611f4f8484612351565b81151583856001600160a01b03167f544636969c417a3d9c8ab8d0b25d4eaeeda236722dc8d2aab344241e27ffa92a600e5485604051611f909291906138f1565b60405180910390a450505050565b3360009081526016602052604090205415801590611fdf575033600090815260166020908152604080832054835260049091529020546001600160a01b0316155b156120015733600081815260166020526040812054610ce19291600190611f45565b60005b81811015610a5c5761202c33612019600a5490565b61202490600161339a565b600080611f45565b61203a600a80546001019055565b8061204481612ea5565b915050612004565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806120df57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a1f5750610a1f8261236b565b6120f6611945565b6112ad84848484612402565b60085460ff16610e0b5760405162461bcd60e51b8152600401610b729061393e565b60006001600160a01b0384163b15612264576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061218190339089908890889060040161394e565b6020604051808303816000875af19250505080156121bc575060408051601f3d908101601f191682019092526121b99181019061399d565b60015b612219573d8080156121ea576040519150601f19603f3d011682016040523d82523d6000602084013e6121ef565b606091505b5080516000036122115760405162461bcd60e51b8152600401610b72906138e1565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611a08565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106122b8577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106122e4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061230257662386f26fc10000830492506010015b6305f5e100831061231a576305f5e100830492506008015b612710831061232e57612710830492506004015b60648310612340576064830492506002015b600a8310610a1f5760010192915050565b610a5c828260405180602001604052806000815250612431565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610a1f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a1f565b61240e84848484612464565b60085460ff16156112ad5760405162461bcd60e51b8152600401610b7290613a16565b61243b83836124ec565b6124486000848484612124565b610bdb5760405162461bcd60e51b8152600401610b72906138e1565b60018111156112ad576001600160a01b038416156124aa576001600160a01b038416600090815260056020526040812080548392906124a4908490613a26565b90915550505b6001600160a01b038316156112ad576001600160a01b038316600090815260056020526040812080548392906124e190849061339a565b909155505050505050565b6001600160a01b0382166125125760405162461bcd60e51b8152600401610b7290613a69565b6000818152600460205260409020546001600160a01b0316156125475760405162461bcd60e51b8152600401610b7290613aab565b6125556000838360016120ee565b6000818152600460205260409020546001600160a01b03161561258a5760405162461bcd60e51b8152600401610b7290613aab565b6001600160a01b0382166000818152600560209081526040808320805460010190558483526004909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610ce157600080fd5b8035610a1f81612602565b60006020828403121561265157612651600080fd5b6000611a088484612631565b8015155b82525050565b60208101610a1f828461265d565b60006001600160a01b038216610a1f565b61262681612675565b8035610a1f81612686565b6bffffffffffffffffffffffff8116612626565b8035610a1f8161269a565b600080604083850312156126cf576126cf600080fd5b60006126db858561268f565b92505060206126ec858286016126ae565b9150509250929050565b60005b838110156127115781810151838201526020016126f9565b50506000910152565b6000612724825190565b80845260208401935061273b8185602086016126f6565b601f01601f19169290920192915050565b6020808252810161275d818461271a565b9392505050565b80612626565b8035610a1f81612764565b60006020828403121561278a5761278a600080fd5b6000611a08848461276a565b61266181612675565b60208101610a1f8284612796565b600080604083850312156127c3576127c3600080fd5b60006127cf858561268f565b92505060206126ec8582860161276a565b80612661565b60208101610a1f82846127e0565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612830576128306127f4565b6040525050565b600061284260405190565b9050611e9f828261280a565b600067ffffffffffffffff821115612868576128686127f4565b5060209081020190565b60006128856128808461284e565b612837565b838152905060208082019084028301858111156128a4576128a4600080fd5b835b818110156128c6576128b8878261276a565b8352602092830192016128a6565b5050509392505050565b600082601f8301126128e4576128e4600080fd5b8135611a08848260208601612872565b60006020828403121561290957612909600080fd5b813567ffffffffffffffff81111561292357612923600080fd5b611a08848285016128d0565b634e487b7160e01b600052602160045260246000fd5b60038110610ce157610ce161292f565b80611e9f81612945565b6000610a1f82612955565b6126618161295f565b60208101610a1f828461296a565b60008060006060848603121561299957612999600080fd5b60006129a5868661268f565b93505060206129b68682870161268f565b92505060406129c78682870161276a565b9150509250925092565b600080604083850312156129e7576129e7600080fd5b60006127cf858561276a565b60408101612a018285612796565b61275d60208301846127e0565b6bffffffffffffffffffffffff8116612661565b60208101610a1f8284612a0e565b6000610a1f82612675565b61262681612a30565b8035610a1f81612a3b565b600060208284031215612a6457612a64600080fd5b6000611a088484612a44565b600067ffffffffffffffff821115612a8a57612a8a6127f4565b601f19601f83011660200192915050565b82818337506000910152565b6000612ab561288084612a70565b905082815260208101848484011115612ad057612ad0600080fd5b611f3d848285612a9b565b600082601f830112612aef57612aef600080fd5b8135611a08848260208601612aa7565b600060208284031215612b1457612b14600080fd5b813567ffffffffffffffff811115612b2e57612b2e600080fd5b611a0884828501612adb565b600080600060608486031215612b5257612b52600080fd5b6000612b5e868661276a565b9350506020612b6f8682870161268f565b92505060406129c7868287016126ae565b600060208284031215612b9557612b95600080fd5b6000611a08848461268f565b801515612626565b8035610a1f81612ba1565b600080600060608486031215612bcc57612bcc600080fd5b6000612bd8868661276a565b9350506020612be986828701612ba9565b92505060406129c786828701612ba9565b60008060408385031215612c1057612c10600080fd5b6000612c1c858561268f565b92505060206126ec85828601612ba9565b60008060008060808587031215612c4657612c46600080fd5b6000612c52878761268f565b9450506020612c638782880161268f565b9350506040612c748782880161276a565b925050606085013567ffffffffffffffff811115612c9457612c94600080fd5b612ca087828801612adb565b91505092959194509250565b60008060408385031215612cc257612cc2600080fd5b6000612cce858561268f565b92505060206126ec8582860161268f565b60608082528101612cf0818661271a565b90508181036020830152612d04818561271a565b90508181036040830152612d18818461271a565b95945050505050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612d4b57607f821691505b602082108103612d5d57612d5d612d21565b50919050565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b60208082528101610a1f81612d63565b603d8152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060208201529050612db7565b60208082528101610a1f81612dcd565b60168152602081017f43616e6e6f742072656465656d204e4654732079657400000000000000000000815290505b60200190565b60208082528101610a1f81612e35565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198203612eb857612eb8612e8f565b5060010190565b602d8152602081017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581527f72206f7220617070726f7665640000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81612ebf565b8181028115828204841417610a1f57610a1f612e8f565b634e487b7160e01b600052601260045260246000fd5b600082612f6357612f63612f3e565b500490565b8051610a1f81612764565b600060208284031215612f8857612f88600080fd5b6000611a088484612f68565b8051610a1f81612ba1565b600060208284031215612fb457612fb4600080fd5b6000611a088484612f94565b6000610a1f612fcc8381565b90565b612fd883612fc0565b81546008840282811b60001990911b908116901990911617825550505050565b6000610bdb818484612fcf565b81811015610a5c57613018600082612ff8565b600101613005565b601f821115610bdb576000818152602090206020601f850104810160208510156130475750805b6130596020601f860104830182613005565b5050505050565b815167ffffffffffffffff81111561307a5761307a6127f4565b6130848254612d37565b61308f828285613020565b506020601f8211600181146130c457600083156130ac5750848201515b600019600885021c1981166002850217855550613059565b600084815260208120601f198516915b828110156130f457878501518255602094850194600190920191016130d4565b50848210156131115783870151600019601f87166008021c191681555b50505050600202600101905550565b60188152602081017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529050612e63565b60208082528101610a1f81613120565b60298152602081017f4552433732313a2061646472657373207a65726f206973206e6f74206120766181527f6c6964206f776e6572000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613162565b600f8152602081017f5769746864726177206661696c6564000000000000000000000000000000000081529050612e63565b60208082528101610a1f816131ca565b601f8152602081017f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0081529050612e63565b60208082528101610a1f8161320c565b6000815461325b81612d37565b6001821680156132725760018114613287576132b7565b60ff19831686528115158202860193506132b7565b60008581526020902060005b838110156132af57815488820152600190910190602001613293565b505081860193505b50505092915050565b60006132ca825190565b6132d88185602086016126f6565b9290920192915050565b6132ec818561324e565b90506132f881846132c0565b7f2f000000000000000000000000000000000000000000000000000000000000008152600101905061332a81836132c0565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000008152905060058101611a08565b60178152602081017f5075626c69632073616c65206973206e6f74206f70656e00000000000000000081529050612e63565b60208082528101610a1f81613358565b80820180821115610a1f57610a1f612e8f565b601b8152602081017f45786365656473206d6178207072652d6d696e7420737570706c79000000000081529050612e63565b60208082528101610a1f816133ad565b60188152602081017f45786365656473206d617820746f74616c20737570706c79000000000000000081529050612e63565b60208082528101610a1f816133ef565b60138152602081017f4d696e74696e67206973206e6f74206f70656e0000000000000000000000000081529050612e63565b60208082528101610a1f81613431565b60188152602081017f496e636f7272656374204554482076616c75652073656e74000000000000000081529050612e63565b60208082528101610a1f81613473565b603d8152602081017f506c65617365206d696e7420796f757220312066726565204e4654206265666f81527f72652070757263686173696e67206164646974696f6e616c204e46547300000060208201529050612db7565b60208082528101610a1f816134b5565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f8161351d565b60148152602081017f5072652d73616c65206973206e6f74206f70656e00000000000000000000000081529050612e63565b60208082528101610a1f81613585565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612e63565b60208082528101610a1f816135c7565b602a8152602081017f455243323938313a20726f79616c7479206665652077696c6c2065786365656481527f2073616c6550726963650000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613607565b60198152602081017f455243323938313a20696e76616c69642072656365697665720000000000000081529050612e63565b60208082528101610a1f8161366f565b60108152602081017f5061757361626c653a207061757365640000000000000000000000000000000081529050612e63565b60208082528101610a1f816136b1565b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529050612e63565b60208082528101610a1f816136f3565b60258152602081017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e657200000000000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613735565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f8161379d565b601b8152602081017f455243323938313a20496e76616c696420706172616d6574657273000000000081529050612e63565b60208082528101610a1f81613805565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529050612e63565b60208082528101610a1f81613847565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529050612db7565b60208082528101610a1f81613889565b604081016138ff82856127e0565b61275d602083018461265d565b60148152602081017f5061757361626c653a206e6f742070617573656400000000000000000000000081529050612e63565b60208082528101610a1f8161390c565b6080810161395c8287612796565b6139696020830186612796565b61397660408301856127e0565b8181036060830152613988818461271a565b9695505050505050565b8051610a1f81612602565b6000602082840312156139b2576139b2600080fd5b6000611a088484613992565b602b8152602081017f4552433732315061757361626c653a20746f6b656e207472616e73666572207781527f68696c652070617573656400000000000000000000000000000000000000000060208201529050612db7565b60208082528101610a1f816139be565b81810381811115610a1f57610a1f612e8f565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152612e63565b60208082528101610a1f81613a39565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529050612e63565b60208082528101610a1f81613a7956fea26469706673582212202e1ce2bcdadd85be7fd459149696e7de3f5603572ac21672be65b265c9d9431264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031f5c4ed2768000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000753c694c22dd9b1bab0e9d3d2258102464b32dfa000000000000000000000000000000000000000000000000000000000000000b507573737944414f204f47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550555353590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b62616679626569616f357a647265766278687262686a6133736d6f343467656f6d36377a6e796e7664636b6c76777a76697877773361676e776d6100000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000b1b09721e8640b7ef1c11eaf09dc2d519cdc4a2e000000000000000000000000266e873a0d1e76c63af2f50bc5ca6d25867d4300000000000000000000000000f3612f6342370620228140147e463fe5d389e494000000000000000000000000b52235dc0751ce6e171c51fbf459fd6637c6ccc8
-----Decoded View---------------
Arg [0] : _name (string): PussyDAO OG
Arg [1] : _symbol (string): PUSSY
Arg [2] : _mintPhase (uint8): 0
Arg [3] : _nftPrice (uint256): 225000000000000000
Arg [4] : _baseURI (string): ipfs://
Arg [5] : _preRevealCID (string): bafybeiao5zdrevbxhrbhja3smo44geom67znynvdcklvwzvixww3agnwma
Arg [6] : _reservedAddresses (address[]): 0xb1B09721e8640b7eF1C11EaF09DC2d519cdC4A2E,0x266e873A0d1E76C63aF2F50bc5Ca6D25867D4300,0xf3612F6342370620228140147e463Fe5D389e494,0xB52235DC0751ce6E171C51fbF459fd6637c6ccc8
Arg [7] : _ownerAddress (address): 0x753C694C22dD9b1Bab0e9d3D2258102464B32DFA
-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 000000000000000000000000000000000000000000000000031f5c4ed2768000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [7] : 000000000000000000000000753c694c22dd9b1bab0e9d3d2258102464b32dfa
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [9] : 507573737944414f204f47000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 5055535359000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [13] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000003b
Arg [15] : 62616679626569616f357a647265766278687262686a6133736d6f343467656f
Arg [16] : 6d36377a6e796e7664636b6c76777a76697877773361676e776d610000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [18] : 000000000000000000000000b1b09721e8640b7ef1c11eaf09dc2d519cdc4a2e
Arg [19] : 000000000000000000000000266e873a0d1e76c63af2f50bc5ca6d25867d4300
Arg [20] : 000000000000000000000000f3612f6342370620228140147e463fe5d389e494
Arg [21] : 000000000000000000000000b52235dc0751ce6e171c51fbf459fd6637c6ccc8
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.