ERC-721
Overview
Max Total Supply
6,219 KNG
Holders
3,209
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 KNGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Kangaroos
Compiler Version
v0.8.12+commit.f00d7308
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.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Kangaroos is ERC721A, Ownable { using Strings for uint256; // Constants uint256 public TOTAL_SUPPLY = 7012; uint256 public MINT_PRICE = 0.01 ether; uint256 public FREE_ITEMS_COUNT = 0; uint256 public MAX_IN_TRX = 100; address payable withdrawTo = payable(0xCc92F5DA26f156681fa6EeE8E63BfEEc605D228f); address payable withdrawDev = payable(0x7c2804Eca97314b2B617DE79e9CFc977ba06C963); // Variables string public baseTokenURI; string public uriSuffix; bool public paused = false; bool public revealed = false; string public revealImage; constructor( string memory _initBaseURI, string memory _revealImage, string memory _uriSuffix ) ERC721A("Kangaroos", "KNG") { setBaseTokenURI(_initBaseURI); setRevealImage(_revealImage); setUriSuffix(_uriSuffix); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseTokenURI(string memory _baseTokenURI) public onlyOwner { baseTokenURI = _baseTokenURI; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); if (!revealed) { return revealImage; } return string( abi.encodePacked( _baseURI(), (tokenId + 10000).toString(), uriSuffix ) ); } function claim(address addr, uint256[] calldata tokenIds) external payable { require(!paused, "Minting is paused."); require(totalSupply() + 1 <= TOTAL_SUPPLY, "Exceeds maximum supply."); require(tokenIds.length >= 3, "You should burn 3 or more tokens."); for (uint i = 0; i < tokenIds.length; i++) IERC721(addr).transferFrom( msg.sender, address(0xdead), tokenIds[i] ); _safeMint(msg.sender, 1); } function mintItem(uint256 quantity) external payable { uint256 supply = totalSupply(); require(!paused, "Minting is paused."); require( (quantity > 0) && (quantity <= MAX_IN_TRX), "Invalid quantity." ); require(supply + quantity <= TOTAL_SUPPLY, "Exceeds maximum supply."); if (msg.sender != owner()) { require( (supply + quantity <= FREE_ITEMS_COUNT) || (msg.value >= MINT_PRICE * quantity), "Not enough supply." ); } _safeMint(msg.sender, quantity); } function mintTo(address to, uint256 quantity) external payable onlyOwner { uint256 supply = totalSupply(); require( supply + quantity - 1 <= TOTAL_SUPPLY, "Exceeds maximum supply" ); _safeMint(to, quantity); } function withdraw() public payable onlyOwner { (bool hs, ) = withdrawDev.call{ value: (address(this).balance * 20) / 100 }(""); require(hs); (bool os, ) = withdrawTo.call{value: address(this).balance}(""); require(os); } function setCost(uint256 _newCost) public onlyOwner { MINT_PRICE = _newCost; } function setFreeCount(uint256 _count) public onlyOwner { FREE_ITEMS_COUNT = _count; } function setMaxInTRX(uint256 _total) public onlyOwner { MAX_IN_TRX = _total; } function setmaxMintAmount(uint256 _count) public onlyOwner { TOTAL_SUPPLY = _count; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setRevealImage(string memory _revealImage) public onlyOwner { revealImage = _revealImage; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_revealImage","type":"string"},{"internalType":"string","name":"_uriSuffix","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FREE_ITEMS_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_IN_TRX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"payable","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":"uint256","name":"quantity","type":"uint256"}],"name":"mintItem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"payable","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setFreeCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_total","type":"uint256"}],"name":"setMaxInTRX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_revealImage","type":"string"}],"name":"setRevealImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052611b64600855662386f26fc100006009556000600a556064600b5573cc92f5da26f156681fa6eee8e63bfeec605d228f600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550737c2804eca97314b2b617de79e9cfc977ba06c963600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601060006101000a81548160ff0219169083151502179055506000601060016101000a81548160ff0219169083151502179055503480156200010c57600080fd5b506040516200502a3803806200502a833981810160405281019062000132919062000774565b6040518060400160405280600981526020017f4b616e6761726f6f7300000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4b4e4700000000000000000000000000000000000000000000000000000000008152508160019080519060200190620001b692919062000527565b508060029080519060200190620001cf92919062000527565b505050620001f2620001e66200022e60201b60201c565b6200023660201b60201c565b6200020383620002fc60201b60201c565b6200021482620003a760201b60201c565b62000225816200045260201b60201c565b50505062000915565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200030c6200022e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000332620004fd60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200038b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000382906200088e565b60405180910390fd5b80600e9080519060200190620003a392919062000527565b5050565b620003b76200022e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003dd620004fd60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000436576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200042d906200088e565b60405180910390fd5b80601190805190602001906200044e92919062000527565b5050565b620004626200022e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000488620004fd60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620004e1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004d8906200088e565b60405180910390fd5b80600f9080519060200190620004f992919062000527565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8280546200053590620008df565b90600052602060002090601f016020900481019282620005595760008555620005a5565b82601f106200057457805160ff1916838001178555620005a5565b82800160010185558215620005a5579182015b82811115620005a457825182559160200191906001019062000587565b5b509050620005b49190620005b8565b5090565b5b80821115620005d3576000816000905550600101620005b9565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200064082620005f5565b810181811067ffffffffffffffff8211171562000662576200066162000606565b5b80604052505050565b600062000677620005d7565b905062000685828262000635565b919050565b600067ffffffffffffffff821115620006a857620006a762000606565b5b620006b382620005f5565b9050602081019050919050565b60005b83811015620006e0578082015181840152602081019050620006c3565b83811115620006f0576000848401525b50505050565b60006200070d62000707846200068a565b6200066b565b9050828152602081018484840111156200072c576200072b620005f0565b5b62000739848285620006c0565b509392505050565b600082601f830112620007595762000758620005eb565b5b81516200076b848260208601620006f6565b91505092915050565b60008060006060848603121562000790576200078f620005e1565b5b600084015167ffffffffffffffff811115620007b157620007b0620005e6565b5b620007bf8682870162000741565b935050602084015167ffffffffffffffff811115620007e357620007e2620005e6565b5b620007f18682870162000741565b925050604084015167ffffffffffffffff811115620008155762000814620005e6565b5b620008238682870162000741565b9150509250925092565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620008766020836200082d565b915062000883826200083e565b602082019050919050565b60006020820190508181036000830152620008a98162000867565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008f857607f821691505b602082108114156200090f576200090e620008b0565b5b50919050565b61470580620009256000396000f3fe6080604052600436106102465760003560e01c80635c5458ef11610139578063a1470c1d116100b6578063cd87fcfe1161007a578063cd87fcfe14610830578063ce05ecba1461085b578063d547cfb714610884578063e0a80853146108af578063e985e9c5146108d8578063f2fde38b1461091557610246565b8063a1470c1d1461074d578063a22cb46514610776578063b88d4fde1461079f578063c002d23d146107c8578063c87b56dd146107f357610246565b8063715018a6116100fd578063715018a61461068c5780637f00c7a6146106a35780638da5cb5b146106cc578063902d55a5146106f757806395d89b411461072257610246565b80635c5458ef146105935780635c975abb146105be5780636352211e146105e95780636a4206141461062657806370a082311461064f57610246565b80632f745c59116101c757806344a0d68a1161018b57806344a0d68a146104bb57806345718278146104e45780634f6ccce714610500578063518302271461053d5780635503a0e81461056857610246565b80632f745c591461040657806330176e13146104435780633ccfd60b1461046c57806342842e0e14610476578063449a52f81461049f57610246565b806316c38b3c1161020e57806316c38b3c1461034257806317fb85941461036b57806318160ddd14610387578063187fad82146103b257806323b872dd146103dd57610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806316ba10e014610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613717565b61093e565b60405161027f919061375f565b60405180910390f35b34801561029457600080fd5b5061029d610a88565b6040516102aa9190613813565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d5919061386b565b610b1a565b6040516102e791906138d9565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613920565b610b96565b005b34801561032557600080fd5b50610340600480360381019061033b9190613a95565b610ca1565b005b34801561034e57600080fd5b5061036960048036038101906103649190613b0a565b610d37565b005b6103856004803603810190610380919061386b565b610dd0565b005b34801561039357600080fd5b5061039c610f7e565b6040516103a99190613b46565b60405180910390f35b3480156103be57600080fd5b506103c7610fd3565b6040516103d49190613813565b60405180910390f35b3480156103e957600080fd5b5061040460048036038101906103ff9190613b61565b611061565b005b34801561041257600080fd5b5061042d60048036038101906104289190613920565b611071565b60405161043a9190613b46565b60405180910390f35b34801561044f57600080fd5b5061046a60048036038101906104659190613a95565b611278565b005b61047461130e565b005b34801561048257600080fd5b5061049d60048036038101906104989190613b61565b6114d6565b005b6104b960048036038101906104b49190613920565b6114f6565b005b3480156104c757600080fd5b506104e260048036038101906104dd919061386b565b6115e9565b005b6104fe60048036038101906104f99190613c14565b61166f565b005b34801561050c57600080fd5b506105276004803603810190610522919061386b565b61181a565b6040516105349190613b46565b60405180910390f35b34801561054957600080fd5b5061055261198b565b60405161055f919061375f565b60405180910390f35b34801561057457600080fd5b5061057d61199e565b60405161058a9190613813565b60405180910390f35b34801561059f57600080fd5b506105a8611a2c565b6040516105b59190613b46565b60405180910390f35b3480156105ca57600080fd5b506105d3611a32565b6040516105e0919061375f565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b919061386b565b611a45565b60405161061d91906138d9565b60405180910390f35b34801561063257600080fd5b5061064d6004803603810190610648919061386b565b611a5b565b005b34801561065b57600080fd5b5061067660048036038101906106719190613c74565b611ae1565b6040516106839190613b46565b60405180910390f35b34801561069857600080fd5b506106a1611bb1565b005b3480156106af57600080fd5b506106ca60048036038101906106c5919061386b565b611c39565b005b3480156106d857600080fd5b506106e1611cbf565b6040516106ee91906138d9565b60405180910390f35b34801561070357600080fd5b5061070c611ce9565b6040516107199190613b46565b60405180910390f35b34801561072e57600080fd5b50610737611cef565b6040516107449190613813565b60405180910390f35b34801561075957600080fd5b50610774600480360381019061076f919061386b565b611d81565b005b34801561078257600080fd5b5061079d60048036038101906107989190613ca1565b611e07565b005b3480156107ab57600080fd5b506107c660048036038101906107c19190613d82565b611f7f565b005b3480156107d457600080fd5b506107dd611fd2565b6040516107ea9190613b46565b60405180910390f35b3480156107ff57600080fd5b5061081a6004803603810190610815919061386b565b611fd8565b6040516108279190613813565b60405180910390f35b34801561083c57600080fd5b50610845612108565b6040516108529190613b46565b60405180910390f35b34801561086757600080fd5b50610882600480360381019061087d9190613a95565b61210e565b005b34801561089057600080fd5b506108996121a4565b6040516108a69190613813565b60405180910390f35b3480156108bb57600080fd5b506108d660048036038101906108d19190613b0a565b612232565b005b3480156108e457600080fd5b506108ff60048036038101906108fa9190613e05565b6122cb565b60405161090c919061375f565b60405180910390f35b34801561092157600080fd5b5061093c60048036038101906109379190613c74565b61235f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a0957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a7157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a815750610a8082612457565b5b9050919050565b606060018054610a9790613e74565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac390613e74565b8015610b105780601f10610ae557610100808354040283529160200191610b10565b820191906000526020600020905b815481529060010190602001808311610af357829003601f168201915b5050505050905090565b6000610b25826124c1565b610b5b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba182611a45565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c09576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c28612529565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c5a5750610c5881610c53612529565b6122cb565b155b15610c91576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c9c838383612531565b505050565b610ca9612529565b73ffffffffffffffffffffffffffffffffffffffff16610cc7611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614610d1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1490613ef2565b60405180910390fd5b80600f9080519060200190610d339291906135c5565b5050565b610d3f612529565b73ffffffffffffffffffffffffffffffffffffffff16610d5d611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614610db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daa90613ef2565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b6000610dda610f7e565b9050601060009054906101000a900460ff1615610e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2390613f5e565b60405180910390fd5b600082118015610e3e5750600b548211155b610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490613fca565b60405180910390fd5b6008548282610e8c9190614019565b1115610ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec4906140bb565b60405180910390fd5b610ed5611cbf565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f7057600a548282610f169190614019565b111580610f30575081600954610f2c91906140db565b3410155b610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690614181565b60405180910390fd5b5b610f7a33836125e3565b5050565b60008060109054906101000a90046fffffffffffffffffffffffffffffffff1660008054906101000a90046fffffffffffffffffffffffffffffffff16036fffffffffffffffffffffffffffffffff16905090565b60118054610fe090613e74565b80601f016020809104026020016040519081016040528092919081815260200182805461100c90613e74565b80156110595780601f1061102e57610100808354040283529160200191611059565b820191906000526020600020905b81548152906001019060200180831161103c57829003601f168201915b505050505081565b61106c838383612601565b505050565b600061107c83611ae1565b82106110b4576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905060008060005b8381101561126c576000600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151156111cb575061125f565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461120b57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561125d5786841415611254578195505050505050611272565b83806001019450505b505b80806001019150506110ee565b50600080fd5b92915050565b611280612529565b73ffffffffffffffffffffffffffffffffffffffff1661129e611cbf565b73ffffffffffffffffffffffffffffffffffffffff16146112f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112eb90613ef2565b60405180910390fd5b80600e908051906020019061130a9291906135c5565b5050565b611316612529565b73ffffffffffffffffffffffffffffffffffffffff16611334611cbf565b73ffffffffffffffffffffffffffffffffffffffff161461138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138190613ef2565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660646014476113d491906140db565b6113de91906141d0565b6040516113ea90614232565b60006040518083038185875af1925050503d8060008114611427576040519150601f19603f3d011682016040523d82523d6000602084013e61142c565b606091505b505090508061143a57600080fd5b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161148290614232565b60006040518083038185875af1925050503d80600081146114bf576040519150601f19603f3d011682016040523d82523d6000602084013e6114c4565b606091505b50509050806114d257600080fd5b5050565b6114f183838360405180602001604052806000815250611f7f565b505050565b6114fe612529565b73ffffffffffffffffffffffffffffffffffffffff1661151c611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156990613ef2565b60405180910390fd5b600061157c610f7e565b90506008546001838361158f9190614019565b6115999190614247565b11156115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d1906142c7565b60405180910390fd5b6115e483836125e3565b505050565b6115f1612529565b73ffffffffffffffffffffffffffffffffffffffff1661160f611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c90613ef2565b60405180910390fd5b8060098190555050565b601060009054906101000a900460ff16156116bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b690613f5e565b60405180910390fd5b60085460016116cc610f7e565b6116d69190614019565b1115611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e906140bb565b60405180910390fd5b600382829050101561175e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175590614359565b60405180910390fd5b60005b82829050811015611809578373ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead86868681811061179f5761179e614379565b5b905060200201356040518463ffffffff1660e01b81526004016117c4939291906143a8565b600060405180830381600087803b1580156117de57600080fd5b505af11580156117f2573d6000803e3d6000fd5b505050508080611801906143df565b915050611761565b506118153360016125e3565b505050565b60008060008054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690506000805b82811015611953576000600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151611945578583141561193c5781945050505050611986565b82806001019350505b508080600101915050611852565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b601060019054906101000a900460ff1681565b600f80546119ab90613e74565b80601f01602080910402602001604051908101604052809291908181526020018280546119d790613e74565b8015611a245780601f106119f957610100808354040283529160200191611a24565b820191906000526020600020905b815481529060010190602001808311611a0757829003601f168201915b505050505081565b600b5481565b601060009054906101000a900460ff1681565b6000611a5082612b1e565b600001519050919050565b611a63612529565b73ffffffffffffffffffffffffffffffffffffffff16611a81611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90613ef2565b60405180910390fd5b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b49576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611bb9612529565b73ffffffffffffffffffffffffffffffffffffffff16611bd7611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2490613ef2565b60405180910390fd5b611c376000612dc6565b565b611c41612529565b73ffffffffffffffffffffffffffffffffffffffff16611c5f611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cac90613ef2565b60405180910390fd5b8060088190555050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60085481565b606060028054611cfe90613e74565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2a90613e74565b8015611d775780601f10611d4c57610100808354040283529160200191611d77565b820191906000526020600020905b815481529060010190602001808311611d5a57829003601f168201915b5050505050905090565b611d89612529565b73ffffffffffffffffffffffffffffffffffffffff16611da7611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df490613ef2565b60405180910390fd5b80600b8190555050565b611e0f612529565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e74576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000611e81612529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f2e612529565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f73919061375f565b60405180910390a35050565b611f8a848484612601565b611f9684848484612e8c565b611fcc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60095481565b6060611fe3826124c1565b612019576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601060019054906101000a900460ff166120bf576011805461203a90613e74565b80601f016020809104026020016040519081016040528092919081815260200182805461206690613e74565b80156120b35780601f10612088576101008083540402835291602001916120b3565b820191906000526020600020905b81548152906001019060200180831161209657829003601f168201915b50505050509050612103565b6120c761300b565b6120dd612710846120d89190614019565b61309d565b600f6040516020016120f1939291906144f8565b60405160208183030381529060405290505b919050565b600a5481565b612116612529565b73ffffffffffffffffffffffffffffffffffffffff16612134611cbf565b73ffffffffffffffffffffffffffffffffffffffff161461218a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218190613ef2565b60405180910390fd5b80601190805190602001906121a09291906135c5565b5050565b600e80546121b190613e74565b80601f01602080910402602001604051908101604052809291908181526020018280546121dd90613e74565b801561222a5780601f106121ff5761010080835404028352916020019161222a565b820191906000526020600020905b81548152906001019060200180831161220d57829003601f168201915b505050505081565b61223a612529565b73ffffffffffffffffffffffffffffffffffffffff16612258611cbf565b73ffffffffffffffffffffffffffffffffffffffff16146122ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a590613ef2565b60405180910390fd5b80601060016101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612367612529565b73ffffffffffffffffffffffffffffffffffffffff16612385611cbf565b73ffffffffffffffffffffffffffffffffffffffff16146123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290613ef2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561244b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124429061459b565b60405180910390fd5b61245481612dc6565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1682108015612522575060036000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6125fd8282604051806020016040528060008152506131fe565b5050565b600061260c82612b1e565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612633612529565b73ffffffffffffffffffffffffffffffffffffffff16148061266657506126658260000151612660612529565b6122cb565b5b806126ab5750612674612529565b73ffffffffffffffffffffffffffffffffffffffff1661269384610b1a565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806126e4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461274d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127b4576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127c18585856001613210565b6127d16000848460000151612531565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612aae5760008054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16811015612aad5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b178585856001613216565b5050505050565b612b2661364b565b600082905060008054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16811015612d8f576000600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d8d57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c71578092505050612dc1565b5b600115612d8c57818060019003925050600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d87578092505050612dc1565b612c72565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612ead8473ffffffffffffffffffffffffffffffffffffffff1661321c565b15612ffe578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ed6612529565b8786866040518563ffffffff1660e01b8152600401612ef89493929190614610565b6020604051808303816000875af1925050508015612f3457506040513d601f19601f82011682018060405250810190612f319190614671565b60015b612fae573d8060008114612f64576040519150601f19603f3d011682016040523d82523d6000602084013e612f69565b606091505b50600081511415612fa6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613003565b600190505b949350505050565b6060600e805461301a90613e74565b80601f016020809104026020016040519081016040528092919081815260200182805461304690613e74565b80156130935780601f1061306857610100808354040283529160200191613093565b820191906000526020600020905b81548152906001019060200180831161307657829003601f168201915b5050505050905090565b606060008214156130e5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131f9565b600082905060005b60008214613117578080613100906143df565b915050600a8261311091906141d0565b91506130ed565b60008167ffffffffffffffff8111156131335761313261396a565b5b6040519080825280601f01601f1916602001820160405280156131655781602001600182028036833780820191505090505b5090505b600085146131f25760018261317e9190614247565b9150600a8561318d919061469e565b60306131999190614019565b60f81b8183815181106131af576131ae614379565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131eb91906141d0565b9450613169565b8093505050505b919050565b61320b838383600161322f565b505050565b50505050565b50505050565b600080823b905060008111915050919050565b60008060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156132ca576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613305576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133126000868387613210565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561357757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a483801561352b57506135296000888488612e8c565b155b15613562576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818060010192505080806001019150506134b0565b50806000806101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550506135be6000868387613216565b5050505050565b8280546135d190613e74565b90600052602060002090601f0160209004810192826135f3576000855561363a565b82601f1061360c57805160ff191683800117855561363a565b8280016001018555821561363a579182015b8281111561363957825182559160200191906001019061361e565b5b509050613647919061368e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156136a757600081600090555060010161368f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136f4816136bf565b81146136ff57600080fd5b50565b600081359050613711816136eb565b92915050565b60006020828403121561372d5761372c6136b5565b5b600061373b84828501613702565b91505092915050565b60008115159050919050565b61375981613744565b82525050565b60006020820190506137746000830184613750565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137b4578082015181840152602081019050613799565b838111156137c3576000848401525b50505050565b6000601f19601f8301169050919050565b60006137e58261377a565b6137ef8185613785565b93506137ff818560208601613796565b613808816137c9565b840191505092915050565b6000602082019050818103600083015261382d81846137da565b905092915050565b6000819050919050565b61384881613835565b811461385357600080fd5b50565b6000813590506138658161383f565b92915050565b600060208284031215613881576138806136b5565b5b600061388f84828501613856565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138c382613898565b9050919050565b6138d3816138b8565b82525050565b60006020820190506138ee60008301846138ca565b92915050565b6138fd816138b8565b811461390857600080fd5b50565b60008135905061391a816138f4565b92915050565b60008060408385031215613937576139366136b5565b5b60006139458582860161390b565b925050602061395685828601613856565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6139a2826137c9565b810181811067ffffffffffffffff821117156139c1576139c061396a565b5b80604052505050565b60006139d46136ab565b90506139e08282613999565b919050565b600067ffffffffffffffff821115613a00576139ff61396a565b5b613a09826137c9565b9050602081019050919050565b82818337600083830152505050565b6000613a38613a33846139e5565b6139ca565b905082815260208101848484011115613a5457613a53613965565b5b613a5f848285613a16565b509392505050565b600082601f830112613a7c57613a7b613960565b5b8135613a8c848260208601613a25565b91505092915050565b600060208284031215613aab57613aaa6136b5565b5b600082013567ffffffffffffffff811115613ac957613ac86136ba565b5b613ad584828501613a67565b91505092915050565b613ae781613744565b8114613af257600080fd5b50565b600081359050613b0481613ade565b92915050565b600060208284031215613b2057613b1f6136b5565b5b6000613b2e84828501613af5565b91505092915050565b613b4081613835565b82525050565b6000602082019050613b5b6000830184613b37565b92915050565b600080600060608486031215613b7a57613b796136b5565b5b6000613b888682870161390b565b9350506020613b998682870161390b565b9250506040613baa86828701613856565b9150509250925092565b600080fd5b600080fd5b60008083601f840112613bd457613bd3613960565b5b8235905067ffffffffffffffff811115613bf157613bf0613bb4565b5b602083019150836020820283011115613c0d57613c0c613bb9565b5b9250929050565b600080600060408486031215613c2d57613c2c6136b5565b5b6000613c3b8682870161390b565b935050602084013567ffffffffffffffff811115613c5c57613c5b6136ba565b5b613c6886828701613bbe565b92509250509250925092565b600060208284031215613c8a57613c896136b5565b5b6000613c988482850161390b565b91505092915050565b60008060408385031215613cb857613cb76136b5565b5b6000613cc68582860161390b565b9250506020613cd785828601613af5565b9150509250929050565b600067ffffffffffffffff821115613cfc57613cfb61396a565b5b613d05826137c9565b9050602081019050919050565b6000613d25613d2084613ce1565b6139ca565b905082815260208101848484011115613d4157613d40613965565b5b613d4c848285613a16565b509392505050565b600082601f830112613d6957613d68613960565b5b8135613d79848260208601613d12565b91505092915050565b60008060008060808587031215613d9c57613d9b6136b5565b5b6000613daa8782880161390b565b9450506020613dbb8782880161390b565b9350506040613dcc87828801613856565b925050606085013567ffffffffffffffff811115613ded57613dec6136ba565b5b613df987828801613d54565b91505092959194509250565b60008060408385031215613e1c57613e1b6136b5565b5b6000613e2a8582860161390b565b9250506020613e3b8582860161390b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e8c57607f821691505b60208210811415613ea057613e9f613e45565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613edc602083613785565b9150613ee782613ea6565b602082019050919050565b60006020820190508181036000830152613f0b81613ecf565b9050919050565b7f4d696e74696e67206973207061757365642e0000000000000000000000000000600082015250565b6000613f48601283613785565b9150613f5382613f12565b602082019050919050565b60006020820190508181036000830152613f7781613f3b565b9050919050565b7f496e76616c6964207175616e746974792e000000000000000000000000000000600082015250565b6000613fb4601183613785565b9150613fbf82613f7e565b602082019050919050565b60006020820190508181036000830152613fe381613fa7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061402482613835565b915061402f83613835565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561406457614063613fea565b5b828201905092915050565b7f45786365656473206d6178696d756d20737570706c792e000000000000000000600082015250565b60006140a5601783613785565b91506140b08261406f565b602082019050919050565b600060208201905081810360008301526140d481614098565b9050919050565b60006140e682613835565b91506140f183613835565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561412a57614129613fea565b5b828202905092915050565b7f4e6f7420656e6f75676820737570706c792e0000000000000000000000000000600082015250565b600061416b601283613785565b915061417682614135565b602082019050919050565b6000602082019050818103600083015261419a8161415e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141db82613835565b91506141e683613835565b9250826141f6576141f56141a1565b5b828204905092915050565b600081905092915050565b50565b600061421c600083614201565b91506142278261420c565b600082019050919050565b600061423d8261420f565b9150819050919050565b600061425282613835565b915061425d83613835565b9250828210156142705761426f613fea565b5b828203905092915050565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b60006142b1601683613785565b91506142bc8261427b565b602082019050919050565b600060208201905081810360008301526142e0816142a4565b9050919050565b7f596f752073686f756c64206275726e2033206f72206d6f726520746f6b656e7360008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000614343602183613785565b915061434e826142e7565b604082019050919050565b6000602082019050818103600083015261437281614336565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006060820190506143bd60008301866138ca565b6143ca60208301856138ca565b6143d76040830184613b37565b949350505050565b60006143ea82613835565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561441d5761441c613fea565b5b600182019050919050565b600081905092915050565b600061443e8261377a565b6144488185614428565b9350614458818560208601613796565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461448681613e74565b6144908186614428565b945060018216600081146144ab57600181146144bc576144ef565b60ff198316865281860193506144ef565b6144c585614464565b60005b838110156144e7578154818901526001820191506020810190506144c8565b838801955050505b50505092915050565b60006145048286614433565b91506145108285614433565b915061451c8284614479565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614585602683613785565b915061459082614529565b604082019050919050565b600060208201905081810360008301526145b481614578565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006145e2826145bb565b6145ec81856145c6565b93506145fc818560208601613796565b614605816137c9565b840191505092915050565b600060808201905061462560008301876138ca565b61463260208301866138ca565b61463f6040830185613b37565b818103606083015261465181846145d7565b905095945050505050565b60008151905061466b816136eb565b92915050565b600060208284031215614687576146866136b5565b5b60006146958482850161465c565b91505092915050565b60006146a982613835565b91506146b483613835565b9250826146c4576146c36141a1565b5b82820690509291505056fea2646970667358221220cb63147b0950a68cb9a411e8a4093eed6d78d7b2b377721e3c9f112a870552d164736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000a2f72657665616c65642f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d62644a376a69674d31623539557846514673754e77427556545666344e696f3955456b486f6b7a3570684270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c80635c5458ef11610139578063a1470c1d116100b6578063cd87fcfe1161007a578063cd87fcfe14610830578063ce05ecba1461085b578063d547cfb714610884578063e0a80853146108af578063e985e9c5146108d8578063f2fde38b1461091557610246565b8063a1470c1d1461074d578063a22cb46514610776578063b88d4fde1461079f578063c002d23d146107c8578063c87b56dd146107f357610246565b8063715018a6116100fd578063715018a61461068c5780637f00c7a6146106a35780638da5cb5b146106cc578063902d55a5146106f757806395d89b411461072257610246565b80635c5458ef146105935780635c975abb146105be5780636352211e146105e95780636a4206141461062657806370a082311461064f57610246565b80632f745c59116101c757806344a0d68a1161018b57806344a0d68a146104bb57806345718278146104e45780634f6ccce714610500578063518302271461053d5780635503a0e81461056857610246565b80632f745c591461040657806330176e13146104435780633ccfd60b1461046c57806342842e0e14610476578063449a52f81461049f57610246565b806316c38b3c1161020e57806316c38b3c1461034257806317fb85941461036b57806318160ddd14610387578063187fad82146103b257806323b872dd146103dd57610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806316ba10e014610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613717565b61093e565b60405161027f919061375f565b60405180910390f35b34801561029457600080fd5b5061029d610a88565b6040516102aa9190613813565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d5919061386b565b610b1a565b6040516102e791906138d9565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613920565b610b96565b005b34801561032557600080fd5b50610340600480360381019061033b9190613a95565b610ca1565b005b34801561034e57600080fd5b5061036960048036038101906103649190613b0a565b610d37565b005b6103856004803603810190610380919061386b565b610dd0565b005b34801561039357600080fd5b5061039c610f7e565b6040516103a99190613b46565b60405180910390f35b3480156103be57600080fd5b506103c7610fd3565b6040516103d49190613813565b60405180910390f35b3480156103e957600080fd5b5061040460048036038101906103ff9190613b61565b611061565b005b34801561041257600080fd5b5061042d60048036038101906104289190613920565b611071565b60405161043a9190613b46565b60405180910390f35b34801561044f57600080fd5b5061046a60048036038101906104659190613a95565b611278565b005b61047461130e565b005b34801561048257600080fd5b5061049d60048036038101906104989190613b61565b6114d6565b005b6104b960048036038101906104b49190613920565b6114f6565b005b3480156104c757600080fd5b506104e260048036038101906104dd919061386b565b6115e9565b005b6104fe60048036038101906104f99190613c14565b61166f565b005b34801561050c57600080fd5b506105276004803603810190610522919061386b565b61181a565b6040516105349190613b46565b60405180910390f35b34801561054957600080fd5b5061055261198b565b60405161055f919061375f565b60405180910390f35b34801561057457600080fd5b5061057d61199e565b60405161058a9190613813565b60405180910390f35b34801561059f57600080fd5b506105a8611a2c565b6040516105b59190613b46565b60405180910390f35b3480156105ca57600080fd5b506105d3611a32565b6040516105e0919061375f565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b919061386b565b611a45565b60405161061d91906138d9565b60405180910390f35b34801561063257600080fd5b5061064d6004803603810190610648919061386b565b611a5b565b005b34801561065b57600080fd5b5061067660048036038101906106719190613c74565b611ae1565b6040516106839190613b46565b60405180910390f35b34801561069857600080fd5b506106a1611bb1565b005b3480156106af57600080fd5b506106ca60048036038101906106c5919061386b565b611c39565b005b3480156106d857600080fd5b506106e1611cbf565b6040516106ee91906138d9565b60405180910390f35b34801561070357600080fd5b5061070c611ce9565b6040516107199190613b46565b60405180910390f35b34801561072e57600080fd5b50610737611cef565b6040516107449190613813565b60405180910390f35b34801561075957600080fd5b50610774600480360381019061076f919061386b565b611d81565b005b34801561078257600080fd5b5061079d60048036038101906107989190613ca1565b611e07565b005b3480156107ab57600080fd5b506107c660048036038101906107c19190613d82565b611f7f565b005b3480156107d457600080fd5b506107dd611fd2565b6040516107ea9190613b46565b60405180910390f35b3480156107ff57600080fd5b5061081a6004803603810190610815919061386b565b611fd8565b6040516108279190613813565b60405180910390f35b34801561083c57600080fd5b50610845612108565b6040516108529190613b46565b60405180910390f35b34801561086757600080fd5b50610882600480360381019061087d9190613a95565b61210e565b005b34801561089057600080fd5b506108996121a4565b6040516108a69190613813565b60405180910390f35b3480156108bb57600080fd5b506108d660048036038101906108d19190613b0a565b612232565b005b3480156108e457600080fd5b506108ff60048036038101906108fa9190613e05565b6122cb565b60405161090c919061375f565b60405180910390f35b34801561092157600080fd5b5061093c60048036038101906109379190613c74565b61235f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a0957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a7157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a815750610a8082612457565b5b9050919050565b606060018054610a9790613e74565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac390613e74565b8015610b105780601f10610ae557610100808354040283529160200191610b10565b820191906000526020600020905b815481529060010190602001808311610af357829003601f168201915b5050505050905090565b6000610b25826124c1565b610b5b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba182611a45565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c09576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c28612529565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c5a5750610c5881610c53612529565b6122cb565b155b15610c91576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c9c838383612531565b505050565b610ca9612529565b73ffffffffffffffffffffffffffffffffffffffff16610cc7611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614610d1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1490613ef2565b60405180910390fd5b80600f9080519060200190610d339291906135c5565b5050565b610d3f612529565b73ffffffffffffffffffffffffffffffffffffffff16610d5d611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614610db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daa90613ef2565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b6000610dda610f7e565b9050601060009054906101000a900460ff1615610e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2390613f5e565b60405180910390fd5b600082118015610e3e5750600b548211155b610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490613fca565b60405180910390fd5b6008548282610e8c9190614019565b1115610ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec4906140bb565b60405180910390fd5b610ed5611cbf565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f7057600a548282610f169190614019565b111580610f30575081600954610f2c91906140db565b3410155b610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690614181565b60405180910390fd5b5b610f7a33836125e3565b5050565b60008060109054906101000a90046fffffffffffffffffffffffffffffffff1660008054906101000a90046fffffffffffffffffffffffffffffffff16036fffffffffffffffffffffffffffffffff16905090565b60118054610fe090613e74565b80601f016020809104026020016040519081016040528092919081815260200182805461100c90613e74565b80156110595780601f1061102e57610100808354040283529160200191611059565b820191906000526020600020905b81548152906001019060200180831161103c57829003601f168201915b505050505081565b61106c838383612601565b505050565b600061107c83611ae1565b82106110b4576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905060008060005b8381101561126c576000600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151156111cb575061125f565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461120b57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561125d5786841415611254578195505050505050611272565b83806001019450505b505b80806001019150506110ee565b50600080fd5b92915050565b611280612529565b73ffffffffffffffffffffffffffffffffffffffff1661129e611cbf565b73ffffffffffffffffffffffffffffffffffffffff16146112f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112eb90613ef2565b60405180910390fd5b80600e908051906020019061130a9291906135c5565b5050565b611316612529565b73ffffffffffffffffffffffffffffffffffffffff16611334611cbf565b73ffffffffffffffffffffffffffffffffffffffff161461138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138190613ef2565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660646014476113d491906140db565b6113de91906141d0565b6040516113ea90614232565b60006040518083038185875af1925050503d8060008114611427576040519150601f19603f3d011682016040523d82523d6000602084013e61142c565b606091505b505090508061143a57600080fd5b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161148290614232565b60006040518083038185875af1925050503d80600081146114bf576040519150601f19603f3d011682016040523d82523d6000602084013e6114c4565b606091505b50509050806114d257600080fd5b5050565b6114f183838360405180602001604052806000815250611f7f565b505050565b6114fe612529565b73ffffffffffffffffffffffffffffffffffffffff1661151c611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156990613ef2565b60405180910390fd5b600061157c610f7e565b90506008546001838361158f9190614019565b6115999190614247565b11156115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d1906142c7565b60405180910390fd5b6115e483836125e3565b505050565b6115f1612529565b73ffffffffffffffffffffffffffffffffffffffff1661160f611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c90613ef2565b60405180910390fd5b8060098190555050565b601060009054906101000a900460ff16156116bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b690613f5e565b60405180910390fd5b60085460016116cc610f7e565b6116d69190614019565b1115611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e906140bb565b60405180910390fd5b600382829050101561175e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175590614359565b60405180910390fd5b60005b82829050811015611809578373ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead86868681811061179f5761179e614379565b5b905060200201356040518463ffffffff1660e01b81526004016117c4939291906143a8565b600060405180830381600087803b1580156117de57600080fd5b505af11580156117f2573d6000803e3d6000fd5b505050508080611801906143df565b915050611761565b506118153360016125e3565b505050565b60008060008054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690506000805b82811015611953576000600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151611945578583141561193c5781945050505050611986565b82806001019350505b508080600101915050611852565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b601060019054906101000a900460ff1681565b600f80546119ab90613e74565b80601f01602080910402602001604051908101604052809291908181526020018280546119d790613e74565b8015611a245780601f106119f957610100808354040283529160200191611a24565b820191906000526020600020905b815481529060010190602001808311611a0757829003601f168201915b505050505081565b600b5481565b601060009054906101000a900460ff1681565b6000611a5082612b1e565b600001519050919050565b611a63612529565b73ffffffffffffffffffffffffffffffffffffffff16611a81611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90613ef2565b60405180910390fd5b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b49576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611bb9612529565b73ffffffffffffffffffffffffffffffffffffffff16611bd7611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2490613ef2565b60405180910390fd5b611c376000612dc6565b565b611c41612529565b73ffffffffffffffffffffffffffffffffffffffff16611c5f611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cac90613ef2565b60405180910390fd5b8060088190555050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60085481565b606060028054611cfe90613e74565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2a90613e74565b8015611d775780601f10611d4c57610100808354040283529160200191611d77565b820191906000526020600020905b815481529060010190602001808311611d5a57829003601f168201915b5050505050905090565b611d89612529565b73ffffffffffffffffffffffffffffffffffffffff16611da7611cbf565b73ffffffffffffffffffffffffffffffffffffffff1614611dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df490613ef2565b60405180910390fd5b80600b8190555050565b611e0f612529565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e74576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000611e81612529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f2e612529565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f73919061375f565b60405180910390a35050565b611f8a848484612601565b611f9684848484612e8c565b611fcc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60095481565b6060611fe3826124c1565b612019576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601060019054906101000a900460ff166120bf576011805461203a90613e74565b80601f016020809104026020016040519081016040528092919081815260200182805461206690613e74565b80156120b35780601f10612088576101008083540402835291602001916120b3565b820191906000526020600020905b81548152906001019060200180831161209657829003601f168201915b50505050509050612103565b6120c761300b565b6120dd612710846120d89190614019565b61309d565b600f6040516020016120f1939291906144f8565b60405160208183030381529060405290505b919050565b600a5481565b612116612529565b73ffffffffffffffffffffffffffffffffffffffff16612134611cbf565b73ffffffffffffffffffffffffffffffffffffffff161461218a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218190613ef2565b60405180910390fd5b80601190805190602001906121a09291906135c5565b5050565b600e80546121b190613e74565b80601f01602080910402602001604051908101604052809291908181526020018280546121dd90613e74565b801561222a5780601f106121ff5761010080835404028352916020019161222a565b820191906000526020600020905b81548152906001019060200180831161220d57829003601f168201915b505050505081565b61223a612529565b73ffffffffffffffffffffffffffffffffffffffff16612258611cbf565b73ffffffffffffffffffffffffffffffffffffffff16146122ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a590613ef2565b60405180910390fd5b80601060016101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612367612529565b73ffffffffffffffffffffffffffffffffffffffff16612385611cbf565b73ffffffffffffffffffffffffffffffffffffffff16146123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290613ef2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561244b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124429061459b565b60405180910390fd5b61245481612dc6565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1682108015612522575060036000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6125fd8282604051806020016040528060008152506131fe565b5050565b600061260c82612b1e565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612633612529565b73ffffffffffffffffffffffffffffffffffffffff16148061266657506126658260000151612660612529565b6122cb565b5b806126ab5750612674612529565b73ffffffffffffffffffffffffffffffffffffffff1661269384610b1a565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806126e4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461274d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127b4576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127c18585856001613210565b6127d16000848460000151612531565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612aae5760008054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16811015612aad5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b178585856001613216565b5050505050565b612b2661364b565b600082905060008054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16811015612d8f576000600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d8d57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c71578092505050612dc1565b5b600115612d8c57818060019003925050600360008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d87578092505050612dc1565b612c72565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612ead8473ffffffffffffffffffffffffffffffffffffffff1661321c565b15612ffe578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ed6612529565b8786866040518563ffffffff1660e01b8152600401612ef89493929190614610565b6020604051808303816000875af1925050508015612f3457506040513d601f19601f82011682018060405250810190612f319190614671565b60015b612fae573d8060008114612f64576040519150601f19603f3d011682016040523d82523d6000602084013e612f69565b606091505b50600081511415612fa6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613003565b600190505b949350505050565b6060600e805461301a90613e74565b80601f016020809104026020016040519081016040528092919081815260200182805461304690613e74565b80156130935780601f1061306857610100808354040283529160200191613093565b820191906000526020600020905b81548152906001019060200180831161307657829003601f168201915b5050505050905090565b606060008214156130e5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131f9565b600082905060005b60008214613117578080613100906143df565b915050600a8261311091906141d0565b91506130ed565b60008167ffffffffffffffff8111156131335761313261396a565b5b6040519080825280601f01601f1916602001820160405280156131655781602001600182028036833780820191505090505b5090505b600085146131f25760018261317e9190614247565b9150600a8561318d919061469e565b60306131999190614019565b60f81b8183815181106131af576131ae614379565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131eb91906141d0565b9450613169565b8093505050505b919050565b61320b838383600161322f565b505050565b50505050565b50505050565b600080823b905060008111915050919050565b60008060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156132ca576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613305576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133126000868387613210565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561357757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a483801561352b57506135296000888488612e8c565b155b15613562576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818060010192505080806001019150506134b0565b50806000806101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550506135be6000868387613216565b5050505050565b8280546135d190613e74565b90600052602060002090601f0160209004810192826135f3576000855561363a565b82601f1061360c57805160ff191683800117855561363a565b8280016001018555821561363a579182015b8281111561363957825182559160200191906001019061361e565b5b509050613647919061368e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156136a757600081600090555060010161368f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136f4816136bf565b81146136ff57600080fd5b50565b600081359050613711816136eb565b92915050565b60006020828403121561372d5761372c6136b5565b5b600061373b84828501613702565b91505092915050565b60008115159050919050565b61375981613744565b82525050565b60006020820190506137746000830184613750565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137b4578082015181840152602081019050613799565b838111156137c3576000848401525b50505050565b6000601f19601f8301169050919050565b60006137e58261377a565b6137ef8185613785565b93506137ff818560208601613796565b613808816137c9565b840191505092915050565b6000602082019050818103600083015261382d81846137da565b905092915050565b6000819050919050565b61384881613835565b811461385357600080fd5b50565b6000813590506138658161383f565b92915050565b600060208284031215613881576138806136b5565b5b600061388f84828501613856565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138c382613898565b9050919050565b6138d3816138b8565b82525050565b60006020820190506138ee60008301846138ca565b92915050565b6138fd816138b8565b811461390857600080fd5b50565b60008135905061391a816138f4565b92915050565b60008060408385031215613937576139366136b5565b5b60006139458582860161390b565b925050602061395685828601613856565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6139a2826137c9565b810181811067ffffffffffffffff821117156139c1576139c061396a565b5b80604052505050565b60006139d46136ab565b90506139e08282613999565b919050565b600067ffffffffffffffff821115613a00576139ff61396a565b5b613a09826137c9565b9050602081019050919050565b82818337600083830152505050565b6000613a38613a33846139e5565b6139ca565b905082815260208101848484011115613a5457613a53613965565b5b613a5f848285613a16565b509392505050565b600082601f830112613a7c57613a7b613960565b5b8135613a8c848260208601613a25565b91505092915050565b600060208284031215613aab57613aaa6136b5565b5b600082013567ffffffffffffffff811115613ac957613ac86136ba565b5b613ad584828501613a67565b91505092915050565b613ae781613744565b8114613af257600080fd5b50565b600081359050613b0481613ade565b92915050565b600060208284031215613b2057613b1f6136b5565b5b6000613b2e84828501613af5565b91505092915050565b613b4081613835565b82525050565b6000602082019050613b5b6000830184613b37565b92915050565b600080600060608486031215613b7a57613b796136b5565b5b6000613b888682870161390b565b9350506020613b998682870161390b565b9250506040613baa86828701613856565b9150509250925092565b600080fd5b600080fd5b60008083601f840112613bd457613bd3613960565b5b8235905067ffffffffffffffff811115613bf157613bf0613bb4565b5b602083019150836020820283011115613c0d57613c0c613bb9565b5b9250929050565b600080600060408486031215613c2d57613c2c6136b5565b5b6000613c3b8682870161390b565b935050602084013567ffffffffffffffff811115613c5c57613c5b6136ba565b5b613c6886828701613bbe565b92509250509250925092565b600060208284031215613c8a57613c896136b5565b5b6000613c988482850161390b565b91505092915050565b60008060408385031215613cb857613cb76136b5565b5b6000613cc68582860161390b565b9250506020613cd785828601613af5565b9150509250929050565b600067ffffffffffffffff821115613cfc57613cfb61396a565b5b613d05826137c9565b9050602081019050919050565b6000613d25613d2084613ce1565b6139ca565b905082815260208101848484011115613d4157613d40613965565b5b613d4c848285613a16565b509392505050565b600082601f830112613d6957613d68613960565b5b8135613d79848260208601613d12565b91505092915050565b60008060008060808587031215613d9c57613d9b6136b5565b5b6000613daa8782880161390b565b9450506020613dbb8782880161390b565b9350506040613dcc87828801613856565b925050606085013567ffffffffffffffff811115613ded57613dec6136ba565b5b613df987828801613d54565b91505092959194509250565b60008060408385031215613e1c57613e1b6136b5565b5b6000613e2a8582860161390b565b9250506020613e3b8582860161390b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e8c57607f821691505b60208210811415613ea057613e9f613e45565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613edc602083613785565b9150613ee782613ea6565b602082019050919050565b60006020820190508181036000830152613f0b81613ecf565b9050919050565b7f4d696e74696e67206973207061757365642e0000000000000000000000000000600082015250565b6000613f48601283613785565b9150613f5382613f12565b602082019050919050565b60006020820190508181036000830152613f7781613f3b565b9050919050565b7f496e76616c6964207175616e746974792e000000000000000000000000000000600082015250565b6000613fb4601183613785565b9150613fbf82613f7e565b602082019050919050565b60006020820190508181036000830152613fe381613fa7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061402482613835565b915061402f83613835565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561406457614063613fea565b5b828201905092915050565b7f45786365656473206d6178696d756d20737570706c792e000000000000000000600082015250565b60006140a5601783613785565b91506140b08261406f565b602082019050919050565b600060208201905081810360008301526140d481614098565b9050919050565b60006140e682613835565b91506140f183613835565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561412a57614129613fea565b5b828202905092915050565b7f4e6f7420656e6f75676820737570706c792e0000000000000000000000000000600082015250565b600061416b601283613785565b915061417682614135565b602082019050919050565b6000602082019050818103600083015261419a8161415e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141db82613835565b91506141e683613835565b9250826141f6576141f56141a1565b5b828204905092915050565b600081905092915050565b50565b600061421c600083614201565b91506142278261420c565b600082019050919050565b600061423d8261420f565b9150819050919050565b600061425282613835565b915061425d83613835565b9250828210156142705761426f613fea565b5b828203905092915050565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b60006142b1601683613785565b91506142bc8261427b565b602082019050919050565b600060208201905081810360008301526142e0816142a4565b9050919050565b7f596f752073686f756c64206275726e2033206f72206d6f726520746f6b656e7360008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000614343602183613785565b915061434e826142e7565b604082019050919050565b6000602082019050818103600083015261437281614336565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006060820190506143bd60008301866138ca565b6143ca60208301856138ca565b6143d76040830184613b37565b949350505050565b60006143ea82613835565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561441d5761441c613fea565b5b600182019050919050565b600081905092915050565b600061443e8261377a565b6144488185614428565b9350614458818560208601613796565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461448681613e74565b6144908186614428565b945060018216600081146144ab57600181146144bc576144ef565b60ff198316865281860193506144ef565b6144c585614464565b60005b838110156144e7578154818901526001820191506020810190506144c8565b838801955050505b50505092915050565b60006145048286614433565b91506145108285614433565b915061451c8284614479565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614585602683613785565b915061459082614529565b604082019050919050565b600060208201905081810360008301526145b481614578565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006145e2826145bb565b6145ec81856145c6565b93506145fc818560208601613796565b614605816137c9565b840191505092915050565b600060808201905061462560008301876138ca565b61463260208301866138ca565b61463f6040830185613b37565b818103606083015261465181846145d7565b905095945050505050565b60008151905061466b816136eb565b92915050565b600060208284031215614687576146866136b5565b5b60006146958482850161465c565b91505092915050565b60006146a982613835565b91506146b483613835565b9250826146c4576146c36141a1565b5b82820690509291505056fea2646970667358221220cb63147b0950a68cb9a411e8a4093eed6d78d7b2b377721e3c9f112a870552d164736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000a2f72657665616c65642f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d62644a376a69674d31623539557846514673754e77427556545666344e696f3955456b486f6b7a3570684270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): /revealed/
Arg [1] : _revealImage (string): https://ipfs.io/ipfs/QmbdJ7jigM1b59UxFQFsuNwBuVTVf4Nio9UEkHokz5phBp
Arg [2] : _uriSuffix (string): .json
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 2f72657665616c65642f00000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [6] : 68747470733a2f2f697066732e696f2f697066732f516d62644a376a69674d31
Arg [7] : 623539557846514673754e77427556545666344e696f3955456b486f6b7a3570
Arg [8] : 6842700000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
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.