Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
506 PPA
Holders
163
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 PPALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PixelPrimeApes
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT //Authors: Pineapple & GoatBaloonToken pragma solidity ^0.8.4; //@dev Import required contracts import './ERC721A/ERC721A.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract PixelPrimeApes is ERC721A, Ownable, ReentrancyGuard { uint256 public MAX_SUPPLY = 10000; uint256 public constant RESERVE_AMOUNT = 200; uint256 public constant PRICE = 0.055 ether; uint256 public constant OG_MAX = 2; uint256 public constant PRESALE_MAX = 5; uint256 public constant PUBLIC_MAX = 10; //@dev: Variables for contract states bool public ogSaleOn = false; bool public presaleOn = false; bool public saleOn = false; bool public reserved = false; bool public metadataIsFrozen = false; bool public finalSupply = false; //Addresses for transfers and verifications address private immutable _enforcerAddress; address private immutable _vaultAddress; address private _teamAddress = 0x7141BF3F75aE1994ea7493dfb4724F0969c2369a; //@Tracks the hash to verify that the user is minting from site. //The notice is generated off-chain using our Presale DB. struct Notice { bytes32 r; bytes32 s; uint8 v; } enum MintType { OG, Presale } //Constructor constructor( address enforcerAddress_, address vaultAddress_ ) ERC721A("Pixel PrimeApes", "PPA") { _enforcerAddress = enforcerAddress_; _vaultAddress = vaultAddress_; } modifier callerIsUser() { require(tx.origin == msg.sender, "Caller must be an EOA!"); _; } modifier verifyPayment(uint256 count) { require(msg.value >= PRICE * count, "You need to send more ETH!"); _; } //@dev Check that the notice was signed by our enforcer address and that user // is allowed to mint during OG/Presale mint //@param:dig: data represnting hash of Mint phase and the user address //@param: notice: notice generated that verifies member is on the presale list function _isValidNotice(bytes32 dig, Notice memory notice) internal view returns (bool) { address signer = ecrecover(dig, notice.v, notice.r, notice.s); require(signer != address(0), 'ECDSA: Invalid signature'); return signer == _enforcerAddress; } //@dev Function that handles presale minting by verifying the notice //@dev signed by our enforcerAddress //@param quantity: # of tokens minted in the transaction //@param notice: notice signed by enforcerAddress function ogMint(uint256 quantity, Notice memory notice) external payable callerIsUser verifyPayment(quantity){ require(ogSaleOn, "First Edition Sale has not started yet!"); require(numberMinted(msg.sender) + quantity <= OG_MAX, "Max of 2 First Edition PrimeApes!"); bytes32 dig = keccak256(abi.encode(MintType.OG, msg.sender)); require(_isValidNotice(dig, notice), "Invalid notice!"); _safeMint(msg.sender, quantity, true); } //@dev Function that handles presale minting by verifying the notice //@dev signed by our enforcerAddress //@param quantity: # of tokens minted in the transaction //@param notice: notice signed by enforcerAddress function presaleMint(uint256 quantity, Notice memory notice) external payable callerIsUser verifyPayment(quantity){ require(presaleOn, "Presale has not started!"); require(numberMinted(msg.sender) - numberMintedFE(msg.sender) + quantity <= PRESALE_MAX, "Max of 5 PPAs during Presale Mint!"); require(totalSupply() + quantity <= MAX_SUPPLY, "Not enough NFTs left to mint!"); bytes32 dig = keccak256(abi.encode(MintType.Presale, msg.sender)); require(_isValidNotice(dig, notice), "Invalid Notice!"); _safeMint(msg.sender, quantity, false); } //@dev Public mint function //@param quantity: Number of NFTs to be minted by caller function mint(uint256 quantity) external payable verifyPayment(quantity) { require(saleOn, "Public sale has not started!"); require(quantity <= PUBLIC_MAX, "Max of 10 Pixel PrimeApes per transaction!"); require(totalSupply() + quantity <= MAX_SUPPLY, "Not enough NFTs left to mint!"); _safeMint(msg.sender, quantity, false); } //@dev Function to reserve NFTs for team members and giveaways function reserveMints() external onlyOwner { require(!reserved, "Team NFTs have already been reserved!"); require(totalSupply() + RESERVE_AMOUNT <= MAX_SUPPLY, "Not enough NFTs left to reserve!"); _safeMint(_teamAddress, RESERVE_AMOUNT, false); reserved = true; } //@dev: Functions to flip the sale checks function flipOGSale() external virtual onlyOwner { ogSaleOn = !ogSaleOn; } function flipPresale() external virtual onlyOwner { presaleOn = !presaleOn; } function flipSale() external virtual onlyOwner { saleOn = !saleOn; } //@dev: Function that withdraws funds - split to team address and PPA Vault function withdrawFunds() external onlyOwner nonReentrant { uint256 balance = address(this).balance; (bool sent, ) = payable(_vaultAddress).call{value: ((balance*30)/100)}(""); require(sent, "Failed to transfer to vault!"); (bool sent_team, ) = payable(_teamAddress).call{value: ((balance*70)/100)}(""); require(sent_team, "Failed to transfer to team!"); } //@dev: metadata URI and metadata functions string private _baseTokenURI; string private _contractURI = "https://gateway.pinata.cloud/ipfs/QmeHpGwiJFDp4T8S74dqpZcekWMq6NxqSkQSLzjMrmJgGW/contract-metadata.json"; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function contractURI() public view returns (string memory) { return _contractURI; } function setBaseURI(string calldata baseURI) external onlyOwner { require(!metadataIsFrozen, "Metadata is frozen and cannot be changed!"); _baseTokenURI = baseURI; } function setContractURI(string memory new_contractURI) external onlyOwner { _contractURI = new_contractURI; } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function numberMintedFE(address owner) public view returns (uint256) { return _numberMintedFE(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } function freezeMetadata() external onlyOwner { require(!metadataIsFrozen, "Metadata is already frozen!"); metadataIsFrozen = true; } function lowerSupply(uint256 new_supply) external onlyOwner { require(!finalSupply, "Max supply cannot be changed!"); require(new_supply < MAX_SUPPLY, "New supply must be lower than current max!"); MAX_SUPPLY = new_supply; } function finalizeSupply() external onlyOwner { require(!finalSupply, "Max supply is already finalized!"); finalSupply = true; } function setTeamAddress(address new_address) external onlyOwner { _teamAddress = new_address; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. //Keeps track of OG mints uint64 numberMintedFE; uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev See {IERC721Enumerable-totalSupply}. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** *Returns the number of first edition tokens minted by 'owner' */ function _numberMintedFE(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMintedFE); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity, bool first_ed) internal { _safeMint(to, quantity, '', first_ed); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data, bool first_ed ) internal { _mint(to, quantity, _data, true, first_ed); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe, bool first_ed ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); if(first_ed){ _addressData[to].numberMintedFE += uint64(quantity); } _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"enforcerAddress_","type":"address"},{"internalType":"address","name":"vaultAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalSupply","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipOGSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_supply","type":"uint256"}],"name":"lowerSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataIsFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMintedFE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct PixelPrimeApes.Notice","name":"notice","type":"tuple"}],"name":"ogMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ogSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct PixelPrimeApes.Notice","name":"notice","type":"tuple"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"saleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"string","name":"new_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"new_address","type":"address"}],"name":"setTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
612710600a55600b80546001600160d01b031916797141bf3f75ae1994ea7493dfb4724f0969c2369a000000000000179055610160604052606760c081815290620033b960e03980516200005c91600d916020909101906200017d565b503480156200006a57600080fd5b5060405162003420380380620034208339810160408190526200008d9162000240565b604080518082018252600f81526e506978656c205072696d654170657360881b60208083019182528351808501909452600384526250504160e81b908401528151919291620000df916002916200017d565b508051620000f59060039060208401906200017d565b5050600080555062000107336200012b565b60016009556001600160601b0319606092831b8116608052911b1660a052620002b4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200018b9062000277565b90600052602060002090601f016020900481019282620001af5760008555620001fa565b82601f10620001ca57805160ff1916838001178555620001fa565b82800160010185558215620001fa579182015b82811115620001fa578251825591602001919060010190620001dd565b50620002089291506200020c565b5090565b5b808211156200020857600081556001016200020d565b80516001600160a01b03811681146200023b57600080fd5b919050565b6000806040838503121562000253578182fd5b6200025e8362000223565b91506200026e6020840162000223565b90509250929050565b600181811c908216806200028c57607f821691505b60208210811415620002ae57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c6130d9620002e06000396000610c1b015260006123de01526130d96000f3fe6080604052600436106103075760003560e01c80639231ab2a1161019a578063c87b56dd116100e1578063e985e9c51161008a578063faaee99a11610064578063faaee99a14610852578063fe60d12c1461086c578063ff5926101461088d57600080fd5b8063e985e9c5146107d4578063f2fde38b1461081d578063f6e0b7041461083d57600080fd5b8063d598135e116100bb578063d598135e1461078a578063dc33e6811461079f578063e8a3d485146107bf57600080fd5b8063c87b56dd14610733578063cf880fea14610753578063d111515d1461077557600080fd5b8063ae08649c11610143578063b88d4fde1161011d578063b88d4fde146106e0578063c6a7c78114610700578063c71538161461071357600080fd5b8063ae08649c146106a3578063af9b192e146106b8578063b3faa702146106cd57600080fd5b8063a0712d6811610174578063a0712d681461065b578063a22cb4651461066e578063a335de901461068e57600080fd5b80639231ab2a146105cf578063938e3d7b1461062657806395d89b411461064657600080fd5b806332cb6b0c1161025e578063715018a6116102075780637d0ba640116101e15780637d0ba640146105815780638d859f3e146105965780638da5cb5b146105b157600080fd5b8063715018a614610537578063773ef1cf1461054c5780637ba5e6211461056c57600080fd5b80636352211e116102385780636352211e146104d75780636690864e146104f757806370a082311461051757600080fd5b806332cb6b0c1461048157806342842e0e1461049757806355f804b3146104b757600080fd5b806318160ddd116102c057806323b872dd1161029a57806323b872dd1461042957806324600fc3146104495780632baabbf71461045e57600080fd5b806318160ddd146103d25780631ad874b4146103f55780631af5e8611461041457600080fd5b806306fdde03116102f157806306fdde0314610358578063081812fc1461037a578063095ea7b3146103b257600080fd5b8062acf3481461030c57806301ffc9a714610323575b600080fd5b34801561031857600080fd5b506103216108ad565b005b34801561032f57600080fd5b5061034361033e366004612cc7565b610917565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b5061036d6109b4565b60405161034f9190612f20565b34801561038657600080fd5b5061039a610395366004612db2565b610a46565b6040516001600160a01b03909116815260200161034f565b3480156103be57600080fd5b506103216103cd366004612c9e565b610aa3565b3480156103de57600080fd5b50600154600054035b60405190815260200161034f565b34801561040157600080fd5b50600b5461034390610100900460ff1681565b34801561042057600080fd5b506103e7600a81565b34801561043557600080fd5b50610321610444366004612bb0565b610b63565b34801561045557600080fd5b50610321610b6e565b34801561046a57600080fd5b50600b546103439065010000000000900460ff1681565b34801561048d57600080fd5b506103e7600a5481565b3480156104a357600080fd5b506103216104b2366004612bb0565b610db0565b3480156104c357600080fd5b506103216104d2366004612cff565b610dcb565b3480156104e357600080fd5b5061039a6104f2366004612db2565b610ea0565b34801561050357600080fd5b50610321610512366004612b64565b610eb2565b34801561052357600080fd5b506103e7610532366004612b64565b610f3e565b34801561054357600080fd5b50610321610fa6565b34801561055857600080fd5b50600b546103439062010000900460ff1681565b34801561057857600080fd5b50610321610ffa565b34801561058d57600080fd5b50610321611061565b3480156105a257600080fd5b506103e766c3663566a5800081565b3480156105bd57600080fd5b506008546001600160a01b031661039a565b3480156105db57600080fd5b506105ef6105ea366004612db2565b6110bd565b6040805182516001600160a01b0316815260208084015167ffffffffffffffff16908201529181015115159082015260600161034f565b34801561063257600080fd5b50610321610641366004612d6c565b6110e3565b34801561065257600080fd5b5061036d611142565b610321610669366004612db2565b611151565b34801561067a57600080fd5b50610321610689366004612c64565b6112f6565b34801561069a57600080fd5b506103216113a5565b3480156106af57600080fd5b506103e7600281565b3480156106c457600080fd5b506103e760c881565b6103216106db366004612dca565b61150f565b3480156106ec57600080fd5b506103216106fb366004612beb565b6117b2565b61032161070e366004612dca565b6117fd565b34801561071f57600080fd5b5061032161072e366004612db2565b611a3e565b34801561073f57600080fd5b5061036d61074e366004612db2565b611b5e565b34801561075f57600080fd5b50600b5461034390640100000000900460ff1681565b34801561078157600080fd5b50610321611bfc565b34801561079657600080fd5b506103e7600581565b3480156107ab57600080fd5b506103e76107ba366004612b64565b611cb6565b3480156107cb57600080fd5b5061036d611cc1565b3480156107e057600080fd5b506103436107ef366004612b7e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561082957600080fd5b50610321610838366004612b64565b611cd0565b34801561084957600080fd5b50610321611da0565b34801561085e57600080fd5b50600b546103439060ff1681565b34801561087857600080fd5b50600b54610343906301000000900460ff1681565b34801561089957600080fd5b506103e76108a8366004612b64565b611e5d565b6008546001600160a01b031633146108fa5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064015b60405180910390fd5b600b805461ff001981166101009182900460ff1615909102179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061097a57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109ae57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600280546109c390612fc1565b80601f01602080910402602001604051908101604052809291908181526020018280546109ef90612fc1565b8015610a3c5780601f10610a1157610100808354040283529160200191610a3c565b820191906000526020600020905b815481529060010190602001808311610a1f57829003601f168201915b5050505050905090565b6000610a5182611e68565b610a87576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610aae82610ea0565b9050806001600160a01b0316836001600160a01b03161415610afc576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610b1c5750610b1a81336107ef565b155b15610b53576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e838383611e93565b505050565b610b5e838383611efc565b6008546001600160a01b03163314610bb65760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b60026009541415610c095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f1565b60026009554760006001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166064610c4884601e612f5f565b610c529190612f4b565b604051600081818185875af1925050503d8060008114610c8e576040519150601f19603f3d011682016040523d82523d6000602084013e610c93565b606091505b5050905080610ce45760405162461bcd60e51b815260206004820152601c60248201527f4661696c656420746f207472616e7366657220746f207661756c74210000000060448201526064016108f1565b600b54600090660100000000000090046001600160a01b03166064610d0a856046612f5f565b610d149190612f4b565b604051600081818185875af1925050503d8060008114610d50576040519150601f19603f3d011682016040523d82523d6000602084013e610d55565b606091505b5050905080610da65760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f207472616e7366657220746f207465616d21000000000060448201526064016108f1565b5050600160095550565b610b5e838383604051806020016040528060008152506117b2565b6008546001600160a01b03163314610e135760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b54640100000000900460ff1615610e945760405162461bcd60e51b815260206004820152602960248201527f4d657461646174612069732066726f7a656e20616e642063616e6e6f7420626560448201527f206368616e67656421000000000000000000000000000000000000000000000060648201526084016108f1565b610b5e600c83836129c5565b6000610eab8261215d565b5192915050565b6008546001600160a01b03163314610efa5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b80546001600160a01b039092166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff909216919091179055565b60006001600160a01b038216610f80576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610fee5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b610ff86000612292565b565b6008546001600160a01b031633146110425760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b031633146110a95760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b805460ff19811660ff90911615179055565b60408051606081018252600080825260208201819052918101919091526109ae8261215d565b6008546001600160a01b0316331461112b5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b805161113e90600d906020840190612a49565b5050565b6060600380546109c390612fc1565b806111638166c3663566a58000612f5f565b3410156111b25760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f2073656e64206d6f7265204554482100000000000060448201526064016108f1565b600b5462010000900460ff1661120a5760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c6520686173206e6f742073746172746564210000000060448201526064016108f1565b600a8211156112815760405162461bcd60e51b815260206004820152602a60248201527f4d6178206f6620313020506978656c205072696d65417065732070657220747260448201527f616e73616374696f6e210000000000000000000000000000000000000000000060648201526084016108f1565b600a54826112926001546000540390565b61129c9190612f33565b11156112ea5760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f756768204e465473206c65667420746f206d696e742100000060448201526064016108f1565b61113e338360006122f1565b6001600160a01b038216331415611339576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146113ed5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b546301000000900460ff161561146d5760405162461bcd60e51b815260206004820152602560248201527f5465616d204e465473206861766520616c7265616479206265656e207265736560448201527f727665642100000000000000000000000000000000000000000000000000000060648201526084016108f1565b600a5460c861147f6001546000540390565b6114899190612f33565b11156114d75760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f756768204e465473206c65667420746f20726573657276652160448201526064016108f1565b600b546114fa90660100000000000090046001600160a01b031660c860006122f1565b600b805463ff00000019166301000000179055565b32331461155e5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206d75737420626520616e20454f41210000000000000000000060448201526064016108f1565b816115708166c3663566a58000612f5f565b3410156115bf5760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f2073656e64206d6f7265204554482100000000000060448201526064016108f1565b600b54610100900460ff166116165760405162461bcd60e51b815260206004820152601860248201527f50726573616c6520686173206e6f74207374617274656421000000000000000060448201526064016108f1565b60058361162233611e5d565b61162b33611cb6565b6116359190612f7e565b61163f9190612f33565b11156116b35760405162461bcd60e51b815260206004820152602260248201527f4d6178206f662035205050417320647572696e672050726573616c65204d696e60448201527f742100000000000000000000000000000000000000000000000000000000000060648201526084016108f1565b600a54836116c46001546000540390565b6116ce9190612f33565b111561171c5760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f756768204e465473206c65667420746f206d696e742100000060448201526064016108f1565b6000600133604051602001611732929190612ee6565b604051602081830303815290604052805190602001209050611754818461230c565b6117a05760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204e6f7469636521000000000000000000000000000000000060448201526064016108f1565b6117ac338560006122f1565b50505050565b6117bd848484611efc565b6001600160a01b0383163b151580156117df57506117dd8484848461241a565b155b156117ac576040516368d2bf6b60e11b815260040160405180910390fd5b32331461184c5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206d75737420626520616e20454f41210000000000000000000060448201526064016108f1565b8161185e8166c3663566a58000612f5f565b3410156118ad5760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f2073656e64206d6f7265204554482100000000000060448201526064016108f1565b600b5460ff166119255760405162461bcd60e51b815260206004820152602760248201527f46697273742045646974696f6e2053616c6520686173206e6f7420737461727460448201527f656420796574210000000000000000000000000000000000000000000000000060648201526084016108f1565b60028361193133611cb6565b61193b9190612f33565b11156119af5760405162461bcd60e51b815260206004820152602160248201527f4d6178206f6620322046697273742045646974696f6e205072696d654170657360448201527f210000000000000000000000000000000000000000000000000000000000000060648201526084016108f1565b600080336040516020016119c4929190612ee6565b6040516020818303038152906040528051906020012090506119e6818461230c565b611a325760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206e6f7469636521000000000000000000000000000000000060448201526064016108f1565b6117ac338560016122f1565b6008546001600160a01b03163314611a865760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b5465010000000000900460ff1615611ae25760405162461bcd60e51b815260206004820152601d60248201527f4d617820737570706c792063616e6e6f74206265206368616e6765642100000060448201526064016108f1565b600a548110611b595760405162461bcd60e51b815260206004820152602a60248201527f4e657720737570706c79206d757374206265206c6f776572207468616e20637560448201527f7272656e74206d6178210000000000000000000000000000000000000000000060648201526084016108f1565b600a55565b6060611b6982611e68565b611b9f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ba9612512565b9050805160001415611bca5760405180602001604052806000815250611bf5565b80611bd484612521565b604051602001611be5929190612e7b565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314611c445760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b54640100000000900460ff1615611c9f5760405162461bcd60e51b815260206004820152601b60248201527f4d6574616461746120697320616c72656164792066726f7a656e21000000000060448201526064016108f1565b600b805464ff000000001916640100000000179055565b60006109ae8261266f565b6060600d80546109c390612fc1565b6008546001600160a01b03163314611d185760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b6001600160a01b038116611d945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108f1565b611d9d81612292565b50565b6008546001600160a01b03163314611de85760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b5465010000000000900460ff1615611e445760405162461bcd60e51b815260206004820181905260248201527f4d617820737570706c7920697320616c72656164792066696e616c697a65642160448201526064016108f1565b600b805465ff0000000000191665010000000000179055565b60006109ae826126ca565b60008054821080156109ae575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f078261215d565b80519091506000906001600160a01b0316336001600160a01b03161480611f3557508151611f3590336107ef565b80611f50575033611f4584610a46565b6001600160a01b0316145b905080611f89576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611fd8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612018576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120286000848460000151611e93565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661211457600054811015612114578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528160005481101561226057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061225e5780516001600160a01b0316156121f4579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612259579392505050565b6121f4565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b5e8383604051806020016040528060008152508461272d565b60008060018484604001518560000151866020015160405160008152602001604052604051612357949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015612379573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123dc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20496e76616c6964207369676e6174757265000000000000000060448201526064016108f1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161491505092915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061244f903390899088908890600401612eaa565b602060405180830381600087803b15801561246957600080fd5b505af1925050508015612499575060408051601f3d908101601f1916820190925261249691810190612ce3565b60015b6124f4573d8080156124c7576040519150601f19603f3d011682016040523d82523d6000602084013e6124cc565b606091505b5080516124ec576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c80546109c390612fc1565b60608161256157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561258b578061257581612ffc565b91506125849050600a83612f4b565b9150612565565b60008167ffffffffffffffff8111156125b457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125de576020820181803683370190505b5090505b841561250a576125f3600183612f7e565b9150612600600a86613017565b61260b906030612f33565b60f81b81838151811061262e57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612668600a86612f4b565b94506125e2565b60006001600160a01b038216612698576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205468010000000000000000900467ffffffffffffffff1690565b60006001600160a01b0382166126f3576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b6117ac8484846001856000546001600160a01b038616612779576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846127b0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038616600090815260056020526040902080546801000000000000000067ffffffffffffffff8083168901811667ffffffffffffffff198416811783900482168a019091169091027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216171790558115612895576001600160a01b0386166000908152600560205260409020805467ffffffffffffffff70010000000000000000000000000000000080830482168901909116027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff9091161790555b6000818152600460205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b03891617179055808581018480156128ea57506001600160a01b0388163b15155b15612973575b60405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461293b600089848060010195508961241a565b612958576040516368d2bf6b60e11b815260040160405180910390fd5b808214156128f057826000541461296e57600080fd5b6129b9565b5b6040516001830192906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612974575b50600055505050505050565b8280546129d190612fc1565b90600052602060002090601f0160209004810192826129f35760008555612a39565b82601f10612a0c5782800160ff19823516178555612a39565b82800160010185558215612a39579182015b82811115612a39578235825591602001919060010190612a1e565b50612a45929150612abd565b5090565b828054612a5590612fc1565b90600052602060002090601f016020900481019282612a775760008555612a39565b82601f10612a9057805160ff1916838001178555612a39565b82800160010185558215612a39579182015b82811115612a39578251825591602001919060010190612aa2565b5b80821115612a455760008155600101612abe565b600067ffffffffffffffff80841115612aed57612aed613057565b604051601f8501601f19908116603f01168101908282118183101715612b1557612b15613057565b81604052809350858152868686011115612b2e57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612b5f57600080fd5b919050565b600060208284031215612b75578081fd5b611bf582612b48565b60008060408385031215612b90578081fd5b612b9983612b48565b9150612ba760208401612b48565b90509250929050565b600080600060608486031215612bc4578081fd5b612bcd84612b48565b9250612bdb60208501612b48565b9150604084013590509250925092565b60008060008060808587031215612c00578081fd5b612c0985612b48565b9350612c1760208601612b48565b925060408501359150606085013567ffffffffffffffff811115612c39578182fd5b8501601f81018713612c49578182fd5b612c5887823560208401612ad2565b91505092959194509250565b60008060408385031215612c76578182fd5b612c7f83612b48565b915060208301358015158114612c93578182fd5b809150509250929050565b60008060408385031215612cb0578182fd5b612cb983612b48565b946020939093013593505050565b600060208284031215612cd8578081fd5b8135611bf58161306d565b600060208284031215612cf4578081fd5b8151611bf58161306d565b60008060208385031215612d11578182fd5b823567ffffffffffffffff80821115612d28578384fd5b818501915085601f830112612d3b578384fd5b813581811115612d49578485fd5b866020828501011115612d5a578485fd5b60209290920196919550909350505050565b600060208284031215612d7d578081fd5b813567ffffffffffffffff811115612d93578182fd5b8201601f81018413612da3578182fd5b61250a84823560208401612ad2565b600060208284031215612dc3578081fd5b5035919050565b6000808284036080811215612ddd578182fd5b833592506060601f1982011215612df2578182fd5b506040516060810181811067ffffffffffffffff82111715612e1657612e16613057565b80604052506020840135815260408401356020820152606084013560ff81168114612e3f578283fd5b6040820152919491935090915050565b60008151808452612e67816020860160208601612f95565b601f01601f19169290920160200192915050565b60008351612e8d818460208801612f95565b835190830190612ea1818360208801612f95565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612edc6080830184612e4f565b9695505050505050565b6040810160028410612f0857634e487b7160e01b600052602160045260246000fd5b9281526001600160a01b039190911660209091015290565b602081526000611bf56020830184612e4f565b60008219821115612f4657612f4661302b565b500190565b600082612f5a57612f5a613041565b500490565b6000816000190483118215151615612f7957612f7961302b565b500290565b600082821015612f9057612f9061302b565b500390565b60005b83811015612fb0578181015183820152602001612f98565b838111156117ac5750506000910152565b600181811c90821680612fd557607f821691505b60208210811415612ff657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130105761301061302b565b5060010190565b60008261302657613026613041565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611d9d57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122089769f42a1f964f8ec98d1efc36009a229ffc90fc48c2386e3a4a835e6ea100d64736f6c6343000804003368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6548704777694a4644703454385337346471705a63656b574d71364e7871536b51534c7a6a4d726d4a6747572f636f6e74726163742d6d657461646174612e6a736f6e000000000000000000000000574a21f35c9b949836379d78bf77e8e6f11a72e3000000000000000000000000a0e5b41d6c4fdd99a56506433a240862d9b319d4
Deployed Bytecode
0x6080604052600436106103075760003560e01c80639231ab2a1161019a578063c87b56dd116100e1578063e985e9c51161008a578063faaee99a11610064578063faaee99a14610852578063fe60d12c1461086c578063ff5926101461088d57600080fd5b8063e985e9c5146107d4578063f2fde38b1461081d578063f6e0b7041461083d57600080fd5b8063d598135e116100bb578063d598135e1461078a578063dc33e6811461079f578063e8a3d485146107bf57600080fd5b8063c87b56dd14610733578063cf880fea14610753578063d111515d1461077557600080fd5b8063ae08649c11610143578063b88d4fde1161011d578063b88d4fde146106e0578063c6a7c78114610700578063c71538161461071357600080fd5b8063ae08649c146106a3578063af9b192e146106b8578063b3faa702146106cd57600080fd5b8063a0712d6811610174578063a0712d681461065b578063a22cb4651461066e578063a335de901461068e57600080fd5b80639231ab2a146105cf578063938e3d7b1461062657806395d89b411461064657600080fd5b806332cb6b0c1161025e578063715018a6116102075780637d0ba640116101e15780637d0ba640146105815780638d859f3e146105965780638da5cb5b146105b157600080fd5b8063715018a614610537578063773ef1cf1461054c5780637ba5e6211461056c57600080fd5b80636352211e116102385780636352211e146104d75780636690864e146104f757806370a082311461051757600080fd5b806332cb6b0c1461048157806342842e0e1461049757806355f804b3146104b757600080fd5b806318160ddd116102c057806323b872dd1161029a57806323b872dd1461042957806324600fc3146104495780632baabbf71461045e57600080fd5b806318160ddd146103d25780631ad874b4146103f55780631af5e8611461041457600080fd5b806306fdde03116102f157806306fdde0314610358578063081812fc1461037a578063095ea7b3146103b257600080fd5b8062acf3481461030c57806301ffc9a714610323575b600080fd5b34801561031857600080fd5b506103216108ad565b005b34801561032f57600080fd5b5061034361033e366004612cc7565b610917565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b5061036d6109b4565b60405161034f9190612f20565b34801561038657600080fd5b5061039a610395366004612db2565b610a46565b6040516001600160a01b03909116815260200161034f565b3480156103be57600080fd5b506103216103cd366004612c9e565b610aa3565b3480156103de57600080fd5b50600154600054035b60405190815260200161034f565b34801561040157600080fd5b50600b5461034390610100900460ff1681565b34801561042057600080fd5b506103e7600a81565b34801561043557600080fd5b50610321610444366004612bb0565b610b63565b34801561045557600080fd5b50610321610b6e565b34801561046a57600080fd5b50600b546103439065010000000000900460ff1681565b34801561048d57600080fd5b506103e7600a5481565b3480156104a357600080fd5b506103216104b2366004612bb0565b610db0565b3480156104c357600080fd5b506103216104d2366004612cff565b610dcb565b3480156104e357600080fd5b5061039a6104f2366004612db2565b610ea0565b34801561050357600080fd5b50610321610512366004612b64565b610eb2565b34801561052357600080fd5b506103e7610532366004612b64565b610f3e565b34801561054357600080fd5b50610321610fa6565b34801561055857600080fd5b50600b546103439062010000900460ff1681565b34801561057857600080fd5b50610321610ffa565b34801561058d57600080fd5b50610321611061565b3480156105a257600080fd5b506103e766c3663566a5800081565b3480156105bd57600080fd5b506008546001600160a01b031661039a565b3480156105db57600080fd5b506105ef6105ea366004612db2565b6110bd565b6040805182516001600160a01b0316815260208084015167ffffffffffffffff16908201529181015115159082015260600161034f565b34801561063257600080fd5b50610321610641366004612d6c565b6110e3565b34801561065257600080fd5b5061036d611142565b610321610669366004612db2565b611151565b34801561067a57600080fd5b50610321610689366004612c64565b6112f6565b34801561069a57600080fd5b506103216113a5565b3480156106af57600080fd5b506103e7600281565b3480156106c457600080fd5b506103e760c881565b6103216106db366004612dca565b61150f565b3480156106ec57600080fd5b506103216106fb366004612beb565b6117b2565b61032161070e366004612dca565b6117fd565b34801561071f57600080fd5b5061032161072e366004612db2565b611a3e565b34801561073f57600080fd5b5061036d61074e366004612db2565b611b5e565b34801561075f57600080fd5b50600b5461034390640100000000900460ff1681565b34801561078157600080fd5b50610321611bfc565b34801561079657600080fd5b506103e7600581565b3480156107ab57600080fd5b506103e76107ba366004612b64565b611cb6565b3480156107cb57600080fd5b5061036d611cc1565b3480156107e057600080fd5b506103436107ef366004612b7e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561082957600080fd5b50610321610838366004612b64565b611cd0565b34801561084957600080fd5b50610321611da0565b34801561085e57600080fd5b50600b546103439060ff1681565b34801561087857600080fd5b50600b54610343906301000000900460ff1681565b34801561089957600080fd5b506103e76108a8366004612b64565b611e5d565b6008546001600160a01b031633146108fa5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064015b60405180910390fd5b600b805461ff001981166101009182900460ff1615909102179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061097a57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109ae57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600280546109c390612fc1565b80601f01602080910402602001604051908101604052809291908181526020018280546109ef90612fc1565b8015610a3c5780601f10610a1157610100808354040283529160200191610a3c565b820191906000526020600020905b815481529060010190602001808311610a1f57829003601f168201915b5050505050905090565b6000610a5182611e68565b610a87576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610aae82610ea0565b9050806001600160a01b0316836001600160a01b03161415610afc576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610b1c5750610b1a81336107ef565b155b15610b53576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e838383611e93565b505050565b610b5e838383611efc565b6008546001600160a01b03163314610bb65760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b60026009541415610c095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f1565b60026009554760006001600160a01b037f000000000000000000000000a0e5b41d6c4fdd99a56506433a240862d9b319d4166064610c4884601e612f5f565b610c529190612f4b565b604051600081818185875af1925050503d8060008114610c8e576040519150601f19603f3d011682016040523d82523d6000602084013e610c93565b606091505b5050905080610ce45760405162461bcd60e51b815260206004820152601c60248201527f4661696c656420746f207472616e7366657220746f207661756c74210000000060448201526064016108f1565b600b54600090660100000000000090046001600160a01b03166064610d0a856046612f5f565b610d149190612f4b565b604051600081818185875af1925050503d8060008114610d50576040519150601f19603f3d011682016040523d82523d6000602084013e610d55565b606091505b5050905080610da65760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f207472616e7366657220746f207465616d21000000000060448201526064016108f1565b5050600160095550565b610b5e838383604051806020016040528060008152506117b2565b6008546001600160a01b03163314610e135760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b54640100000000900460ff1615610e945760405162461bcd60e51b815260206004820152602960248201527f4d657461646174612069732066726f7a656e20616e642063616e6e6f7420626560448201527f206368616e67656421000000000000000000000000000000000000000000000060648201526084016108f1565b610b5e600c83836129c5565b6000610eab8261215d565b5192915050565b6008546001600160a01b03163314610efa5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b80546001600160a01b039092166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff909216919091179055565b60006001600160a01b038216610f80576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610fee5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b610ff86000612292565b565b6008546001600160a01b031633146110425760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b031633146110a95760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b805460ff19811660ff90911615179055565b60408051606081018252600080825260208201819052918101919091526109ae8261215d565b6008546001600160a01b0316331461112b5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b805161113e90600d906020840190612a49565b5050565b6060600380546109c390612fc1565b806111638166c3663566a58000612f5f565b3410156111b25760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f2073656e64206d6f7265204554482100000000000060448201526064016108f1565b600b5462010000900460ff1661120a5760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c6520686173206e6f742073746172746564210000000060448201526064016108f1565b600a8211156112815760405162461bcd60e51b815260206004820152602a60248201527f4d6178206f6620313020506978656c205072696d65417065732070657220747260448201527f616e73616374696f6e210000000000000000000000000000000000000000000060648201526084016108f1565b600a54826112926001546000540390565b61129c9190612f33565b11156112ea5760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f756768204e465473206c65667420746f206d696e742100000060448201526064016108f1565b61113e338360006122f1565b6001600160a01b038216331415611339576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146113ed5760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b546301000000900460ff161561146d5760405162461bcd60e51b815260206004820152602560248201527f5465616d204e465473206861766520616c7265616479206265656e207265736560448201527f727665642100000000000000000000000000000000000000000000000000000060648201526084016108f1565b600a5460c861147f6001546000540390565b6114899190612f33565b11156114d75760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f756768204e465473206c65667420746f20726573657276652160448201526064016108f1565b600b546114fa90660100000000000090046001600160a01b031660c860006122f1565b600b805463ff00000019166301000000179055565b32331461155e5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206d75737420626520616e20454f41210000000000000000000060448201526064016108f1565b816115708166c3663566a58000612f5f565b3410156115bf5760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f2073656e64206d6f7265204554482100000000000060448201526064016108f1565b600b54610100900460ff166116165760405162461bcd60e51b815260206004820152601860248201527f50726573616c6520686173206e6f74207374617274656421000000000000000060448201526064016108f1565b60058361162233611e5d565b61162b33611cb6565b6116359190612f7e565b61163f9190612f33565b11156116b35760405162461bcd60e51b815260206004820152602260248201527f4d6178206f662035205050417320647572696e672050726573616c65204d696e60448201527f742100000000000000000000000000000000000000000000000000000000000060648201526084016108f1565b600a54836116c46001546000540390565b6116ce9190612f33565b111561171c5760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f756768204e465473206c65667420746f206d696e742100000060448201526064016108f1565b6000600133604051602001611732929190612ee6565b604051602081830303815290604052805190602001209050611754818461230c565b6117a05760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204e6f7469636521000000000000000000000000000000000060448201526064016108f1565b6117ac338560006122f1565b50505050565b6117bd848484611efc565b6001600160a01b0383163b151580156117df57506117dd8484848461241a565b155b156117ac576040516368d2bf6b60e11b815260040160405180910390fd5b32331461184c5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206d75737420626520616e20454f41210000000000000000000060448201526064016108f1565b8161185e8166c3663566a58000612f5f565b3410156118ad5760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f2073656e64206d6f7265204554482100000000000060448201526064016108f1565b600b5460ff166119255760405162461bcd60e51b815260206004820152602760248201527f46697273742045646974696f6e2053616c6520686173206e6f7420737461727460448201527f656420796574210000000000000000000000000000000000000000000000000060648201526084016108f1565b60028361193133611cb6565b61193b9190612f33565b11156119af5760405162461bcd60e51b815260206004820152602160248201527f4d6178206f6620322046697273742045646974696f6e205072696d654170657360448201527f210000000000000000000000000000000000000000000000000000000000000060648201526084016108f1565b600080336040516020016119c4929190612ee6565b6040516020818303038152906040528051906020012090506119e6818461230c565b611a325760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206e6f7469636521000000000000000000000000000000000060448201526064016108f1565b6117ac338560016122f1565b6008546001600160a01b03163314611a865760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b5465010000000000900460ff1615611ae25760405162461bcd60e51b815260206004820152601d60248201527f4d617820737570706c792063616e6e6f74206265206368616e6765642100000060448201526064016108f1565b600a548110611b595760405162461bcd60e51b815260206004820152602a60248201527f4e657720737570706c79206d757374206265206c6f776572207468616e20637560448201527f7272656e74206d6178210000000000000000000000000000000000000000000060648201526084016108f1565b600a55565b6060611b6982611e68565b611b9f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ba9612512565b9050805160001415611bca5760405180602001604052806000815250611bf5565b80611bd484612521565b604051602001611be5929190612e7b565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314611c445760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b54640100000000900460ff1615611c9f5760405162461bcd60e51b815260206004820152601b60248201527f4d6574616461746120697320616c72656164792066726f7a656e21000000000060448201526064016108f1565b600b805464ff000000001916640100000000179055565b60006109ae8261266f565b6060600d80546109c390612fc1565b6008546001600160a01b03163314611d185760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b6001600160a01b038116611d945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108f1565b611d9d81612292565b50565b6008546001600160a01b03163314611de85760405162461bcd60e51b8152602060048201819052602482015260008051602061308483398151915260448201526064016108f1565b600b5465010000000000900460ff1615611e445760405162461bcd60e51b815260206004820181905260248201527f4d617820737570706c7920697320616c72656164792066696e616c697a65642160448201526064016108f1565b600b805465ff0000000000191665010000000000179055565b60006109ae826126ca565b60008054821080156109ae575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f078261215d565b80519091506000906001600160a01b0316336001600160a01b03161480611f3557508151611f3590336107ef565b80611f50575033611f4584610a46565b6001600160a01b0316145b905080611f89576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611fd8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612018576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120286000848460000151611e93565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661211457600054811015612114578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528160005481101561226057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061225e5780516001600160a01b0316156121f4579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612259579392505050565b6121f4565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b5e8383604051806020016040528060008152508461272d565b60008060018484604001518560000151866020015160405160008152602001604052604051612357949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015612379573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123dc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20496e76616c6964207369676e6174757265000000000000000060448201526064016108f1565b7f000000000000000000000000574a21f35c9b949836379d78bf77e8e6f11a72e36001600160a01b0316816001600160a01b03161491505092915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061244f903390899088908890600401612eaa565b602060405180830381600087803b15801561246957600080fd5b505af1925050508015612499575060408051601f3d908101601f1916820190925261249691810190612ce3565b60015b6124f4573d8080156124c7576040519150601f19603f3d011682016040523d82523d6000602084013e6124cc565b606091505b5080516124ec576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c80546109c390612fc1565b60608161256157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561258b578061257581612ffc565b91506125849050600a83612f4b565b9150612565565b60008167ffffffffffffffff8111156125b457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125de576020820181803683370190505b5090505b841561250a576125f3600183612f7e565b9150612600600a86613017565b61260b906030612f33565b60f81b81838151811061262e57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612668600a86612f4b565b94506125e2565b60006001600160a01b038216612698576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205468010000000000000000900467ffffffffffffffff1690565b60006001600160a01b0382166126f3576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b6117ac8484846001856000546001600160a01b038616612779576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846127b0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038616600090815260056020526040902080546801000000000000000067ffffffffffffffff8083168901811667ffffffffffffffff198416811783900482168a019091169091027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216171790558115612895576001600160a01b0386166000908152600560205260409020805467ffffffffffffffff70010000000000000000000000000000000080830482168901909116027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff9091161790555b6000818152600460205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b03891617179055808581018480156128ea57506001600160a01b0388163b15155b15612973575b60405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461293b600089848060010195508961241a565b612958576040516368d2bf6b60e11b815260040160405180910390fd5b808214156128f057826000541461296e57600080fd5b6129b9565b5b6040516001830192906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612974575b50600055505050505050565b8280546129d190612fc1565b90600052602060002090601f0160209004810192826129f35760008555612a39565b82601f10612a0c5782800160ff19823516178555612a39565b82800160010185558215612a39579182015b82811115612a39578235825591602001919060010190612a1e565b50612a45929150612abd565b5090565b828054612a5590612fc1565b90600052602060002090601f016020900481019282612a775760008555612a39565b82601f10612a9057805160ff1916838001178555612a39565b82800160010185558215612a39579182015b82811115612a39578251825591602001919060010190612aa2565b5b80821115612a455760008155600101612abe565b600067ffffffffffffffff80841115612aed57612aed613057565b604051601f8501601f19908116603f01168101908282118183101715612b1557612b15613057565b81604052809350858152868686011115612b2e57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612b5f57600080fd5b919050565b600060208284031215612b75578081fd5b611bf582612b48565b60008060408385031215612b90578081fd5b612b9983612b48565b9150612ba760208401612b48565b90509250929050565b600080600060608486031215612bc4578081fd5b612bcd84612b48565b9250612bdb60208501612b48565b9150604084013590509250925092565b60008060008060808587031215612c00578081fd5b612c0985612b48565b9350612c1760208601612b48565b925060408501359150606085013567ffffffffffffffff811115612c39578182fd5b8501601f81018713612c49578182fd5b612c5887823560208401612ad2565b91505092959194509250565b60008060408385031215612c76578182fd5b612c7f83612b48565b915060208301358015158114612c93578182fd5b809150509250929050565b60008060408385031215612cb0578182fd5b612cb983612b48565b946020939093013593505050565b600060208284031215612cd8578081fd5b8135611bf58161306d565b600060208284031215612cf4578081fd5b8151611bf58161306d565b60008060208385031215612d11578182fd5b823567ffffffffffffffff80821115612d28578384fd5b818501915085601f830112612d3b578384fd5b813581811115612d49578485fd5b866020828501011115612d5a578485fd5b60209290920196919550909350505050565b600060208284031215612d7d578081fd5b813567ffffffffffffffff811115612d93578182fd5b8201601f81018413612da3578182fd5b61250a84823560208401612ad2565b600060208284031215612dc3578081fd5b5035919050565b6000808284036080811215612ddd578182fd5b833592506060601f1982011215612df2578182fd5b506040516060810181811067ffffffffffffffff82111715612e1657612e16613057565b80604052506020840135815260408401356020820152606084013560ff81168114612e3f578283fd5b6040820152919491935090915050565b60008151808452612e67816020860160208601612f95565b601f01601f19169290920160200192915050565b60008351612e8d818460208801612f95565b835190830190612ea1818360208801612f95565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612edc6080830184612e4f565b9695505050505050565b6040810160028410612f0857634e487b7160e01b600052602160045260246000fd5b9281526001600160a01b039190911660209091015290565b602081526000611bf56020830184612e4f565b60008219821115612f4657612f4661302b565b500190565b600082612f5a57612f5a613041565b500490565b6000816000190483118215151615612f7957612f7961302b565b500290565b600082821015612f9057612f9061302b565b500390565b60005b83811015612fb0578181015183820152602001612f98565b838111156117ac5750506000910152565b600181811c90821680612fd557607f821691505b60208210811415612ff657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130105761301061302b565b5060010190565b60008261302657613026613041565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611d9d57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122089769f42a1f964f8ec98d1efc36009a229ffc90fc48c2386e3a4a835e6ea100d64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000574a21f35c9b949836379d78bf77e8e6f11a72e3000000000000000000000000a0e5b41d6c4fdd99a56506433a240862d9b319d4
-----Decoded View---------------
Arg [0] : enforcerAddress_ (address): 0x574a21F35c9b949836379D78BF77e8e6f11a72E3
Arg [1] : vaultAddress_ (address): 0xa0E5b41D6C4FDD99a56506433a240862D9b319D4
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000574a21f35c9b949836379d78bf77e8e6f11a72e3
Arg [1] : 000000000000000000000000a0e5b41d6c4fdd99a56506433a240862d9b319d4
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.