Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,000 KKAT
Holders
1,217
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 KKATLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KookyKats
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract KookyKats is ERC721A, Ownable { using Strings for uint256; /// @dev KooKyKats NFT max supply uint256 public immutable MAX_SUPPLY; /// @dev KooKyKats NFT Royalty 2.5% uint256 public immutable ROYALTY; /// @dev TokenId of revealting tokenURI uint256 public revealURITokenId; /// @dev KooKyKats NFT Base Token URI string public baseURI; /// @dev KookyKats NFT placeholder token URI string public placeholderURI; /// @dev Royalty receiver address address public royaltyReceiver; /// @dev KooKyKats minter addresses mapping(address => bool) public minters; constructor( string memory _name, string memory _symbol, uint256 _maxSupply, uint256 _royalty ) ERC721A(_name, _symbol) { MAX_SUPPLY = _maxSupply; ROYALTY = _royalty; addMinter(_msgSender()); royaltyReceiver = _msgSender(); } // ----------------- EXTERNAL ----------------- /// @dev Add new minter function addMinter(address _minter) public onlyOwner { require(!minters[_minter], "Already added"); minters[_minter] = true; emit AddedMinter(_minter); } /// @dev Remove minter function removeMinter(address _minter) external onlyOwner { require(minters[_minter], "Not added yet"); minters[_minter] = false; emit RemovedMinter(_minter); } /// @dev Set base tokenURI function setBaseTokenURI(string memory _uri) external onlyOwner { baseURI = _uri; emit SetBaseTokenURI(_uri); } /// @dev Set placeholder tokenURI function setPlaceholderTokenURI(string memory _uri) external onlyOwner { placeholderURI = _uri; emit SetPlaceholderTokenURI(_uri); } /// @dev Set tokenID of revealing tokenURI function setRevealURITokenId(uint256 _tokenId) external onlyOwner { revealURITokenId = _tokenId; emit SetURIRevealTokenId(_tokenId); } /// @dev Set KooKyKats Royalty receiver function setRoyaltyReceiver(address _receiver) external onlyOwner { require(_receiver != address(0), "Invalid receiver address"); royaltyReceiver = _receiver; } /// @dev Mint KooKyKats function mint(address _who, uint256 _amount) external onlyMinter onlyUnderMaxSupply(_amount) { _safeMint(_who, _amount); } // ----------------- VIEW ----------------- /// @dev Set starting tokenId as 1 function _startTokenId() internal view virtual override returns (uint256) { return 1; } /// @dev Get Token URI function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { if (!_exists(_tokenId)) revert URIQueryForNonexistentToken(); string memory uri; if (revealURITokenId >= _tokenId) { uri = baseURI; } else { uri = placeholderURI; } return string(abi.encodePacked(uri, _tokenId.toString())); } /// @dev KooKyKats Royalty info function royaltyInfo(uint256, uint256 _salePrice) public view virtual returns (address, uint256) { uint256 royaltyAmount = (_salePrice * ROYALTY) / 10000; return (royaltyReceiver, royaltyAmount); } // ----------------- MODIFIER ----------------- modifier onlyMinter() { require(minters[_msgSender()], "Only minter"); _; } modifier onlyUnderMaxSupply(uint256 _amount) { require(totalSupply() + _amount <= MAX_SUPPLY, "Overflow Max Supply"); _; } // ----------------- EVENTS ----------------- event AddedMinter(address minter); event RemovedMinter(address minter); event SetBaseTokenURI(string baseURI); event SetPlaceholderTokenURI(string placeholderURI); event SetURIRevealTokenId(uint256 tokenId); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // 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 `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID 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 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual 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 virtual { 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; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ 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: [ERC165](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. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ 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 ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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 initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev 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); } /** * @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 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)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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 `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns 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)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 virtual { uint256 startTokenId = _currentIndex; 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 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _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 virtual { 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 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 virtual { _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 Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @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) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { 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 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 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; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @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 virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 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: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores 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 via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @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() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 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`, * 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, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` 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](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_royalty","type":"uint256"}],"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":false,"internalType":"address","name":"minter","type":"address"}],"name":"AddedMinter","type":"event"},{"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":false,"internalType":"address","name":"minter","type":"address"}],"name":"RemovedMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseTokenURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"placeholderURI","type":"string"}],"name":"SetPlaceholderTokenURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"SetURIRevealTokenId","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":"ROYALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_who","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealURITokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setPlaceholderTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setRevealURITokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setRoyaltyReceiver","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"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405162003a5d38038062003a5d833981810160405281019062000037919062000538565b8383816002908051906020019062000051929190620003f3565b5080600390805190602001906200006a929190620003f3565b506200007b6200012d60201b60201c565b6000819055505050620000a3620000976200013660201b60201c565b6200013e60201b60201c565b81608081815250508060a08181525050620000d3620000c76200013660201b60201c565b6200020460201b60201c565b620000e36200013660201b60201c565b600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050620008e7565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002146200033860201b60201c565b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615620002a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200029b9062000686565b60405180910390fd5b6001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f887003b0d91467e681b2ba1437748e2d1b6e9b0b1cb8be6541e6cdfc1b50eabc816040516200032d919062000647565b60405180910390a150565b620003486200013660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200036e620003c960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003c7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003be9062000664565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b82805462000401906200078c565b90600052602060002090601f01602090048101928262000425576000855562000471565b82601f106200044057805160ff191683800117855562000471565b8280016001018555821562000471579182015b828111156200047057825182559160200191906001019062000453565b5b50905062000480919062000484565b5090565b5b808211156200049f57600081600090555060010162000485565b5090565b6000620004ba620004b484620006d1565b620006a8565b905082815260208101848484011115620004d957620004d86200085b565b5b620004e684828562000756565b509392505050565b600082601f83011262000506576200050562000856565b5b815162000518848260208601620004a3565b91505092915050565b6000815190506200053281620008cd565b92915050565b6000806000806080858703121562000555576200055462000865565b5b600085015167ffffffffffffffff81111562000576576200057562000860565b5b6200058487828801620004ee565b945050602085015167ffffffffffffffff811115620005a857620005a762000860565b5b620005b687828801620004ee565b9350506040620005c98782880162000521565b9250506060620005dc8782880162000521565b91505092959194509250565b620005f38162000718565b82525050565b60006200060860208362000707565b915062000615826200087b565b602082019050919050565b60006200062f600d8362000707565b91506200063c82620008a4565b602082019050919050565b60006020820190506200065e6000830184620005e8565b92915050565b600060208201905081810360008301526200067f81620005f9565b9050919050565b60006020820190508181036000830152620006a18162000620565b9050919050565b6000620006b4620006c7565b9050620006c28282620007c2565b919050565b6000604051905090565b600067ffffffffffffffff821115620006ef57620006ee62000827565b5b620006fa826200086a565b9050602081019050919050565b600082825260208201905092915050565b600062000725826200072c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200077657808201518184015260208101905062000759565b8381111562000786576000848401525b50505050565b60006002820490506001821680620007a557607f821691505b60208210811415620007bc57620007bb620007f8565b5b50919050565b620007cd826200086a565b810181811067ffffffffffffffff82111715620007ef57620007ee62000827565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416c726561647920616464656400000000000000000000000000000000000000600082015250565b620008d8816200074c565b8114620008e457600080fd5b50565b60805160a0516131426200091b60003960008181610c9e0152611225015260008181610e850152610f3d01526131426000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f5780639fbc8713116100a2578063c87b56dd11610071578063c87b56dd1461056c578063e985e9c51461059c578063f2fde38b146105cc578063f46eccc4146105e8576101f0565b80639fbc8713146104f8578063a22cb46514610516578063b88d4fde14610532578063c7dac97b1461054e576101f0565b80638da5cb5b116100de5780638da5cb5b146104845780638dc251e3146104a257806395d89b41146104be578063983b2d56146104dc576101f0565b8063715018a6146104225780637313cba91461042c5780638063853b1461044a5780638704a20814610466576101f0565b806330176e131161018757806342842e0e1161015657806342842e0e146103885780636352211e146103a45780636c0360eb146103d457806370a08231146103f2576101f0565b806330176e13146103165780633092afd51461033257806332cb6b0c1461034e57806340c10f191461036c576101f0565b806312cdee59116101c357806312cdee591461028f57806318160ddd146102ab57806323b872dd146102c95780632a55205a146102e5576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190612628565b610618565b60405161021c91906129b1565b60405180910390f35b61022d6106aa565b60405161023a91906129cc565b60405180910390f35b61025d600480360381019061025891906126cb565b61073c565b60405161026a9190612921565b60405180910390f35b61028d600480360381019061028891906125e8565b6107bb565b005b6102a960048036038101906102a49190612682565b6108ff565b005b6102b3610958565b6040516102c09190612ace565b60405180910390f35b6102e360048036038101906102de91906124d2565b61096f565b005b6102ff60048036038101906102fa91906126f8565b610c94565b60405161030d929190612988565b60405180910390f35b610330600480360381019061032b9190612682565b610d04565b005b61034c60048036038101906103479190612465565b610d5d565b005b610356610e83565b6040516103639190612ace565b60405180910390f35b610386600480360381019061038191906125e8565b610ea7565b005b6103a2600480360381019061039d91906124d2565b610fbf565b005b6103be60048036038101906103b991906126cb565b610fdf565b6040516103cb9190612921565b60405180910390f35b6103dc610ff1565b6040516103e991906129cc565b60405180910390f35b61040c60048036038101906104079190612465565b61107f565b6040516104199190612ace565b60405180910390f35b61042a611138565b005b61043461114c565b60405161044191906129cc565b60405180910390f35b610464600480360381019061045f91906126cb565b6111da565b005b61046e611223565b60405161047b9190612ace565b60405180910390f35b61048c611247565b6040516104999190612921565b60405180910390f35b6104bc60048036038101906104b79190612465565b611271565b005b6104c661132d565b6040516104d391906129cc565b60405180910390f35b6104f660048036038101906104f19190612465565b6113bf565b005b6105006114e6565b60405161050d9190612921565b60405180910390f35b610530600480360381019061052b91906125a8565b61150c565b005b61054c60048036038101906105479190612525565b611684565b005b6105566116f7565b6040516105639190612ace565b60405180910390f35b610586600480360381019061058191906126cb565b6116fd565b60405161059391906129cc565b60405180910390f35b6105b660048036038101906105b19190612492565b61189b565b6040516105c391906129b1565b60405180910390f35b6105e660048036038101906105e19190612465565b61192f565b005b61060260048036038101906105fd9190612465565b6119b3565b60405161060f91906129b1565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106a35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106b990612d7e565b80601f01602080910402602001604051908101604052809291908181526020018280546106e590612d7e565b80156107325780601f1061070757610100808354040283529160200191610732565b820191906000526020600020905b81548152906001019060200180831161071557829003601f168201915b5050505050905090565b6000610747826119d3565b61077d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107c682610fdf565b90508073ffffffffffffffffffffffffffffffffffffffff166107e7611a32565b73ffffffffffffffffffffffffffffffffffffffff161461084a576108138161080e611a32565b61189b565b610849576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610907611a3a565b80600b908051906020019061091d929190612279565b507fd2af4c75ea172e3a1fa4d613517cf12ca4b0c3d12e7c341693d357b47e9b6e178160405161094d91906129cc565b60405180910390a150565b6000610962611ab8565b6001546000540303905090565b600061097a82611ac1565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109e1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806109ed84611b8f565b91509150610a0381876109fe611a32565b611bb6565b610a4f57610a1886610a13611a32565b61189b565b610a4e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ab6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ac38686866001611bfa565b8015610ace57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610b9c85610b78888887611c00565b7c020000000000000000000000000000000000000000000000000000000017611c28565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610c24576000600185019050600060046000838152602001908152602001600020541415610c22576000548114610c21578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610c8c8686866001611c53565b505050505050565b60008060006127107f000000000000000000000000000000000000000000000000000000000000000085610cc89190612c3a565b610cd29190612c09565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b610d0c611a3a565b80600a9080519060200190610d22929190612279565b507f199e933997358e1789d8b56ea8c551befeb05ce2fe3fe506199f1230f5a591b481604051610d5291906129cc565b60405180910390a150565b610d65611a3a565b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de890612a4e565b60405180910390fd5b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fc93cfdd5d8f442c448a02ed11ccff64355643272c9f2be94b723f2181af1a89681604051610e789190612921565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b600d6000610eb3611c59565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3190612a0e565b60405180910390fd5b807f000000000000000000000000000000000000000000000000000000000000000081610f65610958565b610f6f9190612bb3565b1115610fb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa790612a6e565b60405180910390fd5b610fba8383611c61565b505050565b610fda83838360405180602001604052806000815250611684565b505050565b6000610fea82611ac1565b9050919050565b600a8054610ffe90612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461102a90612d7e565b80156110775780601f1061104c57610100808354040283529160200191611077565b820191906000526020600020905b81548152906001019060200180831161105a57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110e7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611140611a3a565b61114a6000611c7f565b565b600b805461115990612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461118590612d7e565b80156111d25780601f106111a7576101008083540402835291602001916111d2565b820191906000526020600020905b8154815290600101906020018083116111b557829003601f168201915b505050505081565b6111e2611a3a565b806009819055507f5ff23d997e4807e23374067006968dc8645f4a7ed7679c7dbf3a88e4fd83beaa816040516112189190612ace565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611279611a3a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e090612a2e565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606003805461133c90612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461136890612d7e565b80156113b55780601f1061138a576101008083540402835291602001916113b5565b820191906000526020600020905b81548152906001019060200180831161139857829003601f168201915b5050505050905090565b6113c7611a3a565b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144b90612aae565b60405180910390fd5b6001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f887003b0d91467e681b2ba1437748e2d1b6e9b0b1cb8be6541e6cdfc1b50eabc816040516114db9190612921565b60405180910390a150565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611514611a32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611579576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611586611a32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611633611a32565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161167891906129b1565b60405180910390a35050565b61168f84848461096f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116f1576116ba84848484611d45565b6116f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60095481565b6060611708826119d3565b61173e576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082600954106117db57600a805461175690612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461178290612d7e565b80156117cf5780601f106117a4576101008083540402835291602001916117cf565b820191906000526020600020905b8154815290600101906020018083116117b257829003601f168201915b50505050509050611869565b600b80546117e890612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461181490612d7e565b80156118615780601f1061183657610100808354040283529160200191611861565b820191906000526020600020905b81548152906001019060200180831161184457829003601f168201915b505050505090505b8061187384611ea5565b6040516020016118849291906128fd565b604051602081830303815290604052915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611937611a3a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199e906129ee565b60405180910390fd5b6119b081611c7f565b50565b600d6020528060005260406000206000915054906101000a900460ff1681565b6000816119de611ab8565b111580156119ed575060005482105b8015611a2b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b611a42611c59565b73ffffffffffffffffffffffffffffffffffffffff16611a60611247565b73ffffffffffffffffffffffffffffffffffffffff1614611ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aad90612a8e565b60405180910390fd5b565b60006001905090565b60008082905080611ad0611ab8565b11611b5857600054811015611b575760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611b55575b6000811415611b4b576004600083600190039350838152602001908152602001600020549050611b20565b8092505050611b8a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c17868684612006565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b611c7b82826040518060200160405280600081525061200f565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d6b611a32565b8786866040518563ffffffff1660e01b8152600401611d8d949392919061293c565b602060405180830381600087803b158015611da757600080fd5b505af1925050508015611dd857506040513d601f19601f82011682018060405250810190611dd59190612655565b60015b611e52573d8060008114611e08576040519150601f19603f3d011682016040523d82523d6000602084013e611e0d565b606091505b50600081511415611e4a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415611eed576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612001565b600082905060005b60008214611f1f578080611f0890612de1565b915050600a82611f189190612c09565b9150611ef5565b60008167ffffffffffffffff811115611f3b57611f3a612f17565b5b6040519080825280601f01601f191660200182016040528015611f6d5781602001600182028036833780820191505090505b5090505b60008514611ffa57600182611f869190612c94565b9150600a85611f959190612e2a565b6030611fa19190612bb3565b60f81b818381518110611fb757611fb6612ee8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611ff39190612c09565b9450611f71565b8093505050505b919050565b60009392505050565b61201983836120ac565b60008373ffffffffffffffffffffffffffffffffffffffff163b146120a757600080549050600083820390505b6120596000868380600101945086611d45565b61208f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106120465781600054146120a457600080fd5b50505b505050565b60008054905060008214156120ed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120fa6000848385611bfa565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612171836121626000866000611c00565b61216b85612269565b17611c28565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461221257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506121d7565b50600082141561224e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122646000848385611c53565b505050565b60006001821460e11b9050919050565b82805461228590612d7e565b90600052602060002090601f0160209004810192826122a757600085556122ee565b82601f106122c057805160ff19168380011785556122ee565b828001600101855582156122ee579182015b828111156122ed5782518255916020019190600101906122d2565b5b5090506122fb91906122ff565b5090565b5b80821115612318576000816000905550600101612300565b5090565b600061232f61232a84612b0e565b612ae9565b90508281526020810184848401111561234b5761234a612f4b565b5b612356848285612d3c565b509392505050565b600061237161236c84612b3f565b612ae9565b90508281526020810184848401111561238d5761238c612f4b565b5b612398848285612d3c565b509392505050565b6000813590506123af816130b0565b92915050565b6000813590506123c4816130c7565b92915050565b6000813590506123d9816130de565b92915050565b6000815190506123ee816130de565b92915050565b600082601f83011261240957612408612f46565b5b813561241984826020860161231c565b91505092915050565b600082601f83011261243757612436612f46565b5b813561244784826020860161235e565b91505092915050565b60008135905061245f816130f5565b92915050565b60006020828403121561247b5761247a612f55565b5b6000612489848285016123a0565b91505092915050565b600080604083850312156124a9576124a8612f55565b5b60006124b7858286016123a0565b92505060206124c8858286016123a0565b9150509250929050565b6000806000606084860312156124eb576124ea612f55565b5b60006124f9868287016123a0565b935050602061250a868287016123a0565b925050604061251b86828701612450565b9150509250925092565b6000806000806080858703121561253f5761253e612f55565b5b600061254d878288016123a0565b945050602061255e878288016123a0565b935050604061256f87828801612450565b925050606085013567ffffffffffffffff8111156125905761258f612f50565b5b61259c878288016123f4565b91505092959194509250565b600080604083850312156125bf576125be612f55565b5b60006125cd858286016123a0565b92505060206125de858286016123b5565b9150509250929050565b600080604083850312156125ff576125fe612f55565b5b600061260d858286016123a0565b925050602061261e85828601612450565b9150509250929050565b60006020828403121561263e5761263d612f55565b5b600061264c848285016123ca565b91505092915050565b60006020828403121561266b5761266a612f55565b5b6000612679848285016123df565b91505092915050565b60006020828403121561269857612697612f55565b5b600082013567ffffffffffffffff8111156126b6576126b5612f50565b5b6126c284828501612422565b91505092915050565b6000602082840312156126e1576126e0612f55565b5b60006126ef84828501612450565b91505092915050565b6000806040838503121561270f5761270e612f55565b5b600061271d85828601612450565b925050602061272e85828601612450565b9150509250929050565b61274181612cc8565b82525050565b61275081612cda565b82525050565b600061276182612b70565b61276b8185612b86565b935061277b818560208601612d4b565b61278481612f5a565b840191505092915050565b600061279a82612b7b565b6127a48185612b97565b93506127b4818560208601612d4b565b6127bd81612f5a565b840191505092915050565b60006127d382612b7b565b6127dd8185612ba8565b93506127ed818560208601612d4b565b80840191505092915050565b6000612806602683612b97565b915061281182612f6b565b604082019050919050565b6000612829600b83612b97565b915061283482612fba565b602082019050919050565b600061284c601883612b97565b915061285782612fe3565b602082019050919050565b600061286f600d83612b97565b915061287a8261300c565b602082019050919050565b6000612892601383612b97565b915061289d82613035565b602082019050919050565b60006128b5602083612b97565b91506128c08261305e565b602082019050919050565b60006128d8600d83612b97565b91506128e382613087565b602082019050919050565b6128f781612d32565b82525050565b600061290982856127c8565b915061291582846127c8565b91508190509392505050565b60006020820190506129366000830184612738565b92915050565b60006080820190506129516000830187612738565b61295e6020830186612738565b61296b60408301856128ee565b818103606083015261297d8184612756565b905095945050505050565b600060408201905061299d6000830185612738565b6129aa60208301846128ee565b9392505050565b60006020820190506129c66000830184612747565b92915050565b600060208201905081810360008301526129e6818461278f565b905092915050565b60006020820190508181036000830152612a07816127f9565b9050919050565b60006020820190508181036000830152612a278161281c565b9050919050565b60006020820190508181036000830152612a478161283f565b9050919050565b60006020820190508181036000830152612a6781612862565b9050919050565b60006020820190508181036000830152612a8781612885565b9050919050565b60006020820190508181036000830152612aa7816128a8565b9050919050565b60006020820190508181036000830152612ac7816128cb565b9050919050565b6000602082019050612ae360008301846128ee565b92915050565b6000612af3612b04565b9050612aff8282612db0565b919050565b6000604051905090565b600067ffffffffffffffff821115612b2957612b28612f17565b5b612b3282612f5a565b9050602081019050919050565b600067ffffffffffffffff821115612b5a57612b59612f17565b5b612b6382612f5a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612bbe82612d32565b9150612bc983612d32565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bfe57612bfd612e5b565b5b828201905092915050565b6000612c1482612d32565b9150612c1f83612d32565b925082612c2f57612c2e612e8a565b5b828204905092915050565b6000612c4582612d32565b9150612c5083612d32565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c8957612c88612e5b565b5b828202905092915050565b6000612c9f82612d32565b9150612caa83612d32565b925082821015612cbd57612cbc612e5b565b5b828203905092915050565b6000612cd382612d12565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612d69578082015181840152602081019050612d4e565b83811115612d78576000848401525b50505050565b60006002820490506001821680612d9657607f821691505b60208210811415612daa57612da9612eb9565b5b50919050565b612db982612f5a565b810181811067ffffffffffffffff82111715612dd857612dd7612f17565b5b80604052505050565b6000612dec82612d32565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612e1f57612e1e612e5b565b5b600182019050919050565b6000612e3582612d32565b9150612e4083612d32565b925082612e5057612e4f612e8a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c79206d696e746572000000000000000000000000000000000000000000600082015250565b7f496e76616c696420726563656976657220616464726573730000000000000000600082015250565b7f4e6f742061646465642079657400000000000000000000000000000000000000600082015250565b7f4f766572666c6f77204d617820537570706c7900000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416c726561647920616464656400000000000000000000000000000000000000600082015250565b6130b981612cc8565b81146130c457600080fd5b50565b6130d081612cda565b81146130db57600080fd5b50565b6130e781612ce6565b81146130f257600080fd5b50565b6130fe81612d32565b811461310957600080fd5b5056fea2646970667358221220e154fa0fa3203e72115998d32fc3fadc2e1606a5ead778b3fa304ebeddc13b5564736f6c63430008070033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000094b6f6f6b794b617473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4b415400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f5780639fbc8713116100a2578063c87b56dd11610071578063c87b56dd1461056c578063e985e9c51461059c578063f2fde38b146105cc578063f46eccc4146105e8576101f0565b80639fbc8713146104f8578063a22cb46514610516578063b88d4fde14610532578063c7dac97b1461054e576101f0565b80638da5cb5b116100de5780638da5cb5b146104845780638dc251e3146104a257806395d89b41146104be578063983b2d56146104dc576101f0565b8063715018a6146104225780637313cba91461042c5780638063853b1461044a5780638704a20814610466576101f0565b806330176e131161018757806342842e0e1161015657806342842e0e146103885780636352211e146103a45780636c0360eb146103d457806370a08231146103f2576101f0565b806330176e13146103165780633092afd51461033257806332cb6b0c1461034e57806340c10f191461036c576101f0565b806312cdee59116101c357806312cdee591461028f57806318160ddd146102ab57806323b872dd146102c95780632a55205a146102e5576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190612628565b610618565b60405161021c91906129b1565b60405180910390f35b61022d6106aa565b60405161023a91906129cc565b60405180910390f35b61025d600480360381019061025891906126cb565b61073c565b60405161026a9190612921565b60405180910390f35b61028d600480360381019061028891906125e8565b6107bb565b005b6102a960048036038101906102a49190612682565b6108ff565b005b6102b3610958565b6040516102c09190612ace565b60405180910390f35b6102e360048036038101906102de91906124d2565b61096f565b005b6102ff60048036038101906102fa91906126f8565b610c94565b60405161030d929190612988565b60405180910390f35b610330600480360381019061032b9190612682565b610d04565b005b61034c60048036038101906103479190612465565b610d5d565b005b610356610e83565b6040516103639190612ace565b60405180910390f35b610386600480360381019061038191906125e8565b610ea7565b005b6103a2600480360381019061039d91906124d2565b610fbf565b005b6103be60048036038101906103b991906126cb565b610fdf565b6040516103cb9190612921565b60405180910390f35b6103dc610ff1565b6040516103e991906129cc565b60405180910390f35b61040c60048036038101906104079190612465565b61107f565b6040516104199190612ace565b60405180910390f35b61042a611138565b005b61043461114c565b60405161044191906129cc565b60405180910390f35b610464600480360381019061045f91906126cb565b6111da565b005b61046e611223565b60405161047b9190612ace565b60405180910390f35b61048c611247565b6040516104999190612921565b60405180910390f35b6104bc60048036038101906104b79190612465565b611271565b005b6104c661132d565b6040516104d391906129cc565b60405180910390f35b6104f660048036038101906104f19190612465565b6113bf565b005b6105006114e6565b60405161050d9190612921565b60405180910390f35b610530600480360381019061052b91906125a8565b61150c565b005b61054c60048036038101906105479190612525565b611684565b005b6105566116f7565b6040516105639190612ace565b60405180910390f35b610586600480360381019061058191906126cb565b6116fd565b60405161059391906129cc565b60405180910390f35b6105b660048036038101906105b19190612492565b61189b565b6040516105c391906129b1565b60405180910390f35b6105e660048036038101906105e19190612465565b61192f565b005b61060260048036038101906105fd9190612465565b6119b3565b60405161060f91906129b1565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106a35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106b990612d7e565b80601f01602080910402602001604051908101604052809291908181526020018280546106e590612d7e565b80156107325780601f1061070757610100808354040283529160200191610732565b820191906000526020600020905b81548152906001019060200180831161071557829003601f168201915b5050505050905090565b6000610747826119d3565b61077d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107c682610fdf565b90508073ffffffffffffffffffffffffffffffffffffffff166107e7611a32565b73ffffffffffffffffffffffffffffffffffffffff161461084a576108138161080e611a32565b61189b565b610849576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610907611a3a565b80600b908051906020019061091d929190612279565b507fd2af4c75ea172e3a1fa4d613517cf12ca4b0c3d12e7c341693d357b47e9b6e178160405161094d91906129cc565b60405180910390a150565b6000610962611ab8565b6001546000540303905090565b600061097a82611ac1565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109e1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806109ed84611b8f565b91509150610a0381876109fe611a32565b611bb6565b610a4f57610a1886610a13611a32565b61189b565b610a4e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ab6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ac38686866001611bfa565b8015610ace57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610b9c85610b78888887611c00565b7c020000000000000000000000000000000000000000000000000000000017611c28565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610c24576000600185019050600060046000838152602001908152602001600020541415610c22576000548114610c21578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610c8c8686866001611c53565b505050505050565b60008060006127107f00000000000000000000000000000000000000000000000000000000000001f485610cc89190612c3a565b610cd29190612c09565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b610d0c611a3a565b80600a9080519060200190610d22929190612279565b507f199e933997358e1789d8b56ea8c551befeb05ce2fe3fe506199f1230f5a591b481604051610d5291906129cc565b60405180910390a150565b610d65611a3a565b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de890612a4e565b60405180910390fd5b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fc93cfdd5d8f442c448a02ed11ccff64355643272c9f2be94b723f2181af1a89681604051610e789190612921565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000138881565b600d6000610eb3611c59565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3190612a0e565b60405180910390fd5b807f000000000000000000000000000000000000000000000000000000000000138881610f65610958565b610f6f9190612bb3565b1115610fb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa790612a6e565b60405180910390fd5b610fba8383611c61565b505050565b610fda83838360405180602001604052806000815250611684565b505050565b6000610fea82611ac1565b9050919050565b600a8054610ffe90612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461102a90612d7e565b80156110775780601f1061104c57610100808354040283529160200191611077565b820191906000526020600020905b81548152906001019060200180831161105a57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110e7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611140611a3a565b61114a6000611c7f565b565b600b805461115990612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461118590612d7e565b80156111d25780601f106111a7576101008083540402835291602001916111d2565b820191906000526020600020905b8154815290600101906020018083116111b557829003601f168201915b505050505081565b6111e2611a3a565b806009819055507f5ff23d997e4807e23374067006968dc8645f4a7ed7679c7dbf3a88e4fd83beaa816040516112189190612ace565b60405180910390a150565b7f00000000000000000000000000000000000000000000000000000000000001f481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611279611a3a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e090612a2e565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606003805461133c90612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461136890612d7e565b80156113b55780601f1061138a576101008083540402835291602001916113b5565b820191906000526020600020905b81548152906001019060200180831161139857829003601f168201915b5050505050905090565b6113c7611a3a565b600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144b90612aae565b60405180910390fd5b6001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f887003b0d91467e681b2ba1437748e2d1b6e9b0b1cb8be6541e6cdfc1b50eabc816040516114db9190612921565b60405180910390a150565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611514611a32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611579576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611586611a32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611633611a32565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161167891906129b1565b60405180910390a35050565b61168f84848461096f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116f1576116ba84848484611d45565b6116f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60095481565b6060611708826119d3565b61173e576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082600954106117db57600a805461175690612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461178290612d7e565b80156117cf5780601f106117a4576101008083540402835291602001916117cf565b820191906000526020600020905b8154815290600101906020018083116117b257829003601f168201915b50505050509050611869565b600b80546117e890612d7e565b80601f016020809104026020016040519081016040528092919081815260200182805461181490612d7e565b80156118615780601f1061183657610100808354040283529160200191611861565b820191906000526020600020905b81548152906001019060200180831161184457829003601f168201915b505050505090505b8061187384611ea5565b6040516020016118849291906128fd565b604051602081830303815290604052915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611937611a3a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199e906129ee565b60405180910390fd5b6119b081611c7f565b50565b600d6020528060005260406000206000915054906101000a900460ff1681565b6000816119de611ab8565b111580156119ed575060005482105b8015611a2b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b611a42611c59565b73ffffffffffffffffffffffffffffffffffffffff16611a60611247565b73ffffffffffffffffffffffffffffffffffffffff1614611ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aad90612a8e565b60405180910390fd5b565b60006001905090565b60008082905080611ad0611ab8565b11611b5857600054811015611b575760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611b55575b6000811415611b4b576004600083600190039350838152602001908152602001600020549050611b20565b8092505050611b8a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c17868684612006565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b611c7b82826040518060200160405280600081525061200f565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d6b611a32565b8786866040518563ffffffff1660e01b8152600401611d8d949392919061293c565b602060405180830381600087803b158015611da757600080fd5b505af1925050508015611dd857506040513d601f19601f82011682018060405250810190611dd59190612655565b60015b611e52573d8060008114611e08576040519150601f19603f3d011682016040523d82523d6000602084013e611e0d565b606091505b50600081511415611e4a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415611eed576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612001565b600082905060005b60008214611f1f578080611f0890612de1565b915050600a82611f189190612c09565b9150611ef5565b60008167ffffffffffffffff811115611f3b57611f3a612f17565b5b6040519080825280601f01601f191660200182016040528015611f6d5781602001600182028036833780820191505090505b5090505b60008514611ffa57600182611f869190612c94565b9150600a85611f959190612e2a565b6030611fa19190612bb3565b60f81b818381518110611fb757611fb6612ee8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611ff39190612c09565b9450611f71565b8093505050505b919050565b60009392505050565b61201983836120ac565b60008373ffffffffffffffffffffffffffffffffffffffff163b146120a757600080549050600083820390505b6120596000868380600101945086611d45565b61208f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106120465781600054146120a457600080fd5b50505b505050565b60008054905060008214156120ed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120fa6000848385611bfa565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612171836121626000866000611c00565b61216b85612269565b17611c28565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461221257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506121d7565b50600082141561224e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122646000848385611c53565b505050565b60006001821460e11b9050919050565b82805461228590612d7e565b90600052602060002090601f0160209004810192826122a757600085556122ee565b82601f106122c057805160ff19168380011785556122ee565b828001600101855582156122ee579182015b828111156122ed5782518255916020019190600101906122d2565b5b5090506122fb91906122ff565b5090565b5b80821115612318576000816000905550600101612300565b5090565b600061232f61232a84612b0e565b612ae9565b90508281526020810184848401111561234b5761234a612f4b565b5b612356848285612d3c565b509392505050565b600061237161236c84612b3f565b612ae9565b90508281526020810184848401111561238d5761238c612f4b565b5b612398848285612d3c565b509392505050565b6000813590506123af816130b0565b92915050565b6000813590506123c4816130c7565b92915050565b6000813590506123d9816130de565b92915050565b6000815190506123ee816130de565b92915050565b600082601f83011261240957612408612f46565b5b813561241984826020860161231c565b91505092915050565b600082601f83011261243757612436612f46565b5b813561244784826020860161235e565b91505092915050565b60008135905061245f816130f5565b92915050565b60006020828403121561247b5761247a612f55565b5b6000612489848285016123a0565b91505092915050565b600080604083850312156124a9576124a8612f55565b5b60006124b7858286016123a0565b92505060206124c8858286016123a0565b9150509250929050565b6000806000606084860312156124eb576124ea612f55565b5b60006124f9868287016123a0565b935050602061250a868287016123a0565b925050604061251b86828701612450565b9150509250925092565b6000806000806080858703121561253f5761253e612f55565b5b600061254d878288016123a0565b945050602061255e878288016123a0565b935050604061256f87828801612450565b925050606085013567ffffffffffffffff8111156125905761258f612f50565b5b61259c878288016123f4565b91505092959194509250565b600080604083850312156125bf576125be612f55565b5b60006125cd858286016123a0565b92505060206125de858286016123b5565b9150509250929050565b600080604083850312156125ff576125fe612f55565b5b600061260d858286016123a0565b925050602061261e85828601612450565b9150509250929050565b60006020828403121561263e5761263d612f55565b5b600061264c848285016123ca565b91505092915050565b60006020828403121561266b5761266a612f55565b5b6000612679848285016123df565b91505092915050565b60006020828403121561269857612697612f55565b5b600082013567ffffffffffffffff8111156126b6576126b5612f50565b5b6126c284828501612422565b91505092915050565b6000602082840312156126e1576126e0612f55565b5b60006126ef84828501612450565b91505092915050565b6000806040838503121561270f5761270e612f55565b5b600061271d85828601612450565b925050602061272e85828601612450565b9150509250929050565b61274181612cc8565b82525050565b61275081612cda565b82525050565b600061276182612b70565b61276b8185612b86565b935061277b818560208601612d4b565b61278481612f5a565b840191505092915050565b600061279a82612b7b565b6127a48185612b97565b93506127b4818560208601612d4b565b6127bd81612f5a565b840191505092915050565b60006127d382612b7b565b6127dd8185612ba8565b93506127ed818560208601612d4b565b80840191505092915050565b6000612806602683612b97565b915061281182612f6b565b604082019050919050565b6000612829600b83612b97565b915061283482612fba565b602082019050919050565b600061284c601883612b97565b915061285782612fe3565b602082019050919050565b600061286f600d83612b97565b915061287a8261300c565b602082019050919050565b6000612892601383612b97565b915061289d82613035565b602082019050919050565b60006128b5602083612b97565b91506128c08261305e565b602082019050919050565b60006128d8600d83612b97565b91506128e382613087565b602082019050919050565b6128f781612d32565b82525050565b600061290982856127c8565b915061291582846127c8565b91508190509392505050565b60006020820190506129366000830184612738565b92915050565b60006080820190506129516000830187612738565b61295e6020830186612738565b61296b60408301856128ee565b818103606083015261297d8184612756565b905095945050505050565b600060408201905061299d6000830185612738565b6129aa60208301846128ee565b9392505050565b60006020820190506129c66000830184612747565b92915050565b600060208201905081810360008301526129e6818461278f565b905092915050565b60006020820190508181036000830152612a07816127f9565b9050919050565b60006020820190508181036000830152612a278161281c565b9050919050565b60006020820190508181036000830152612a478161283f565b9050919050565b60006020820190508181036000830152612a6781612862565b9050919050565b60006020820190508181036000830152612a8781612885565b9050919050565b60006020820190508181036000830152612aa7816128a8565b9050919050565b60006020820190508181036000830152612ac7816128cb565b9050919050565b6000602082019050612ae360008301846128ee565b92915050565b6000612af3612b04565b9050612aff8282612db0565b919050565b6000604051905090565b600067ffffffffffffffff821115612b2957612b28612f17565b5b612b3282612f5a565b9050602081019050919050565b600067ffffffffffffffff821115612b5a57612b59612f17565b5b612b6382612f5a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612bbe82612d32565b9150612bc983612d32565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bfe57612bfd612e5b565b5b828201905092915050565b6000612c1482612d32565b9150612c1f83612d32565b925082612c2f57612c2e612e8a565b5b828204905092915050565b6000612c4582612d32565b9150612c5083612d32565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c8957612c88612e5b565b5b828202905092915050565b6000612c9f82612d32565b9150612caa83612d32565b925082821015612cbd57612cbc612e5b565b5b828203905092915050565b6000612cd382612d12565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612d69578082015181840152602081019050612d4e565b83811115612d78576000848401525b50505050565b60006002820490506001821680612d9657607f821691505b60208210811415612daa57612da9612eb9565b5b50919050565b612db982612f5a565b810181811067ffffffffffffffff82111715612dd857612dd7612f17565b5b80604052505050565b6000612dec82612d32565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612e1f57612e1e612e5b565b5b600182019050919050565b6000612e3582612d32565b9150612e4083612d32565b925082612e5057612e4f612e8a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c79206d696e746572000000000000000000000000000000000000000000600082015250565b7f496e76616c696420726563656976657220616464726573730000000000000000600082015250565b7f4e6f742061646465642079657400000000000000000000000000000000000000600082015250565b7f4f766572666c6f77204d617820537570706c7900000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416c726561647920616464656400000000000000000000000000000000000000600082015250565b6130b981612cc8565b81146130c457600080fd5b50565b6130d081612cda565b81146130db57600080fd5b50565b6130e781612ce6565b81146130f257600080fd5b50565b6130fe81612d32565b811461310957600080fd5b5056fea2646970667358221220e154fa0fa3203e72115998d32fc3fadc2e1606a5ead778b3fa304ebeddc13b5564736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000094b6f6f6b794b617473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4b415400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): KookyKats
Arg [1] : _symbol (string): KKAT
Arg [2] : _maxSupply (uint256): 5000
Arg [3] : _royalty (uint256): 500
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 4b6f6f6b794b6174730000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4b4b415400000000000000000000000000000000000000000000000000000000
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.