ERC-721
Overview
Max Total Supply
47 UP
Holders
12
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 UPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
UndeadPirates
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); 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; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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 IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _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 `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev 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 Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary 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 { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // 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. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-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 { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_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 && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @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 for each mint. */ function _mint(address to, uint256 quantity) 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` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev 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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @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 {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } // File: contracts/UndeadPirates.sol pragma solidity ^0.8.14; contract UndeadPirates is Ownable, ERC721A { string public notRevealedUri; string public baseExtension = ".json"; uint256 public PRICE = 0.03 ether; uint256 public MAX_SUPPLY = 5000; uint256 public _publicCounter; uint256 public maxMintAmount = 5; uint256 public _airdropCounter; uint256 public saleMode = 1; // 1- sale 0- off bool public _revealed = false; mapping(address => uint256) public _publicsaleMintCounter; constructor( string memory name, string memory symbol, string memory _notRevealedUri ) ERC721A(name, symbol) { setNotRevealedURI(_notRevealedUri); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721AMetadata: URI query for nonexistent token" ); if(_revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, Strings.toString(tokenId), baseExtension)) : ""; } function setMode(uint256 mode) public onlyOwner{ saleMode = mode; } function getSaleMode() public view returns (uint256){ return saleMode; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { MAX_SUPPLY = _maxSupply; } function setCost(uint256 _newCost) public onlyOwner { PRICE = _newCost; } function setMaxMintAmount(uint256 _newQty) public onlyOwner { maxMintAmount = _newQty; } function bulkAirdrop(address[] calldata _to, uint256 quantity) public onlyOwner{ require( totalSupply() + quantity <= MAX_SUPPLY, "Exceed max supply" ); for (uint256 i = 0; i < _to.length; i++) { _safeMint(_to[i], quantity); _airdropCounter = _airdropCounter + quantity; } } // metadata URI string private _baseTokenURI; function setBaseURI(string calldata baseURI) public onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function reveal(bool _state) public onlyOwner { _revealed = _state; } function publicSaleMint(uint256 quantity) public payable { require(quantity > 0, "Must mint more than 0 tokens"); require(saleMode == 1, "Sale has not begun yet"); require(totalSupply() + quantity <= MAX_SUPPLY, "reached max supply"); require( _publicsaleMintCounter[msg.sender] + quantity <= maxMintAmount, "exceeds max per address" ); require(PRICE * quantity == msg.value, "Incorrect funds"); _safeMint(msg.sender, quantity); _publicCounter = _publicCounter + quantity; _publicsaleMintCounter[msg.sender] = _publicsaleMintCounter[msg.sender] + quantity; } function getBalance() public view returns (uint256) { return address(this).balance; } function _startTokenId() internal virtual override view returns (uint256) { return 1; } function withdraw() public payable onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "No ether left to withdraw"); payable(msg.sender).transfer(balance); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_notRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_airdropCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_publicsaleMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"bulkAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newQty","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mode","type":"uint256"}],"name":"setMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","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":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600a908051906020019062000051929190620002fc565b50666a94d74f430000600b55611388600c556005600e5560016010556000601160006101000a81548160ff0219169083151502179055503480156200009557600080fd5b5060405162003db438038062003db48339818101604052810190620000bb919062000549565b8282620000dd620000d16200014160201b60201c565b6200014960201b60201c565b8160039080519060200190620000f5929190620002fc565b5080600490805190602001906200010e929190620002fc565b506200011f6200020d60201b60201c565b600181905550505062000138816200021660201b60201c565b505050620006e9565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001905090565b620002266200024260201b60201c565b80600990805190602001906200023e929190620002fc565b5050565b620002526200014160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000278620002d360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620002d1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002c89062000663565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8280546200030a90620006b4565b90600052602060002090601f0160209004810192826200032e57600085556200037a565b82601f106200034957805160ff19168380011785556200037a565b828001600101855582156200037a579182015b82811115620003795782518255916020019190600101906200035c565b5b5090506200038991906200038d565b5090565b5b80821115620003a85760008160009055506001016200038e565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200041582620003ca565b810181811067ffffffffffffffff82111715620004375762000436620003db565b5b80604052505050565b60006200044c620003ac565b90506200045a82826200040a565b919050565b600067ffffffffffffffff8211156200047d576200047c620003db565b5b6200048882620003ca565b9050602081019050919050565b60005b83811015620004b557808201518184015260208101905062000498565b83811115620004c5576000848401525b50505050565b6000620004e2620004dc846200045f565b62000440565b905082815260208101848484011115620005015762000500620003c5565b5b6200050e84828562000495565b509392505050565b600082601f8301126200052e576200052d620003c0565b5b815162000540848260208601620004cb565b91505092915050565b600080600060608486031215620005655762000564620003b6565b5b600084015167ffffffffffffffff811115620005865762000585620003bb565b5b620005948682870162000516565b935050602084015167ffffffffffffffff811115620005b857620005b7620003bb565b5b620005c68682870162000516565b925050604084015167ffffffffffffffff811115620005ea57620005e9620003bb565b5b620005f88682870162000516565b9150509250925092565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200064b60208362000602565b9150620006588262000613565b602082019050919050565b600060208201905081810360008301526200067e816200063c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006cd57607f821691505b602082108103620006e357620006e262000685565b5b50919050565b6136bb80620006f96000396000f3fe6080604052600436106102305760003560e01c80636f8b44b01161012e578063a22cb465116100ab578063d72dd3b41161006f578063d72dd3b4146107ff578063e985e9c514610828578063f2c4ce1e14610865578063f2fde38b1461088e578063f74b5636146108b757610230565b8063a22cb46514610729578063b3ab66b014610752578063b88d4fde1461076e578063c668286214610797578063c87b56dd146107c257610230565b80638d859f3e116100f25780638d859f3e146106425780638da5cb5b1461066d578063940cd05b1461069857806395d89b41146106c15780639b257d73146106ec57610230565b80636f8b44b01461056f57806370a0823114610598578063715018a6146105d5578063715a609d146105ec57806389f3b22d1461061757610230565b806318160ddd116101bc57806342842e0e1161018057806342842e0e1461048c57806344a0d68a146104b557806355f804b3146104de5780636352211e146105075780636ebeac851461054457610230565b806318160ddd146103d8578063239c70ae1461040357806323b872dd1461042e57806332cb6b0c146104575780633ccfd60b1461048257610230565b8063088a4ed011610203578063088a4ed014610305578063095ea7b31461032e5780630d43ebc2146103575780630deed6a61461038257806312065fe0146103ad57610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063081c8c44146102da575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906125d1565b6108e0565b6040516102699190612619565b60405180910390f35b34801561027e57600080fd5b50610287610972565b60405161029491906126cd565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190612725565b610a04565b6040516102d19190612793565b60405180910390f35b3480156102e657600080fd5b506102ef610a80565b6040516102fc91906126cd565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190612725565b610b0e565b005b34801561033a57600080fd5b50610355600480360381019061035091906127da565b610b20565b005b34801561036357600080fd5b5061036c610c61565b6040516103799190612829565b60405180910390f35b34801561038e57600080fd5b50610397610c6b565b6040516103a49190612829565b60405180910390f35b3480156103b957600080fd5b506103c2610c71565b6040516103cf9190612829565b60405180910390f35b3480156103e457600080fd5b506103ed610c79565b6040516103fa9190612829565b60405180910390f35b34801561040f57600080fd5b50610418610c90565b6040516104259190612829565b60405180910390f35b34801561043a57600080fd5b5061045560048036038101906104509190612844565b610c96565b005b34801561046357600080fd5b5061046c610fb8565b6040516104799190612829565b60405180910390f35b61048a610fbe565b005b34801561049857600080fd5b506104b360048036038101906104ae9190612844565b611058565b005b3480156104c157600080fd5b506104dc60048036038101906104d79190612725565b611078565b005b3480156104ea57600080fd5b50610505600480360381019061050091906128fc565b61108a565b005b34801561051357600080fd5b5061052e60048036038101906105299190612725565b6110a8565b60405161053b9190612793565b60405180910390f35b34801561055057600080fd5b506105596110ba565b6040516105669190612619565b60405180910390f35b34801561057b57600080fd5b5061059660048036038101906105919190612725565b6110cd565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190612949565b6110df565b6040516105cc9190612829565b60405180910390f35b3480156105e157600080fd5b506105ea611197565b005b3480156105f857600080fd5b506106016111ab565b60405161060e9190612829565b60405180910390f35b34801561062357600080fd5b5061062c6111b1565b6040516106399190612829565b60405180910390f35b34801561064e57600080fd5b506106576111b7565b6040516106649190612829565b60405180910390f35b34801561067957600080fd5b506106826111bd565b60405161068f9190612793565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba91906129a2565b6111e6565b005b3480156106cd57600080fd5b506106d661120b565b6040516106e391906126cd565b60405180910390f35b3480156106f857600080fd5b50610713600480360381019061070e9190612949565b61129d565b6040516107209190612829565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b91906129cf565b6112b5565b005b61076c60048036038101906107679190612725565b61142c565b005b34801561077a57600080fd5b5061079560048036038101906107909190612b3f565b611698565b005b3480156107a357600080fd5b506107ac61170b565b6040516107b991906126cd565b60405180910390f35b3480156107ce57600080fd5b506107e960048036038101906107e49190612725565b611799565b6040516107f691906126cd565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190612725565b6118f1565b005b34801561083457600080fd5b5061084f600480360381019061084a9190612bc2565b611903565b60405161085c9190612619565b60405180910390f35b34801561087157600080fd5b5061088c60048036038101906108879190612ca3565b611997565b005b34801561089a57600080fd5b506108b560048036038101906108b09190612949565b6119b9565b005b3480156108c357600080fd5b506108de60048036038101906108d99190612d42565b611a3c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461098190612dd1565b80601f01602080910402602001604051908101604052809291908181526020018280546109ad90612dd1565b80156109fa5780601f106109cf576101008083540402835291602001916109fa565b820191906000526020600020905b8154815290600101906020018083116109dd57829003601f168201915b5050505050905090565b6000610a0f82611b07565b610a45576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60098054610a8d90612dd1565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab990612dd1565b8015610b065780601f10610adb57610100808354040283529160200191610b06565b820191906000526020600020905b815481529060010190602001808311610ae957829003601f168201915b505050505081565b610b16611b66565b80600e8190555050565b6000610b2b826110a8565b90508073ffffffffffffffffffffffffffffffffffffffff16610b4c611be4565b73ffffffffffffffffffffffffffffffffffffffff1614610baf57610b7881610b73611be4565b611903565b610bae576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000601054905090565b60105481565b600047905090565b6000610c83611bec565b6002546001540303905090565b600e5481565b6000610ca182611bf5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d08576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d1484611cc1565b91509150610d2a8187610d25611be4565b611ce3565b610d7657610d3f86610d3a611be4565b611903565b610d75576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610ddc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610de98686866001611d27565b8015610df457600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ec285610e9e888887611d2d565b7c020000000000000000000000000000000000000000000000000000000017611d55565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610f485760006001850190506000600560008381526020019081526020016000205403610f46576001548114610f45578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fb08686866001611d80565b505050505050565b600c5481565b610fc6611b66565b60004790506000811161100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590612e4e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611054573d6000803e3d6000fd5b5050565b61107383838360405180602001604052806000815250611698565b505050565b611080611b66565b80600b8190555050565b611092611b66565b8181601391906110a392919061243c565b505050565b60006110b382611bf5565b9050919050565b601160009054906101000a900460ff1681565b6110d5611b66565b80600c8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611146576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61119f611b66565b6111a96000611d86565b565b600d5481565b600f5481565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6111ee611b66565b80601160006101000a81548160ff02191690831515021790555050565b60606004805461121a90612dd1565b80601f016020809104026020016040519081016040528092919081815260200182805461124690612dd1565b80156112935780601f1061126857610100808354040283529160200191611293565b820191906000526020600020905b81548152906001019060200180831161127657829003601f168201915b5050505050905090565b60126020528060005260406000206000915090505481565b6112bd611be4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611321576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806008600061132e611be4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166113db611be4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114209190612619565b60405180910390a35050565b6000811161146f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146690612eba565b60405180910390fd5b6001601054146114b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ab90612f26565b60405180910390fd5b600c54816114c0610c79565b6114ca9190612f75565b111561150b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150290613017565b60405180910390fd5b600e5481601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115599190612f75565b111561159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190613083565b60405180910390fd5b3481600b546115a991906130a3565b146115e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e090613149565b60405180910390fd5b6115f33382611e4a565b80600d546116019190612f75565b600d8190555080601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116529190612f75565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6116a3848484610c96565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611705576116ce84848484611e68565b611704576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600a805461171890612dd1565b80601f016020809104026020016040519081016040528092919081815260200182805461174490612dd1565b80156117915780601f1061176657610100808354040283529160200191611791565b820191906000526020600020905b81548152906001019060200180831161177457829003601f168201915b505050505081565b60606117a482611b07565b6117e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117da906131db565b60405180910390fd5b60001515601160009054906101000a900460ff16151503611890576009805461180b90612dd1565b80601f016020809104026020016040519081016040528092919081815260200182805461183790612dd1565b80156118845780601f1061185957610100808354040283529160200191611884565b820191906000526020600020905b81548152906001019060200180831161186757829003601f168201915b505050505090506118ec565b600061189a611fb8565b905060008151116118ba57604051806020016040528060008152506118e8565b806118c48461204a565b600a6040516020016118d8939291906132cb565b6040516020818303038152906040525b9150505b919050565b6118f9611b66565b8060108190555050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61199f611b66565b80600990805190602001906119b59291906124c2565b5050565b6119c1611b66565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a279061336e565b60405180910390fd5b611a3981611d86565b50565b611a44611b66565b600c5481611a50610c79565b611a5a9190612f75565b1115611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a92906133da565b60405180910390fd5b60005b83839050811015611b0157611ada848483818110611abf57611abe6133fa565b5b9050602002016020810190611ad49190612949565b83611e4a565b81600f54611ae89190612f75565b600f819055508080611af990613429565b915050611a9e565b50505050565b600081611b12611bec565b11158015611b21575060015482105b8015611b5f575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b611b6e6121aa565b73ffffffffffffffffffffffffffffffffffffffff16611b8c6111bd565b73ffffffffffffffffffffffffffffffffffffffff1614611be2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd9906134bd565b60405180910390fd5b565b600033905090565b60006001905090565b60008082905080611c04611bec565b11611c8a57600154811015611c895760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611c87575b60008103611c7d576005600083600190039350838152602001908152602001600020549050611c53565b8092505050611cbc565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600790508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611d448686846121b2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e648282604051806020016040528060008152506121bb565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e8e611be4565b8786866040518563ffffffff1660e01b8152600401611eb09493929190613532565b6020604051808303816000875af1925050508015611eec57506040513d601f19601f82011682018060405250810190611ee99190613593565b60015b611f65573d8060008114611f1c576040519150601f19603f3d011682016040523d82523d6000602084013e611f21565b606091505b506000815103611f5d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060138054611fc790612dd1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff390612dd1565b80156120405780601f1061201557610100808354040283529160200191612040565b820191906000526020600020905b81548152906001019060200180831161202357829003601f168201915b5050505050905090565b606060008203612091576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121a5565b600082905060005b600082146120c35780806120ac90613429565b915050600a826120bc91906135ef565b9150612099565b60008167ffffffffffffffff8111156120df576120de612a14565b5b6040519080825280601f01601f1916602001820160405280156121115781602001600182028036833780820191505090505b5090505b6000851461219e5760018261212a9190613620565b9150600a856121399190613654565b60306121459190612f75565b60f81b81838151811061215b5761215a6133fa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561219791906135ef565b9450612115565b8093505050505b919050565b600033905090565b60009392505050565b6121c58383612259565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122545760006001549050600083820390505b6122066000868380600101945086611e68565b61223c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106121f357816001541461225157600080fd5b50505b505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036122c6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612300576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61230d6000848385611d27565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612384836123756000866000611d2d565b61237e8561242c565b17611d55565b60056000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106123a8578060018190555050506124276000848385611d80565b505050565b60006001821460e11b9050919050565b82805461244890612dd1565b90600052602060002090601f01602090048101928261246a57600085556124b1565b82601f1061248357803560ff19168380011785556124b1565b828001600101855582156124b1579182015b828111156124b0578235825591602001919060010190612495565b5b5090506124be9190612548565b5090565b8280546124ce90612dd1565b90600052602060002090601f0160209004810192826124f05760008555612537565b82601f1061250957805160ff1916838001178555612537565b82800160010185558215612537579182015b8281111561253657825182559160200191906001019061251b565b5b5090506125449190612548565b5090565b5b80821115612561576000816000905550600101612549565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125ae81612579565b81146125b957600080fd5b50565b6000813590506125cb816125a5565b92915050565b6000602082840312156125e7576125e661256f565b5b60006125f5848285016125bc565b91505092915050565b60008115159050919050565b612613816125fe565b82525050565b600060208201905061262e600083018461260a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561266e578082015181840152602081019050612653565b8381111561267d576000848401525b50505050565b6000601f19601f8301169050919050565b600061269f82612634565b6126a9818561263f565b93506126b9818560208601612650565b6126c281612683565b840191505092915050565b600060208201905081810360008301526126e78184612694565b905092915050565b6000819050919050565b612702816126ef565b811461270d57600080fd5b50565b60008135905061271f816126f9565b92915050565b60006020828403121561273b5761273a61256f565b5b600061274984828501612710565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061277d82612752565b9050919050565b61278d81612772565b82525050565b60006020820190506127a86000830184612784565b92915050565b6127b781612772565b81146127c257600080fd5b50565b6000813590506127d4816127ae565b92915050565b600080604083850312156127f1576127f061256f565b5b60006127ff858286016127c5565b925050602061281085828601612710565b9150509250929050565b612823816126ef565b82525050565b600060208201905061283e600083018461281a565b92915050565b60008060006060848603121561285d5761285c61256f565b5b600061286b868287016127c5565b935050602061287c868287016127c5565b925050604061288d86828701612710565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126128bc576128bb612897565b5b8235905067ffffffffffffffff8111156128d9576128d861289c565b5b6020830191508360018202830111156128f5576128f46128a1565b5b9250929050565b600080602083850312156129135761291261256f565b5b600083013567ffffffffffffffff81111561293157612930612574565b5b61293d858286016128a6565b92509250509250929050565b60006020828403121561295f5761295e61256f565b5b600061296d848285016127c5565b91505092915050565b61297f816125fe565b811461298a57600080fd5b50565b60008135905061299c81612976565b92915050565b6000602082840312156129b8576129b761256f565b5b60006129c68482850161298d565b91505092915050565b600080604083850312156129e6576129e561256f565b5b60006129f4858286016127c5565b9250506020612a058582860161298d565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a4c82612683565b810181811067ffffffffffffffff82111715612a6b57612a6a612a14565b5b80604052505050565b6000612a7e612565565b9050612a8a8282612a43565b919050565b600067ffffffffffffffff821115612aaa57612aa9612a14565b5b612ab382612683565b9050602081019050919050565b82818337600083830152505050565b6000612ae2612add84612a8f565b612a74565b905082815260208101848484011115612afe57612afd612a0f565b5b612b09848285612ac0565b509392505050565b600082601f830112612b2657612b25612897565b5b8135612b36848260208601612acf565b91505092915050565b60008060008060808587031215612b5957612b5861256f565b5b6000612b67878288016127c5565b9450506020612b78878288016127c5565b9350506040612b8987828801612710565b925050606085013567ffffffffffffffff811115612baa57612ba9612574565b5b612bb687828801612b11565b91505092959194509250565b60008060408385031215612bd957612bd861256f565b5b6000612be7858286016127c5565b9250506020612bf8858286016127c5565b9150509250929050565b600067ffffffffffffffff821115612c1d57612c1c612a14565b5b612c2682612683565b9050602081019050919050565b6000612c46612c4184612c02565b612a74565b905082815260208101848484011115612c6257612c61612a0f565b5b612c6d848285612ac0565b509392505050565b600082601f830112612c8a57612c89612897565b5b8135612c9a848260208601612c33565b91505092915050565b600060208284031215612cb957612cb861256f565b5b600082013567ffffffffffffffff811115612cd757612cd6612574565b5b612ce384828501612c75565b91505092915050565b60008083601f840112612d0257612d01612897565b5b8235905067ffffffffffffffff811115612d1f57612d1e61289c565b5b602083019150836020820283011115612d3b57612d3a6128a1565b5b9250929050565b600080600060408486031215612d5b57612d5a61256f565b5b600084013567ffffffffffffffff811115612d7957612d78612574565b5b612d8586828701612cec565b93509350506020612d9886828701612710565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612de957607f821691505b602082108103612dfc57612dfb612da2565b5b50919050565b7f4e6f206574686572206c65667420746f20776974686472617700000000000000600082015250565b6000612e3860198361263f565b9150612e4382612e02565b602082019050919050565b60006020820190508181036000830152612e6781612e2b565b9050919050565b7f4d757374206d696e74206d6f7265207468616e203020746f6b656e7300000000600082015250565b6000612ea4601c8361263f565b9150612eaf82612e6e565b602082019050919050565b60006020820190508181036000830152612ed381612e97565b9050919050565b7f53616c6520686173206e6f7420626567756e2079657400000000000000000000600082015250565b6000612f1060168361263f565b9150612f1b82612eda565b602082019050919050565b60006020820190508181036000830152612f3f81612f03565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612f80826126ef565b9150612f8b836126ef565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612fc057612fbf612f46565b5b828201905092915050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b600061300160128361263f565b915061300c82612fcb565b602082019050919050565b6000602082019050818103600083015261303081612ff4565b9050919050565b7f65786365656473206d6178207065722061646472657373000000000000000000600082015250565b600061306d60178361263f565b915061307882613037565b602082019050919050565b6000602082019050818103600083015261309c81613060565b9050919050565b60006130ae826126ef565b91506130b9836126ef565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156130f2576130f1612f46565b5b828202905092915050565b7f496e636f72726563742066756e64730000000000000000000000000000000000600082015250565b6000613133600f8361263f565b915061313e826130fd565b602082019050919050565b6000602082019050818103600083015261316281613126565b9050919050565b7f455243373231414d657461646174613a2055524920717565727920666f72206e60008201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b60006131c560308361263f565b91506131d082613169565b604082019050919050565b600060208201905081810360008301526131f4816131b8565b9050919050565b600081905092915050565b600061321182612634565b61321b81856131fb565b935061322b818560208601612650565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461325981612dd1565b61326381866131fb565b9450600182166000811461327e576001811461328f576132c2565b60ff198316865281860193506132c2565b61329885613237565b60005b838110156132ba5781548189015260018201915060208101905061329b565b838801955050505b50505092915050565b60006132d78286613206565b91506132e38285613206565b91506132ef828461324c565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061335860268361263f565b9150613363826132fc565b604082019050919050565b600060208201905081810360008301526133878161334b565b9050919050565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b60006133c460118361263f565b91506133cf8261338e565b602082019050919050565b600060208201905081810360008301526133f3816133b7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613434826126ef565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361346657613465612f46565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006134a760208361263f565b91506134b282613471565b602082019050919050565b600060208201905081810360008301526134d68161349a565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613504826134dd565b61350e81856134e8565b935061351e818560208601612650565b61352781612683565b840191505092915050565b60006080820190506135476000830187612784565b6135546020830186612784565b613561604083018561281a565b818103606083015261357381846134f9565b905095945050505050565b60008151905061358d816125a5565b92915050565b6000602082840312156135a9576135a861256f565b5b60006135b78482850161357e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006135fa826126ef565b9150613605836126ef565b925082613615576136146135c0565b5b828204905092915050565b600061362b826126ef565b9150613636836126ef565b92508282101561364957613648612f46565b5b828203905092915050565b600061365f826126ef565b915061366a836126ef565b92508261367a576136796135c0565b5b82820690509291505056fea2646970667358221220dc73dc6c94d8dfb21e1abc060c9ac61b9506110d243e7ee1ae477405a2ea2b9564736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d556e64656164506972617465730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f756e64656164706972617465736e66742e636f6d2f6e6f6e2d72657665616c2f72657665616c2e6a736f6e00000000000000000000000000
Deployed Bytecode
0x6080604052600436106102305760003560e01c80636f8b44b01161012e578063a22cb465116100ab578063d72dd3b41161006f578063d72dd3b4146107ff578063e985e9c514610828578063f2c4ce1e14610865578063f2fde38b1461088e578063f74b5636146108b757610230565b8063a22cb46514610729578063b3ab66b014610752578063b88d4fde1461076e578063c668286214610797578063c87b56dd146107c257610230565b80638d859f3e116100f25780638d859f3e146106425780638da5cb5b1461066d578063940cd05b1461069857806395d89b41146106c15780639b257d73146106ec57610230565b80636f8b44b01461056f57806370a0823114610598578063715018a6146105d5578063715a609d146105ec57806389f3b22d1461061757610230565b806318160ddd116101bc57806342842e0e1161018057806342842e0e1461048c57806344a0d68a146104b557806355f804b3146104de5780636352211e146105075780636ebeac851461054457610230565b806318160ddd146103d8578063239c70ae1461040357806323b872dd1461042e57806332cb6b0c146104575780633ccfd60b1461048257610230565b8063088a4ed011610203578063088a4ed014610305578063095ea7b31461032e5780630d43ebc2146103575780630deed6a61461038257806312065fe0146103ad57610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063081c8c44146102da575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906125d1565b6108e0565b6040516102699190612619565b60405180910390f35b34801561027e57600080fd5b50610287610972565b60405161029491906126cd565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190612725565b610a04565b6040516102d19190612793565b60405180910390f35b3480156102e657600080fd5b506102ef610a80565b6040516102fc91906126cd565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190612725565b610b0e565b005b34801561033a57600080fd5b50610355600480360381019061035091906127da565b610b20565b005b34801561036357600080fd5b5061036c610c61565b6040516103799190612829565b60405180910390f35b34801561038e57600080fd5b50610397610c6b565b6040516103a49190612829565b60405180910390f35b3480156103b957600080fd5b506103c2610c71565b6040516103cf9190612829565b60405180910390f35b3480156103e457600080fd5b506103ed610c79565b6040516103fa9190612829565b60405180910390f35b34801561040f57600080fd5b50610418610c90565b6040516104259190612829565b60405180910390f35b34801561043a57600080fd5b5061045560048036038101906104509190612844565b610c96565b005b34801561046357600080fd5b5061046c610fb8565b6040516104799190612829565b60405180910390f35b61048a610fbe565b005b34801561049857600080fd5b506104b360048036038101906104ae9190612844565b611058565b005b3480156104c157600080fd5b506104dc60048036038101906104d79190612725565b611078565b005b3480156104ea57600080fd5b50610505600480360381019061050091906128fc565b61108a565b005b34801561051357600080fd5b5061052e60048036038101906105299190612725565b6110a8565b60405161053b9190612793565b60405180910390f35b34801561055057600080fd5b506105596110ba565b6040516105669190612619565b60405180910390f35b34801561057b57600080fd5b5061059660048036038101906105919190612725565b6110cd565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190612949565b6110df565b6040516105cc9190612829565b60405180910390f35b3480156105e157600080fd5b506105ea611197565b005b3480156105f857600080fd5b506106016111ab565b60405161060e9190612829565b60405180910390f35b34801561062357600080fd5b5061062c6111b1565b6040516106399190612829565b60405180910390f35b34801561064e57600080fd5b506106576111b7565b6040516106649190612829565b60405180910390f35b34801561067957600080fd5b506106826111bd565b60405161068f9190612793565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba91906129a2565b6111e6565b005b3480156106cd57600080fd5b506106d661120b565b6040516106e391906126cd565b60405180910390f35b3480156106f857600080fd5b50610713600480360381019061070e9190612949565b61129d565b6040516107209190612829565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b91906129cf565b6112b5565b005b61076c60048036038101906107679190612725565b61142c565b005b34801561077a57600080fd5b5061079560048036038101906107909190612b3f565b611698565b005b3480156107a357600080fd5b506107ac61170b565b6040516107b991906126cd565b60405180910390f35b3480156107ce57600080fd5b506107e960048036038101906107e49190612725565b611799565b6040516107f691906126cd565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190612725565b6118f1565b005b34801561083457600080fd5b5061084f600480360381019061084a9190612bc2565b611903565b60405161085c9190612619565b60405180910390f35b34801561087157600080fd5b5061088c60048036038101906108879190612ca3565b611997565b005b34801561089a57600080fd5b506108b560048036038101906108b09190612949565b6119b9565b005b3480156108c357600080fd5b506108de60048036038101906108d99190612d42565b611a3c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461098190612dd1565b80601f01602080910402602001604051908101604052809291908181526020018280546109ad90612dd1565b80156109fa5780601f106109cf576101008083540402835291602001916109fa565b820191906000526020600020905b8154815290600101906020018083116109dd57829003601f168201915b5050505050905090565b6000610a0f82611b07565b610a45576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60098054610a8d90612dd1565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab990612dd1565b8015610b065780601f10610adb57610100808354040283529160200191610b06565b820191906000526020600020905b815481529060010190602001808311610ae957829003601f168201915b505050505081565b610b16611b66565b80600e8190555050565b6000610b2b826110a8565b90508073ffffffffffffffffffffffffffffffffffffffff16610b4c611be4565b73ffffffffffffffffffffffffffffffffffffffff1614610baf57610b7881610b73611be4565b611903565b610bae576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000601054905090565b60105481565b600047905090565b6000610c83611bec565b6002546001540303905090565b600e5481565b6000610ca182611bf5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d08576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d1484611cc1565b91509150610d2a8187610d25611be4565b611ce3565b610d7657610d3f86610d3a611be4565b611903565b610d75576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610ddc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610de98686866001611d27565b8015610df457600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ec285610e9e888887611d2d565b7c020000000000000000000000000000000000000000000000000000000017611d55565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610f485760006001850190506000600560008381526020019081526020016000205403610f46576001548114610f45578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fb08686866001611d80565b505050505050565b600c5481565b610fc6611b66565b60004790506000811161100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590612e4e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611054573d6000803e3d6000fd5b5050565b61107383838360405180602001604052806000815250611698565b505050565b611080611b66565b80600b8190555050565b611092611b66565b8181601391906110a392919061243c565b505050565b60006110b382611bf5565b9050919050565b601160009054906101000a900460ff1681565b6110d5611b66565b80600c8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611146576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61119f611b66565b6111a96000611d86565b565b600d5481565b600f5481565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6111ee611b66565b80601160006101000a81548160ff02191690831515021790555050565b60606004805461121a90612dd1565b80601f016020809104026020016040519081016040528092919081815260200182805461124690612dd1565b80156112935780601f1061126857610100808354040283529160200191611293565b820191906000526020600020905b81548152906001019060200180831161127657829003601f168201915b5050505050905090565b60126020528060005260406000206000915090505481565b6112bd611be4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611321576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806008600061132e611be4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166113db611be4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114209190612619565b60405180910390a35050565b6000811161146f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146690612eba565b60405180910390fd5b6001601054146114b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ab90612f26565b60405180910390fd5b600c54816114c0610c79565b6114ca9190612f75565b111561150b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150290613017565b60405180910390fd5b600e5481601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115599190612f75565b111561159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190613083565b60405180910390fd5b3481600b546115a991906130a3565b146115e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e090613149565b60405180910390fd5b6115f33382611e4a565b80600d546116019190612f75565b600d8190555080601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116529190612f75565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6116a3848484610c96565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611705576116ce84848484611e68565b611704576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600a805461171890612dd1565b80601f016020809104026020016040519081016040528092919081815260200182805461174490612dd1565b80156117915780601f1061176657610100808354040283529160200191611791565b820191906000526020600020905b81548152906001019060200180831161177457829003601f168201915b505050505081565b60606117a482611b07565b6117e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117da906131db565b60405180910390fd5b60001515601160009054906101000a900460ff16151503611890576009805461180b90612dd1565b80601f016020809104026020016040519081016040528092919081815260200182805461183790612dd1565b80156118845780601f1061185957610100808354040283529160200191611884565b820191906000526020600020905b81548152906001019060200180831161186757829003601f168201915b505050505090506118ec565b600061189a611fb8565b905060008151116118ba57604051806020016040528060008152506118e8565b806118c48461204a565b600a6040516020016118d8939291906132cb565b6040516020818303038152906040525b9150505b919050565b6118f9611b66565b8060108190555050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61199f611b66565b80600990805190602001906119b59291906124c2565b5050565b6119c1611b66565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a279061336e565b60405180910390fd5b611a3981611d86565b50565b611a44611b66565b600c5481611a50610c79565b611a5a9190612f75565b1115611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a92906133da565b60405180910390fd5b60005b83839050811015611b0157611ada848483818110611abf57611abe6133fa565b5b9050602002016020810190611ad49190612949565b83611e4a565b81600f54611ae89190612f75565b600f819055508080611af990613429565b915050611a9e565b50505050565b600081611b12611bec565b11158015611b21575060015482105b8015611b5f575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b611b6e6121aa565b73ffffffffffffffffffffffffffffffffffffffff16611b8c6111bd565b73ffffffffffffffffffffffffffffffffffffffff1614611be2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd9906134bd565b60405180910390fd5b565b600033905090565b60006001905090565b60008082905080611c04611bec565b11611c8a57600154811015611c895760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611c87575b60008103611c7d576005600083600190039350838152602001908152602001600020549050611c53565b8092505050611cbc565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600790508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611d448686846121b2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e648282604051806020016040528060008152506121bb565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e8e611be4565b8786866040518563ffffffff1660e01b8152600401611eb09493929190613532565b6020604051808303816000875af1925050508015611eec57506040513d601f19601f82011682018060405250810190611ee99190613593565b60015b611f65573d8060008114611f1c576040519150601f19603f3d011682016040523d82523d6000602084013e611f21565b606091505b506000815103611f5d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060138054611fc790612dd1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff390612dd1565b80156120405780601f1061201557610100808354040283529160200191612040565b820191906000526020600020905b81548152906001019060200180831161202357829003601f168201915b5050505050905090565b606060008203612091576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121a5565b600082905060005b600082146120c35780806120ac90613429565b915050600a826120bc91906135ef565b9150612099565b60008167ffffffffffffffff8111156120df576120de612a14565b5b6040519080825280601f01601f1916602001820160405280156121115781602001600182028036833780820191505090505b5090505b6000851461219e5760018261212a9190613620565b9150600a856121399190613654565b60306121459190612f75565b60f81b81838151811061215b5761215a6133fa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561219791906135ef565b9450612115565b8093505050505b919050565b600033905090565b60009392505050565b6121c58383612259565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122545760006001549050600083820390505b6122066000868380600101945086611e68565b61223c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106121f357816001541461225157600080fd5b50505b505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036122c6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612300576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61230d6000848385611d27565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612384836123756000866000611d2d565b61237e8561242c565b17611d55565b60056000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106123a8578060018190555050506124276000848385611d80565b505050565b60006001821460e11b9050919050565b82805461244890612dd1565b90600052602060002090601f01602090048101928261246a57600085556124b1565b82601f1061248357803560ff19168380011785556124b1565b828001600101855582156124b1579182015b828111156124b0578235825591602001919060010190612495565b5b5090506124be9190612548565b5090565b8280546124ce90612dd1565b90600052602060002090601f0160209004810192826124f05760008555612537565b82601f1061250957805160ff1916838001178555612537565b82800160010185558215612537579182015b8281111561253657825182559160200191906001019061251b565b5b5090506125449190612548565b5090565b5b80821115612561576000816000905550600101612549565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125ae81612579565b81146125b957600080fd5b50565b6000813590506125cb816125a5565b92915050565b6000602082840312156125e7576125e661256f565b5b60006125f5848285016125bc565b91505092915050565b60008115159050919050565b612613816125fe565b82525050565b600060208201905061262e600083018461260a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561266e578082015181840152602081019050612653565b8381111561267d576000848401525b50505050565b6000601f19601f8301169050919050565b600061269f82612634565b6126a9818561263f565b93506126b9818560208601612650565b6126c281612683565b840191505092915050565b600060208201905081810360008301526126e78184612694565b905092915050565b6000819050919050565b612702816126ef565b811461270d57600080fd5b50565b60008135905061271f816126f9565b92915050565b60006020828403121561273b5761273a61256f565b5b600061274984828501612710565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061277d82612752565b9050919050565b61278d81612772565b82525050565b60006020820190506127a86000830184612784565b92915050565b6127b781612772565b81146127c257600080fd5b50565b6000813590506127d4816127ae565b92915050565b600080604083850312156127f1576127f061256f565b5b60006127ff858286016127c5565b925050602061281085828601612710565b9150509250929050565b612823816126ef565b82525050565b600060208201905061283e600083018461281a565b92915050565b60008060006060848603121561285d5761285c61256f565b5b600061286b868287016127c5565b935050602061287c868287016127c5565b925050604061288d86828701612710565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126128bc576128bb612897565b5b8235905067ffffffffffffffff8111156128d9576128d861289c565b5b6020830191508360018202830111156128f5576128f46128a1565b5b9250929050565b600080602083850312156129135761291261256f565b5b600083013567ffffffffffffffff81111561293157612930612574565b5b61293d858286016128a6565b92509250509250929050565b60006020828403121561295f5761295e61256f565b5b600061296d848285016127c5565b91505092915050565b61297f816125fe565b811461298a57600080fd5b50565b60008135905061299c81612976565b92915050565b6000602082840312156129b8576129b761256f565b5b60006129c68482850161298d565b91505092915050565b600080604083850312156129e6576129e561256f565b5b60006129f4858286016127c5565b9250506020612a058582860161298d565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a4c82612683565b810181811067ffffffffffffffff82111715612a6b57612a6a612a14565b5b80604052505050565b6000612a7e612565565b9050612a8a8282612a43565b919050565b600067ffffffffffffffff821115612aaa57612aa9612a14565b5b612ab382612683565b9050602081019050919050565b82818337600083830152505050565b6000612ae2612add84612a8f565b612a74565b905082815260208101848484011115612afe57612afd612a0f565b5b612b09848285612ac0565b509392505050565b600082601f830112612b2657612b25612897565b5b8135612b36848260208601612acf565b91505092915050565b60008060008060808587031215612b5957612b5861256f565b5b6000612b67878288016127c5565b9450506020612b78878288016127c5565b9350506040612b8987828801612710565b925050606085013567ffffffffffffffff811115612baa57612ba9612574565b5b612bb687828801612b11565b91505092959194509250565b60008060408385031215612bd957612bd861256f565b5b6000612be7858286016127c5565b9250506020612bf8858286016127c5565b9150509250929050565b600067ffffffffffffffff821115612c1d57612c1c612a14565b5b612c2682612683565b9050602081019050919050565b6000612c46612c4184612c02565b612a74565b905082815260208101848484011115612c6257612c61612a0f565b5b612c6d848285612ac0565b509392505050565b600082601f830112612c8a57612c89612897565b5b8135612c9a848260208601612c33565b91505092915050565b600060208284031215612cb957612cb861256f565b5b600082013567ffffffffffffffff811115612cd757612cd6612574565b5b612ce384828501612c75565b91505092915050565b60008083601f840112612d0257612d01612897565b5b8235905067ffffffffffffffff811115612d1f57612d1e61289c565b5b602083019150836020820283011115612d3b57612d3a6128a1565b5b9250929050565b600080600060408486031215612d5b57612d5a61256f565b5b600084013567ffffffffffffffff811115612d7957612d78612574565b5b612d8586828701612cec565b93509350506020612d9886828701612710565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612de957607f821691505b602082108103612dfc57612dfb612da2565b5b50919050565b7f4e6f206574686572206c65667420746f20776974686472617700000000000000600082015250565b6000612e3860198361263f565b9150612e4382612e02565b602082019050919050565b60006020820190508181036000830152612e6781612e2b565b9050919050565b7f4d757374206d696e74206d6f7265207468616e203020746f6b656e7300000000600082015250565b6000612ea4601c8361263f565b9150612eaf82612e6e565b602082019050919050565b60006020820190508181036000830152612ed381612e97565b9050919050565b7f53616c6520686173206e6f7420626567756e2079657400000000000000000000600082015250565b6000612f1060168361263f565b9150612f1b82612eda565b602082019050919050565b60006020820190508181036000830152612f3f81612f03565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612f80826126ef565b9150612f8b836126ef565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612fc057612fbf612f46565b5b828201905092915050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b600061300160128361263f565b915061300c82612fcb565b602082019050919050565b6000602082019050818103600083015261303081612ff4565b9050919050565b7f65786365656473206d6178207065722061646472657373000000000000000000600082015250565b600061306d60178361263f565b915061307882613037565b602082019050919050565b6000602082019050818103600083015261309c81613060565b9050919050565b60006130ae826126ef565b91506130b9836126ef565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156130f2576130f1612f46565b5b828202905092915050565b7f496e636f72726563742066756e64730000000000000000000000000000000000600082015250565b6000613133600f8361263f565b915061313e826130fd565b602082019050919050565b6000602082019050818103600083015261316281613126565b9050919050565b7f455243373231414d657461646174613a2055524920717565727920666f72206e60008201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b60006131c560308361263f565b91506131d082613169565b604082019050919050565b600060208201905081810360008301526131f4816131b8565b9050919050565b600081905092915050565b600061321182612634565b61321b81856131fb565b935061322b818560208601612650565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461325981612dd1565b61326381866131fb565b9450600182166000811461327e576001811461328f576132c2565b60ff198316865281860193506132c2565b61329885613237565b60005b838110156132ba5781548189015260018201915060208101905061329b565b838801955050505b50505092915050565b60006132d78286613206565b91506132e38285613206565b91506132ef828461324c565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061335860268361263f565b9150613363826132fc565b604082019050919050565b600060208201905081810360008301526133878161334b565b9050919050565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b60006133c460118361263f565b91506133cf8261338e565b602082019050919050565b600060208201905081810360008301526133f3816133b7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613434826126ef565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361346657613465612f46565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006134a760208361263f565b91506134b282613471565b602082019050919050565b600060208201905081810360008301526134d68161349a565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613504826134dd565b61350e81856134e8565b935061351e818560208601612650565b61352781612683565b840191505092915050565b60006080820190506135476000830187612784565b6135546020830186612784565b613561604083018561281a565b818103606083015261357381846134f9565b905095945050505050565b60008151905061358d816125a5565b92915050565b6000602082840312156135a9576135a861256f565b5b60006135b78482850161357e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006135fa826126ef565b9150613605836126ef565b925082613615576136146135c0565b5b828204905092915050565b600061362b826126ef565b9150613636836126ef565b92508282101561364957613648612f46565b5b828203905092915050565b600061365f826126ef565b915061366a836126ef565b92508261367a576136796135c0565b5b82820690509291505056fea2646970667358221220dc73dc6c94d8dfb21e1abc060c9ac61b9506110d243e7ee1ae477405a2ea2b9564736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d556e64656164506972617465730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f756e64656164706972617465736e66742e636f6d2f6e6f6e2d72657665616c2f72657665616c2e6a736f6e00000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): UndeadPirates
Arg [1] : symbol (string): UP
Arg [2] : _notRevealedUri (string): https://undeadpiratesnft.com/non-reveal/reveal.json
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 556e646561645069726174657300000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 5550000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [8] : 68747470733a2f2f756e64656164706972617465736e66742e636f6d2f6e6f6e
Arg [9] : 2d72657665616c2f72657665616c2e6a736f6e00000000000000000000000000
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.