Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
7040
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MyHeroSidekicks
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Amended by HashLips /** !Disclaimer! These contracts have been used to create tutorials, and was created for the purpose to teach people how to create smart contracts on the blockchain. please review this code on your own before using any of the following code for production. HashLips will not be liable in any way if for the use of the code. That being said, the code has been tested to the best of the developers' knowledge to work as intended. */ // File: @openzeppelin/contracts/utils/introspection/IERC165.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol pragma solidity ^0.8.0; /** * @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; } } // File: @openzeppelin/contracts/utils/Strings.sol pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Address.sol 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); } } } } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/Context.sol pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol pragma solidity ^0.8.0; /** * @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 {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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); } } //MarkleTree Import //import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol"; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; pragma solidity >=0.7.0 <0.9.0; contract MyHeroSidekicks is ERC721Enumerable, Ownable { using Strings for uint256; address public withdrawAddress = 0xaB0C48237d14067Fea6D30AB7dEAB746857577A7; string baseURI; string public baseExtension = ".json"; uint256 public cost = 0.001 ether; //★ uint256 public maxSupply = 10000; //★ bool public revealed = false; string public notRevealedUri; uint8 public saleStage = 0; //現在のセール内容 //0 : consruct paused //1 : WL Sale //2 : Public Sale //3 : BurnMint Sale uint8 constant MAX_PUB_SALE = 30; //パブリックセール最大回数 uint8 public pubSaleCount = 0; //1回目のはプリックセールが0 uint256 public maxMintAmount = 5; //★ mapping(address => uint8[MAX_PUB_SALE]) public publicMintedAmount; uint8 constant MAX_WL_SALE = 30; //WLセール最大回数 uint8 public wlSaleCount = 0; //1回目のセールが0 uint8[MAX_WL_SALE] public maxWLMintAmount; //wlSaleCountごとのMint枚数 bytes32[MAX_WL_SALE] public whitelistMearkleRoot; //wlSaleCountに応じたMearkleRoot mapping(address => uint8[MAX_WL_SALE]) public whitelistMintedAmount; //アドレスに対してwlSaleCountに応じたmint枚数を格納 uint8 constant MAX_BM_SALE = 30; //BurnMintセール最大回数 uint256 public maxBmSupply = 500; //★BMで何体出すか uint256 public totalBmSupply = 0; //BMで何体出たか uint8 public bmSaleCount = 0; //1回目のburnMintセールが0 uint8[MAX_BM_SALE] public maxBmAmount; //bmSaleCountごとのburnMInt可能枚数 bytes32[MAX_BM_SALE] public burnMintWlMearkleRoot; //bmSaleCountごとのMearkleRoot; mapping(address => uint8[MAX_BM_SALE]) public burnMintedAmount; //アドレスに対してbmSaleCountに応じたmint枚数を格納 constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721(_name, _symbol) { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // public function mint(uint256 _mintAmount) public payable { require(saleStage == 2, "the contract is no Public Sale"); uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); if (msg.sender != owner()) { require(publicMintedAmount[msg.sender][pubSaleCount] + _mintAmount <= maxMintAmount, "max NFT per mint amount exceeded"); require(msg.value >= cost * _mintAmount, "insufficient funds. : mint"); } for (uint256 i = 1; i <= _mintAmount; i++) { publicMintedAmount[msg.sender][pubSaleCount]++; _safeMint(msg.sender, supply + totalBmSupply + i); } } function wl_mint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable { require(saleStage == 1, "the contract is not WL Sale"); uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxWLMintAmount[wlSaleCount], "max mint amount per session exceeded"); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); if (msg.sender != owner()) { require(isWhitelisted(msg.sender, _merkleProof), "You don't have WL."); require(whitelistMintedAmount[msg.sender][wlSaleCount] + _mintAmount <= maxWLMintAmount[wlSaleCount], "max NFT per address exceeded"); require(msg.value >= cost * _mintAmount, "insufficient funds. : Wl mint"); } for (uint256 i = 1; i <= _mintAmount; i++) { whitelistMintedAmount[msg.sender][wlSaleCount]++; _safeMint(msg.sender, supply + totalBmSupply + i); } } function burnMint(uint256[] memory _burnTokenIds, bytes32[] calldata _merkleProof) external payable { require(saleStage == 3, "the contract is not BurnMint Sale"); require(_burnTokenIds.length <= maxBmAmount[bmSaleCount], "max burn mint amount per session exceeded"); require(totalBmSupply + _burnTokenIds.length <= maxBmSupply, "Max Burn mint Supply over!"); if (msg.sender != owner()) { require(isBmWhitelisted(msg.sender, _merkleProof), "You don't have BMWL."); require(burnMintedAmount[msg.sender][bmSaleCount] + _burnTokenIds.length <= maxBmAmount[bmSaleCount], "max BM per address exceeded."); require(msg.value >= cost * _burnTokenIds.length, "insufficient funds. : BM"); } for (uint256 i = 0; i < _burnTokenIds.length; i++) { uint256 tokenId = _burnTokenIds[i]; require(_msgSender() == ownerOf(tokenId), "you are not owner."); totalBmSupply++; _burn(tokenId); } uint256 supply = totalSupply(); for (uint256 i = 1; i <= _burnTokenIds.length; i++) { burnMintedAmount[msg.sender][bmSaleCount]++; _safeMint(msg.sender, supply + totalBmSupply + i); } } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } function isWhitelisted(address _user, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, whitelistMearkleRoot[wlSaleCount], leaf); } function isBmWhitelisted(address _user, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, burnMintWlMearkleRoot[bmSaleCount], leaf); } //only owner function reveal() public onlyOwner { revealed = true; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setSaleStage(uint8 _saleStage) public onlyOwner { saleStage = _saleStage; } function setWithdrawAddress(address _withdrawAddress) public onlyOwner { withdrawAddress = _withdrawAddress; } //WL function setMaxWLMintAmount(uint256 _wlSaleCount, uint8 _maxWLMintAmount) public onlyOwner{ maxWLMintAmount[_wlSaleCount] = _maxWLMintAmount; } function setWhitelistMearkleRoot(uint256 _wlSaleCount, bytes32 _wlMearkleRoot) public onlyOwner{ whitelistMearkleRoot[_wlSaleCount] = _wlMearkleRoot; } function setWlSaleCount(uint8 _wlSaleCount) public onlyOwner{ require(_wlSaleCount <= MAX_WL_SALE, "WL Sale count over!"); wlSaleCount = _wlSaleCount; } //Burn-Mint function setMaxBmSupply(uint256 _maxBmSupply) public onlyOwner { maxBmSupply = _maxBmSupply; } function setMaxBMAmount(uint256 _bmSaleCount, uint8 _maxBmAmount) public onlyOwner{ maxBmAmount[_bmSaleCount] = _maxBmAmount; } function setBurnMintWlMearkleRoot(uint256 _bmSaleCount, bytes32 _bmMearkleRoot) public onlyOwner{ burnMintWlMearkleRoot[_bmSaleCount] = _bmMearkleRoot; } function setBmSaleCount(uint8 _bmSaleCount) public onlyOwner{ require(_bmSaleCount <= MAX_BM_SALE, "BM Sale count over!"); bmSaleCount = _bmSaleCount; } //withdraw function withdraw() public payable onlyOwner { // This will pay HashLips 5% of the initial sale. // You can remove this if you want, or keep it in to support HashLips and his channel. // ============================================================================= // (bool hs, ) = payable(0x943590A42C27D08e3744202c4Ae5eD55c2dE240D).call{value: address(this).balance * 5 / 100}(""); // require(hs); // ============================================================================= // This will payout the owner 95% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= //(bool os, ) = payable(owner()).call{value: address(this).balance}(""); (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}(""); require(os); // ============================================================================= } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bmSaleCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"burnMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnMintWlMearkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnMintedAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isBmWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxBmAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBmSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxWLMintAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubSaleCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"publicMintedAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","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":[],"name":"saleStage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_bmSaleCount","type":"uint8"}],"name":"setBmSaleCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bmSaleCount","type":"uint256"},{"internalType":"bytes32","name":"_bmMearkleRoot","type":"bytes32"}],"name":"setBurnMintWlMearkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bmSaleCount","type":"uint256"},{"internalType":"uint8","name":"_maxBmAmount","type":"uint8"}],"name":"setMaxBMAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBmSupply","type":"uint256"}],"name":"setMaxBmSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlSaleCount","type":"uint256"},{"internalType":"uint8","name":"_maxWLMintAmount","type":"uint8"}],"name":"setMaxWLMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_saleStage","type":"uint8"}],"name":"setSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlSaleCount","type":"uint256"},{"internalType":"bytes32","name":"_wlMearkleRoot","type":"bytes32"}],"name":"setWhitelistMearkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_wlSaleCount","type":"uint8"}],"name":"setWlSaleCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","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":"totalBmSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistMearkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistMintedAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlSaleCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"wl_mint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
600b80546001600160a01b03191673ab0c48237d14067fea6d30ab7deab746857577a717905560c06040526005608081905264173539b7b760d91b60a09081526200004e91600d91906200024e565b5066038d7ea4c68000600e55612710600f556010805460ff199081169091556012805461ffff19169055600560135560158054821690556101f46036556000603755603880549091169055348015620000a657600080fd5b506040516200483738038062004837833981016040819052620000c991620003c1565b835184908490620000e29060009060208501906200024e565b508051620000f89060019060208401906200024e565b505050620001156200010f6200013560201b60201c565b62000139565b62000120826200018b565b6200012b81620001f3565b50505050620004b7565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620001da5760405162461bcd60e51b815260206004820181905260248201526000805160206200481783398151915260448201526064015b60405180910390fd5b8051620001ef90600c9060208401906200024e565b5050565b600a546001600160a01b031633146200023e5760405162461bcd60e51b81526020600482018190526024820152600080516020620048178339815191526044820152606401620001d1565b8051620001ef9060119060208401905b8280546200025c906200047a565b90600052602060002090601f016020900481019282620002805760008555620002cb565b82601f106200029b57805160ff1916838001178555620002cb565b82800160010185558215620002cb579182015b82811115620002cb578251825591602001919060010190620002ae565b50620002d9929150620002dd565b5090565b5b80821115620002d95760008155600101620002de565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031c57600080fd5b81516001600160401b0380821115620003395762000339620002f4565b604051601f8301601f19908116603f01168101908282118183101715620003645762000364620002f4565b816040528381526020925086838588010111156200038157600080fd5b600091505b83821015620003a5578582018301518183018401529082019062000386565b83821115620003b75760008385830101525b9695505050505050565b60008060008060808587031215620003d857600080fd5b84516001600160401b0380821115620003f057600080fd5b620003fe888389016200030a565b955060208701519150808211156200041557600080fd5b62000423888389016200030a565b945060408701519150808211156200043a57600080fd5b62000448888389016200030a565b935060608701519150808211156200045f57600080fd5b506200046e878288016200030a565b91505092959194509250565b600181811c908216806200048f57607f821691505b60208210811415620004b157634e487b7160e01b600052602260045260246000fd5b50919050565b61435080620004c76000396000f3fe6080604052600436106103a25760003560e01c80636ee87585116101e7578063a43ef4ff1161010d578063d5abeb01116100a0578063e985e9c51161006f578063e985e9c514610a4a578063f2c4ce1e14610a93578063f2fde38b14610ab3578063fe16776314610ad357600080fd5b8063d5abeb01146109d4578063d911cc0e146109ea578063da3ef23f14610a0a578063e67797ac14610a2a57600080fd5b8063bac160b5116100dc578063bac160b514610965578063c668286214610985578063c87b56dd1461099a578063ce5b9b04146109ba57600080fd5b8063a43ef4ff146108f0578063a475b5dd14610910578063b44c576714610925578063b88d4fde1461094557600080fd5b80637f00c7a61161018557806395d89b411161015457806395d89b41146108885780639f9101a61461089d578063a0712d68146108bd578063a22cb465146108d057600080fd5b80637f00c7a61461080a5780638464890a1461082a5780638da5cb5b1461084a578063940d53431461086857600080fd5b806370a08231116101c157806370a08231146107a2578063712ff68e146107c2578063715018a6146107d5578063719bd10c146107ea57600080fd5b80636ee87585146107555780636f8b44b0146107685780637067fd631461078857600080fd5b80632f745c59116102cc57806344a0d68a1161026a57806354c55c041161023957806354c55c04146106d557806355f804b3146106f55780635a23dd99146107155780636352211e1461073557600080fd5b806344a0d68a146106615780634aaca86d146106815780634f6ccce71461069b57806351830227146106bb57600080fd5b80633b27a1d9116102a65780633b27a1d9146105f95780633ccfd60b1461061957806342842e0e1461062157806344726fd61461064157600080fd5b80632f745c59146105995780633a5b7bcf146105b95780633ab1a494146105d957600080fd5b80631581b600116103445780631caed72b116103135780631caed72b1461052e578063239c70ae1461054457806323b872dd1461055a57806325f22b801461057a57600080fd5b80631581b600146104c357806316a61832146104e357806318160ddd146104f957806319643ed51461050e57600080fd5b8063081812fc11610380578063081812fc14610430578063081c8c4414610468578063095ea7b31461047d57806313faede61461049f57600080fd5b806301ffc9a7146103a757806303ec0644146103dc57806306fdde031461040e575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613a60565b610af3565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103fc6103f7366004613a99565b610b4f565b60405160ff90911681526020016103d3565b34801561041a57600080fd5b50610423610b88565b6040516103d39190613b39565b34801561043c57600080fd5b5061045061044b366004613b4c565b610c1a565b6040516001600160a01b0390911681526020016103d3565b34801561047457600080fd5b50610423610cc5565b34801561048957600080fd5b5061049d610498366004613a99565b610d53565b005b3480156104ab57600080fd5b506104b5600e5481565b6040519081526020016103d3565b3480156104cf57600080fd5b50600b54610450906001600160a01b031681565b3480156104ef57600080fd5b506104b560365481565b34801561050557600080fd5b506008546104b5565b34801561051a57600080fd5b506103fc610529366004613b4c565b610e85565b34801561053a57600080fd5b506104b560375481565b34801561055057600080fd5b506104b560135481565b34801561056657600080fd5b5061049d610575366004613b65565b610eaf565b34801561058657600080fd5b506012546103fc90610100900460ff1681565b3480156105a557600080fd5b506104b56105b4366004613a99565b610f36565b3480156105c557600080fd5b5061049d6105d4366004613bb2565b610fde565b3480156105e557600080fd5b5061049d6105f4366004613bde565b611070565b34801561060557600080fd5b5061049d610614366004613b4c565b611104565b61049d611163565b34801561062d57600080fd5b5061049d61063c366004613b65565b611220565b34801561064d57600080fd5b5061049d61065c366004613bf9565b61123b565b34801561066d57600080fd5b5061049d61067c366004613b4c565b6112ff565b34801561068d57600080fd5b506012546103fc9060ff1681565b3480156106a757600080fd5b506104b56106b6366004613b4c565b61135e565b3480156106c757600080fd5b506010546103c79060ff1681565b3480156106e157600080fd5b506104b56106f0366004613b4c565b611402565b34801561070157600080fd5b5061049d610710366004613d08565b611419565b34801561072157600080fd5b506103c7610730366004613d9d565b61148a565b34801561074157600080fd5b50610450610750366004613b4c565b61153a565b61049d610763366004613df0565b6115c5565b34801561077457600080fd5b5061049d610783366004613b4c565b611a53565b34801561079457600080fd5b506015546103fc9060ff1681565b3480156107ae57600080fd5b506104b56107bd366004613bde565b611ab2565b61049d6107d0366004613eb0565b611b4c565b3480156107e157600080fd5b5061049d611f1a565b3480156107f657600080fd5b506104b5610805366004613b4c565b611f80565b34801561081657600080fd5b5061049d610825366004613b4c565b611f90565b34801561083657600080fd5b5061049d610845366004613bb2565b611fef565b34801561085657600080fd5b50600a546001600160a01b0316610450565b34801561087457600080fd5b5061049d610883366004613bf9565b61205d565b34801561089457600080fd5b50610423612121565b3480156108a957600080fd5b5061049d6108b8366004613ee3565b612130565b61049d6108cb366004613b4c565b6121a4565b3480156108dc57600080fd5b5061049d6108eb366004613f05565b6124cb565b3480156108fc57600080fd5b506103fc61090b366004613a99565b612590565b34801561091c57600080fd5b5061049d6125ac565b34801561093157600080fd5b5061049d610940366004613bf9565b612615565b34801561095157600080fd5b5061049d610960366004613f41565b612685565b34801561097157600080fd5b5061049d610980366004613ee3565b612713565b34801561099157600080fd5b50610423612781565b3480156109a657600080fd5b506104236109b5366004613b4c565b61278e565b3480156109c657600080fd5b506038546103fc9060ff1681565b3480156109e057600080fd5b506104b5600f5481565b3480156109f657600080fd5b506103fc610a05366004613a99565b612916565b348015610a1657600080fd5b5061049d610a25366004613d08565b612932565b348015610a3657600080fd5b506103fc610a45366004613b4c565b61299f565b348015610a5657600080fd5b506103c7610a65366004613fbd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a9f57600080fd5b5061049d610aae366004613d08565b6129af565b348015610abf57600080fd5b5061049d610ace366004613bde565b612a1c565b348015610adf57600080fd5b506103c7610aee366004613d9d565b612afb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610b495750610b4982612b9a565b92915050565b601460205281600052604060002081601e8110610b6b57600080fd5b602081049091015460ff601f9092166101000a9004169150829050565b606060008054610b9790613fe7565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc390613fe7565b8015610c105780601f10610be557610100808354040283529160200191610c10565b820191906000526020600020905b815481529060010190602001808311610bf357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ca95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60118054610cd290613fe7565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfe90613fe7565b8015610d4b5780601f10610d2057610100808354040283529160200191610d4b565b820191906000526020600020905b815481529060010190602001808311610d2e57829003601f168201915b505050505081565b6000610d5e8261153a565b9050806001600160a01b0316836001600160a01b03161415610de85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b336001600160a01b0382161480610e045750610e048133610a65565b610e765760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca0565b610e808383612c7d565b505050565b601681601e8110610e9557600080fd5b60209182820401919006915054906101000a900460ff1681565b610eb93382612d03565b610f2b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca0565b610e80838383612e0b565b6000610f4183611ab2565b8210610fb55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ca0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146110385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80603983601e811061104c5761104c61403b565b602091828204019190066101000a81548160ff021916908360ff1602179055505050565b600a546001600160a01b031633146110ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461115e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b603655565b600a546001600160a01b031633146111bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600b546040516000916001600160a01b03169047908381818185875af1925050503d806000811461120a576040519150601f19603f3d011682016040523d82523d6000602084013e61120f565b606091505b505090508061121d57600080fd5b50565b610e8083838360405180602001604052806000815250612685565b600a546001600160a01b031633146112955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b601e60ff821611156112e95760405162461bcd60e51b815260206004820152601360248201527f574c2053616c6520636f756e74206f76657221000000000000000000000000006044820152606401610ca0565b6015805460ff191660ff92909216919091179055565b600a546001600160a01b031633146113595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600e55565b600061136960085490565b82106113dd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ca0565b600882815481106113f0576113f061403b565b90600052602060002001549050919050565b601781601e811061141257600080fd5b0154905081565b600a546001600160a01b031633146114735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b805161148690600c906020840190613999565b5050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050611531848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015546017925060ff169050601e81106115295761152961403b565b015483612ffb565b95945050505050565b6000818152600260205260408120546001600160a01b031680610b495760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ca0565b60125460ff166003146116405760405162461bcd60e51b815260206004820152602160248201527f74686520636f6e7472616374206973206e6f74204275726e4d696e742053616c60448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b60385460399060ff16601e81106116595761165961403b565b602091828204019190069054906101000a900460ff1660ff16835111156116e85760405162461bcd60e51b815260206004820152602960248201527f6d6178206275726e206d696e7420616d6f756e74207065722073657373696f6e60448201527f20657863656564656400000000000000000000000000000000000000000000006064820152608401610ca0565b60365483516037546116fa9190614099565b11156117485760405162461bcd60e51b815260206004820152601a60248201527f4d6178204275726e206d696e7420537570706c79206f766572210000000000006044820152606401610ca0565b600a546001600160a01b031633146118d857611765338383612afb565b6117b15760405162461bcd60e51b815260206004820152601460248201527f596f7520646f6e2774206861766520424d574c2e0000000000000000000000006044820152606401610ca0565b60385460399060ff16601e81106117ca576117ca61403b565b60208082049092015485513360009081526058909452604090932060385460ff601f9094166101000a90920483169392909116601e811061180d5761180d61403b565b60208104919091015461182c9291601f166101000a900460ff16614099565b111561187a5760405162461bcd60e51b815260206004820152601c60248201527f6d617820424d2070657220616464726573732065786365656465642e000000006044820152606401610ca0565b8251600e5461188991906140b1565b3410156118d85760405162461bcd60e51b815260206004820152601860248201527f696e73756666696369656e742066756e64732e203a20424d00000000000000006044820152606401610ca0565b60005b835181101561199c5760008482815181106118f8576118f861403b565b6020026020010151905061190b8161153a565b6001600160a01b0316336001600160a01b03161461196b5760405162461bcd60e51b815260206004820152601260248201527f796f7520617265206e6f74206f776e65722e00000000000000000000000000006044820152606401610ca0565b6037805490600061197b836140ee565b919050555061198981613011565b5080611994816140ee565b9150506118db565b5060006119a860085490565b905060015b84518111611a4c5733600090815260586020526040902060385460ff16601e81106119da576119da61403b565b6020918282040191900681819054906101000a900460ff16809291906119ff90614127565b91906101000a81548160ff021916908360ff16021790555050611a3a338260375485611a2b9190614099565b611a359190614099565b6130d0565b80611a44816140ee565b9150506119ad565b5050505050565b600a546001600160a01b03163314611aad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600f55565b60006001600160a01b038216611b305760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ca0565b506001600160a01b031660009081526003602052604090205490565b60125460ff16600114611ba15760405162461bcd60e51b815260206004820152601b60248201527f74686520636f6e7472616374206973206e6f7420574c2053616c6500000000006044820152606401610ca0565b6000611bac60085490565b905060008411611bfe5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610ca0565b60155460169060ff16601e8110611c1757611c1761403b565b602081049091015460ff601f9092166101000a900416841115611ca15760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560448201527f65646564000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b600f54611cae8583614099565b1115611cfc5760405162461bcd60e51b815260206004820152601660248201527f6d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610ca0565b600a546001600160a01b03163314611e8857611d1933848461148a565b611d655760405162461bcd60e51b815260206004820152601260248201527f596f7520646f6e2774206861766520574c2e00000000000000000000000000006044820152606401610ca0565b60155460169060ff16601e8110611d7e57611d7e61403b565b6020808204909201543360009081526035909352604090922060155460ff601f9093166101000a909304821692879216601e8110611dbe57611dbe61403b565b602081049190910154611ddd9291601f166101000a900460ff16614099565b1115611e2b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610ca0565b83600e54611e3991906140b1565b341015611e885760405162461bcd60e51b815260206004820152601d60248201527f696e73756666696369656e742066756e64732e203a20576c206d696e740000006044820152606401610ca0565b60015b848111611a4c5733600090815260356020526040902060155460ff16601e8110611eb757611eb761403b565b6020918282040191900681819054906101000a900460ff1680929190611edc90614127565b91906101000a81548160ff021916908360ff16021790555050611f08338260375485611a2b9190614099565b80611f12816140ee565b915050611e8b565b600a546001600160a01b03163314611f745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b611f7e60006130ea565b565b603a81601e811061141257600080fd5b600a546001600160a01b03163314611fea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b601355565b600a546001600160a01b031633146120495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80601683601e811061104c5761104c61403b565b600a546001600160a01b031633146120b75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b601e60ff8216111561210b5760405162461bcd60e51b815260206004820152601360248201527f424d2053616c6520636f756e74206f76657221000000000000000000000000006044820152606401610ca0565b6038805460ff191660ff92909216919091179055565b606060018054610b9790613fe7565b600a546001600160a01b0316331461218a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80601783601e811061219e5761219e61403b565b01555050565b60125460ff166002146121f95760405162461bcd60e51b815260206004820152601e60248201527f74686520636f6e7472616374206973206e6f205075626c69632053616c6500006044820152606401610ca0565b600061220460085490565b9050600082116122565760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610ca0565b6013548211156122cd5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560448201527f65646564000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b600f546122da8383614099565b11156123285760405162461bcd60e51b815260206004820152601660248201527f6d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610ca0565b600a546001600160a01b0316331461243457601354336000908152601460205260409020601254849190610100900460ff16601e811061236a5761236a61403b565b6020810491909101546123899291601f166101000a900460ff16614099565b11156123d75760405162461bcd60e51b815260206004820181905260248201527f6d6178204e465420706572206d696e7420616d6f756e742065786365656465646044820152606401610ca0565b81600e546123e591906140b1565b3410156124345760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e742066756e64732e203a206d696e740000000000006044820152606401610ca0565b60015b828111610e8057336000908152601460205260409020601254610100900460ff16601e81106124685761246861403b565b6020918282040191900681819054906101000a900460ff168092919061248d90614127565b91906101000a81548160ff021916908360ff160217905550506124b9338260375485611a2b9190614099565b806124c3816140ee565b915050612437565b6001600160a01b0382163314156125245760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca0565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b605860205281600052604060002081601e8110610b6b57600080fd5b600a546001600160a01b031633146126065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b6010805460ff19166001179055565b600a546001600160a01b0316331461266f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b6012805460ff191660ff92909216919091179055565b61268f3383612d03565b6127015760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca0565b61270d84848484613154565b50505050565b600a546001600160a01b0316331461276d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80603a83601e811061219e5761219e61403b565b600d8054610cd290613fe7565b6000818152600260205260409020546060906001600160a01b031661281b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ca0565b60105460ff166128b7576011805461283290613fe7565b80601f016020809104026020016040519081016040528092919081815260200182805461285e90613fe7565b80156128ab5780601f10612880576101008083540402835291602001916128ab565b820191906000526020600020905b81548152906001019060200180831161288e57829003601f168201915b50505050509050919050565b60006128c16131dd565b905060008151116128e1576040518060200160405280600081525061290f565b806128eb846131ec565b600d6040516020016128ff93929190614147565b6040516020818303038152906040525b9392505050565b603560205281600052604060002081601e8110610b6b57600080fd5b600a546001600160a01b0316331461298c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b805161148690600d906020840190613999565b603981601e8110610e9557600080fd5b600a546001600160a01b03163314612a095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b8051611486906011906020840190613999565b600a546001600160a01b03163314612a765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b6001600160a01b038116612af25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ca0565b61121d816130ea565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061153184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050603854603a925060ff169050601e81106115295761152961403b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c2d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b4957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b49565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612cca8261153a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612d8d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca0565b6000612d988361153a565b9050806001600160a01b0316846001600160a01b03161480612dd35750836001600160a01b0316612dc884610c1a565b6001600160a01b0316145b80612e0357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612e1e8261153a565b6001600160a01b031614612e9a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ca0565b6001600160a01b038216612f155760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b612f2083838361331e565b612f2b600082612c7d565b6001600160a01b0383166000908152600360205260408120805460019290612f54908490614224565b90915550506001600160a01b0382166000908152600360205260408120805460019290612f82908490614099565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008261300885846133d6565b14949350505050565b600061301c8261153a565b905061302a8160008461331e565b613035600083612c7d565b6001600160a01b038116600090815260036020526040812080546001929061305e908490614224565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611486828260405180602001604052806000815250613423565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61315f848484612e0b565b61316b848484846134ac565b61270d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca0565b6060600c8054610b9790613fe7565b60608161322c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156132565780613240816140ee565b915061324f9050600a8361426a565b9150613230565b60008167ffffffffffffffff81111561327157613271613c14565b6040519080825280601f01601f19166020018201604052801561329b576020820181803683370190505b5090505b8415612e03576132b0600183614224565b91506132bd600a8661427e565b6132c8906030614099565b60f81b8183815181106132dd576132dd61403b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613317600a8661426a565b945061329f565b6001600160a01b0383166133795761337481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61339c565b816001600160a01b0316836001600160a01b03161461339c5761339c8382613677565b6001600160a01b0382166133b357610e8081613714565b826001600160a01b0316826001600160a01b031614610e8057610e8082826137c3565b600081815b845181101561341b57613407828683815181106133fa576133fa61403b565b6020026020010151613807565b915080613413816140ee565b9150506133db565b509392505050565b61342d8383613833565b61343a60008484846134ac565b610e805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca0565b60006001600160a01b0384163b1561366c576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613509903390899088908890600401614292565b602060405180830381600087803b15801561352357600080fd5b505af1925050508015613571575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261356e918101906142ce565b60015b613621573d80801561359f576040519150601f19603f3d011682016040523d82523d6000602084013e6135a4565b606091505b5080516136195760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612e03565b506001949350505050565b6000600161368484611ab2565b61368e9190614224565b6000838152600760205260409020549091508082146136e1576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061372690600190614224565b6000838152600960205260408120546008805493945090928490811061374e5761374e61403b565b90600052602060002001549050806008838154811061376f5761376f61403b565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806137a7576137a76142eb565b6001900381819060005260206000200160009055905550505050565b60006137ce83611ab2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600081831061382357600082815260208490526040902061290f565b5060009182526020526040902090565b6001600160a01b0382166138895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca0565b6000818152600260205260409020546001600160a01b0316156138ee5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca0565b6138fa6000838361331e565b6001600160a01b0382166000908152600360205260408120805460019290613923908490614099565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546139a590613fe7565b90600052602060002090601f0160209004810192826139c75760008555613a0d565b82601f106139e057805160ff1916838001178555613a0d565b82800160010185558215613a0d579182015b82811115613a0d5782518255916020019190600101906139f2565b50613a19929150613a1d565b5090565b5b80821115613a195760008155600101613a1e565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461121d57600080fd5b600060208284031215613a7257600080fd5b813561290f81613a32565b80356001600160a01b0381168114613a9457600080fd5b919050565b60008060408385031215613aac57600080fd5b613ab583613a7d565b946020939093013593505050565b60005b83811015613ade578181015183820152602001613ac6565b8381111561270d5750506000910152565b60008151808452613b07816020860160208601613ac3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061290f6020830184613aef565b600060208284031215613b5e57600080fd5b5035919050565b600080600060608486031215613b7a57600080fd5b613b8384613a7d565b9250613b9160208501613a7d565b9150604084013590509250925092565b803560ff81168114613a9457600080fd5b60008060408385031215613bc557600080fd5b82359150613bd560208401613ba1565b90509250929050565b600060208284031215613bf057600080fd5b61290f82613a7d565b600060208284031215613c0b57600080fd5b61290f82613ba1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613c8a57613c8a613c14565b604052919050565b600067ffffffffffffffff831115613cac57613cac613c14565b613cdd60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613c43565b9050828152838383011115613cf157600080fd5b828260208301376000602084830101529392505050565b600060208284031215613d1a57600080fd5b813567ffffffffffffffff811115613d3157600080fd5b8201601f81018413613d4257600080fd5b612e0384823560208401613c92565b60008083601f840112613d6357600080fd5b50813567ffffffffffffffff811115613d7b57600080fd5b6020830191508360208260051b8501011115613d9657600080fd5b9250929050565b600080600060408486031215613db257600080fd5b613dbb84613a7d565b9250602084013567ffffffffffffffff811115613dd757600080fd5b613de386828701613d51565b9497909650939450505050565b600080600060408486031215613e0557600080fd5b833567ffffffffffffffff80821115613e1d57600080fd5b818601915086601f830112613e3157600080fd5b8135602082821115613e4557613e45613c14565b8160051b613e54828201613c43565b928352848101820192828101908b851115613e6e57600080fd5b958301955b84871015613e8c57863582529583019590830190613e73565b9850505087013592505080821115613ea357600080fd5b50613de386828701613d51565b600080600060408486031215613ec557600080fd5b83359250602084013567ffffffffffffffff811115613dd757600080fd5b60008060408385031215613ef657600080fd5b50508035926020909101359150565b60008060408385031215613f1857600080fd5b613f2183613a7d565b915060208301358015158114613f3657600080fd5b809150509250929050565b60008060008060808587031215613f5757600080fd5b613f6085613a7d565b9350613f6e60208601613a7d565b925060408501359150606085013567ffffffffffffffff811115613f9157600080fd5b8501601f81018713613fa257600080fd5b613fb187823560208401613c92565b91505092959194509250565b60008060408385031215613fd057600080fd5b613fd983613a7d565b9150613bd560208401613a7d565b600181811c90821680613ffb57607f821691505b60208210811415614035577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156140ac576140ac61406a565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140e9576140e961406a565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141205761412061406a565b5060010190565b600060ff821660ff81141561413e5761413e61406a565b60010192915050565b60008451602061415a8285838a01613ac3565b85519184019161416d8184848a01613ac3565b8554920191600090600181811c908083168061418a57607f831692505b8583108114156141c1577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b8080156141d557600181146141e657614213565b60ff19851688528388019550614213565b60008b81526020902060005b8581101561420b5781548a8201529084019088016141f2565b505083880195505b50939b9a5050505050505050505050565b6000828210156142365761423661406a565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826142795761427961423b565b500490565b60008261428d5761428d61423b565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142c46080830184613aef565b9695505050505050565b6000602082840312156142e057600080fd5b815161290f81613a32565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212206a18c45b7f3d8fa0c70089c39e04de86208d00a0ca6b180232dd62140cf20db064736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000114d79204845524f20536964656b69636b7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d48530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f7832652d64616f2d6d696e742e636f6d2f646174612f6d68732f6d61696e2f6d6574612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f7832652d64616f2d6d696e742e636f6d2f646174612f6d68732f7665696c2f6d6574612f312e6a736f6e0000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103a25760003560e01c80636ee87585116101e7578063a43ef4ff1161010d578063d5abeb01116100a0578063e985e9c51161006f578063e985e9c514610a4a578063f2c4ce1e14610a93578063f2fde38b14610ab3578063fe16776314610ad357600080fd5b8063d5abeb01146109d4578063d911cc0e146109ea578063da3ef23f14610a0a578063e67797ac14610a2a57600080fd5b8063bac160b5116100dc578063bac160b514610965578063c668286214610985578063c87b56dd1461099a578063ce5b9b04146109ba57600080fd5b8063a43ef4ff146108f0578063a475b5dd14610910578063b44c576714610925578063b88d4fde1461094557600080fd5b80637f00c7a61161018557806395d89b411161015457806395d89b41146108885780639f9101a61461089d578063a0712d68146108bd578063a22cb465146108d057600080fd5b80637f00c7a61461080a5780638464890a1461082a5780638da5cb5b1461084a578063940d53431461086857600080fd5b806370a08231116101c157806370a08231146107a2578063712ff68e146107c2578063715018a6146107d5578063719bd10c146107ea57600080fd5b80636ee87585146107555780636f8b44b0146107685780637067fd631461078857600080fd5b80632f745c59116102cc57806344a0d68a1161026a57806354c55c041161023957806354c55c04146106d557806355f804b3146106f55780635a23dd99146107155780636352211e1461073557600080fd5b806344a0d68a146106615780634aaca86d146106815780634f6ccce71461069b57806351830227146106bb57600080fd5b80633b27a1d9116102a65780633b27a1d9146105f95780633ccfd60b1461061957806342842e0e1461062157806344726fd61461064157600080fd5b80632f745c59146105995780633a5b7bcf146105b95780633ab1a494146105d957600080fd5b80631581b600116103445780631caed72b116103135780631caed72b1461052e578063239c70ae1461054457806323b872dd1461055a57806325f22b801461057a57600080fd5b80631581b600146104c357806316a61832146104e357806318160ddd146104f957806319643ed51461050e57600080fd5b8063081812fc11610380578063081812fc14610430578063081c8c4414610468578063095ea7b31461047d57806313faede61461049f57600080fd5b806301ffc9a7146103a757806303ec0644146103dc57806306fdde031461040e575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613a60565b610af3565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103fc6103f7366004613a99565b610b4f565b60405160ff90911681526020016103d3565b34801561041a57600080fd5b50610423610b88565b6040516103d39190613b39565b34801561043c57600080fd5b5061045061044b366004613b4c565b610c1a565b6040516001600160a01b0390911681526020016103d3565b34801561047457600080fd5b50610423610cc5565b34801561048957600080fd5b5061049d610498366004613a99565b610d53565b005b3480156104ab57600080fd5b506104b5600e5481565b6040519081526020016103d3565b3480156104cf57600080fd5b50600b54610450906001600160a01b031681565b3480156104ef57600080fd5b506104b560365481565b34801561050557600080fd5b506008546104b5565b34801561051a57600080fd5b506103fc610529366004613b4c565b610e85565b34801561053a57600080fd5b506104b560375481565b34801561055057600080fd5b506104b560135481565b34801561056657600080fd5b5061049d610575366004613b65565b610eaf565b34801561058657600080fd5b506012546103fc90610100900460ff1681565b3480156105a557600080fd5b506104b56105b4366004613a99565b610f36565b3480156105c557600080fd5b5061049d6105d4366004613bb2565b610fde565b3480156105e557600080fd5b5061049d6105f4366004613bde565b611070565b34801561060557600080fd5b5061049d610614366004613b4c565b611104565b61049d611163565b34801561062d57600080fd5b5061049d61063c366004613b65565b611220565b34801561064d57600080fd5b5061049d61065c366004613bf9565b61123b565b34801561066d57600080fd5b5061049d61067c366004613b4c565b6112ff565b34801561068d57600080fd5b506012546103fc9060ff1681565b3480156106a757600080fd5b506104b56106b6366004613b4c565b61135e565b3480156106c757600080fd5b506010546103c79060ff1681565b3480156106e157600080fd5b506104b56106f0366004613b4c565b611402565b34801561070157600080fd5b5061049d610710366004613d08565b611419565b34801561072157600080fd5b506103c7610730366004613d9d565b61148a565b34801561074157600080fd5b50610450610750366004613b4c565b61153a565b61049d610763366004613df0565b6115c5565b34801561077457600080fd5b5061049d610783366004613b4c565b611a53565b34801561079457600080fd5b506015546103fc9060ff1681565b3480156107ae57600080fd5b506104b56107bd366004613bde565b611ab2565b61049d6107d0366004613eb0565b611b4c565b3480156107e157600080fd5b5061049d611f1a565b3480156107f657600080fd5b506104b5610805366004613b4c565b611f80565b34801561081657600080fd5b5061049d610825366004613b4c565b611f90565b34801561083657600080fd5b5061049d610845366004613bb2565b611fef565b34801561085657600080fd5b50600a546001600160a01b0316610450565b34801561087457600080fd5b5061049d610883366004613bf9565b61205d565b34801561089457600080fd5b50610423612121565b3480156108a957600080fd5b5061049d6108b8366004613ee3565b612130565b61049d6108cb366004613b4c565b6121a4565b3480156108dc57600080fd5b5061049d6108eb366004613f05565b6124cb565b3480156108fc57600080fd5b506103fc61090b366004613a99565b612590565b34801561091c57600080fd5b5061049d6125ac565b34801561093157600080fd5b5061049d610940366004613bf9565b612615565b34801561095157600080fd5b5061049d610960366004613f41565b612685565b34801561097157600080fd5b5061049d610980366004613ee3565b612713565b34801561099157600080fd5b50610423612781565b3480156109a657600080fd5b506104236109b5366004613b4c565b61278e565b3480156109c657600080fd5b506038546103fc9060ff1681565b3480156109e057600080fd5b506104b5600f5481565b3480156109f657600080fd5b506103fc610a05366004613a99565b612916565b348015610a1657600080fd5b5061049d610a25366004613d08565b612932565b348015610a3657600080fd5b506103fc610a45366004613b4c565b61299f565b348015610a5657600080fd5b506103c7610a65366004613fbd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a9f57600080fd5b5061049d610aae366004613d08565b6129af565b348015610abf57600080fd5b5061049d610ace366004613bde565b612a1c565b348015610adf57600080fd5b506103c7610aee366004613d9d565b612afb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610b495750610b4982612b9a565b92915050565b601460205281600052604060002081601e8110610b6b57600080fd5b602081049091015460ff601f9092166101000a9004169150829050565b606060008054610b9790613fe7565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc390613fe7565b8015610c105780601f10610be557610100808354040283529160200191610c10565b820191906000526020600020905b815481529060010190602001808311610bf357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ca95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60118054610cd290613fe7565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfe90613fe7565b8015610d4b5780601f10610d2057610100808354040283529160200191610d4b565b820191906000526020600020905b815481529060010190602001808311610d2e57829003601f168201915b505050505081565b6000610d5e8261153a565b9050806001600160a01b0316836001600160a01b03161415610de85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b336001600160a01b0382161480610e045750610e048133610a65565b610e765760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca0565b610e808383612c7d565b505050565b601681601e8110610e9557600080fd5b60209182820401919006915054906101000a900460ff1681565b610eb93382612d03565b610f2b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca0565b610e80838383612e0b565b6000610f4183611ab2565b8210610fb55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ca0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146110385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80603983601e811061104c5761104c61403b565b602091828204019190066101000a81548160ff021916908360ff1602179055505050565b600a546001600160a01b031633146110ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461115e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b603655565b600a546001600160a01b031633146111bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600b546040516000916001600160a01b03169047908381818185875af1925050503d806000811461120a576040519150601f19603f3d011682016040523d82523d6000602084013e61120f565b606091505b505090508061121d57600080fd5b50565b610e8083838360405180602001604052806000815250612685565b600a546001600160a01b031633146112955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b601e60ff821611156112e95760405162461bcd60e51b815260206004820152601360248201527f574c2053616c6520636f756e74206f76657221000000000000000000000000006044820152606401610ca0565b6015805460ff191660ff92909216919091179055565b600a546001600160a01b031633146113595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600e55565b600061136960085490565b82106113dd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ca0565b600882815481106113f0576113f061403b565b90600052602060002001549050919050565b601781601e811061141257600080fd5b0154905081565b600a546001600160a01b031633146114735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b805161148690600c906020840190613999565b5050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050611531848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015546017925060ff169050601e81106115295761152961403b565b015483612ffb565b95945050505050565b6000818152600260205260408120546001600160a01b031680610b495760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ca0565b60125460ff166003146116405760405162461bcd60e51b815260206004820152602160248201527f74686520636f6e7472616374206973206e6f74204275726e4d696e742053616c60448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b60385460399060ff16601e81106116595761165961403b565b602091828204019190069054906101000a900460ff1660ff16835111156116e85760405162461bcd60e51b815260206004820152602960248201527f6d6178206275726e206d696e7420616d6f756e74207065722073657373696f6e60448201527f20657863656564656400000000000000000000000000000000000000000000006064820152608401610ca0565b60365483516037546116fa9190614099565b11156117485760405162461bcd60e51b815260206004820152601a60248201527f4d6178204275726e206d696e7420537570706c79206f766572210000000000006044820152606401610ca0565b600a546001600160a01b031633146118d857611765338383612afb565b6117b15760405162461bcd60e51b815260206004820152601460248201527f596f7520646f6e2774206861766520424d574c2e0000000000000000000000006044820152606401610ca0565b60385460399060ff16601e81106117ca576117ca61403b565b60208082049092015485513360009081526058909452604090932060385460ff601f9094166101000a90920483169392909116601e811061180d5761180d61403b565b60208104919091015461182c9291601f166101000a900460ff16614099565b111561187a5760405162461bcd60e51b815260206004820152601c60248201527f6d617820424d2070657220616464726573732065786365656465642e000000006044820152606401610ca0565b8251600e5461188991906140b1565b3410156118d85760405162461bcd60e51b815260206004820152601860248201527f696e73756666696369656e742066756e64732e203a20424d00000000000000006044820152606401610ca0565b60005b835181101561199c5760008482815181106118f8576118f861403b565b6020026020010151905061190b8161153a565b6001600160a01b0316336001600160a01b03161461196b5760405162461bcd60e51b815260206004820152601260248201527f796f7520617265206e6f74206f776e65722e00000000000000000000000000006044820152606401610ca0565b6037805490600061197b836140ee565b919050555061198981613011565b5080611994816140ee565b9150506118db565b5060006119a860085490565b905060015b84518111611a4c5733600090815260586020526040902060385460ff16601e81106119da576119da61403b565b6020918282040191900681819054906101000a900460ff16809291906119ff90614127565b91906101000a81548160ff021916908360ff16021790555050611a3a338260375485611a2b9190614099565b611a359190614099565b6130d0565b80611a44816140ee565b9150506119ad565b5050505050565b600a546001600160a01b03163314611aad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b600f55565b60006001600160a01b038216611b305760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ca0565b506001600160a01b031660009081526003602052604090205490565b60125460ff16600114611ba15760405162461bcd60e51b815260206004820152601b60248201527f74686520636f6e7472616374206973206e6f7420574c2053616c6500000000006044820152606401610ca0565b6000611bac60085490565b905060008411611bfe5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610ca0565b60155460169060ff16601e8110611c1757611c1761403b565b602081049091015460ff601f9092166101000a900416841115611ca15760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560448201527f65646564000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b600f54611cae8583614099565b1115611cfc5760405162461bcd60e51b815260206004820152601660248201527f6d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610ca0565b600a546001600160a01b03163314611e8857611d1933848461148a565b611d655760405162461bcd60e51b815260206004820152601260248201527f596f7520646f6e2774206861766520574c2e00000000000000000000000000006044820152606401610ca0565b60155460169060ff16601e8110611d7e57611d7e61403b565b6020808204909201543360009081526035909352604090922060155460ff601f9093166101000a909304821692879216601e8110611dbe57611dbe61403b565b602081049190910154611ddd9291601f166101000a900460ff16614099565b1115611e2b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610ca0565b83600e54611e3991906140b1565b341015611e885760405162461bcd60e51b815260206004820152601d60248201527f696e73756666696369656e742066756e64732e203a20576c206d696e740000006044820152606401610ca0565b60015b848111611a4c5733600090815260356020526040902060155460ff16601e8110611eb757611eb761403b565b6020918282040191900681819054906101000a900460ff1680929190611edc90614127565b91906101000a81548160ff021916908360ff16021790555050611f08338260375485611a2b9190614099565b80611f12816140ee565b915050611e8b565b600a546001600160a01b03163314611f745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b611f7e60006130ea565b565b603a81601e811061141257600080fd5b600a546001600160a01b03163314611fea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b601355565b600a546001600160a01b031633146120495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80601683601e811061104c5761104c61403b565b600a546001600160a01b031633146120b75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b601e60ff8216111561210b5760405162461bcd60e51b815260206004820152601360248201527f424d2053616c6520636f756e74206f76657221000000000000000000000000006044820152606401610ca0565b6038805460ff191660ff92909216919091179055565b606060018054610b9790613fe7565b600a546001600160a01b0316331461218a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80601783601e811061219e5761219e61403b565b01555050565b60125460ff166002146121f95760405162461bcd60e51b815260206004820152601e60248201527f74686520636f6e7472616374206973206e6f205075626c69632053616c6500006044820152606401610ca0565b600061220460085490565b9050600082116122565760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610ca0565b6013548211156122cd5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560448201527f65646564000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b600f546122da8383614099565b11156123285760405162461bcd60e51b815260206004820152601660248201527f6d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610ca0565b600a546001600160a01b0316331461243457601354336000908152601460205260409020601254849190610100900460ff16601e811061236a5761236a61403b565b6020810491909101546123899291601f166101000a900460ff16614099565b11156123d75760405162461bcd60e51b815260206004820181905260248201527f6d6178204e465420706572206d696e7420616d6f756e742065786365656465646044820152606401610ca0565b81600e546123e591906140b1565b3410156124345760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e742066756e64732e203a206d696e740000000000006044820152606401610ca0565b60015b828111610e8057336000908152601460205260409020601254610100900460ff16601e81106124685761246861403b565b6020918282040191900681819054906101000a900460ff168092919061248d90614127565b91906101000a81548160ff021916908360ff160217905550506124b9338260375485611a2b9190614099565b806124c3816140ee565b915050612437565b6001600160a01b0382163314156125245760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca0565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b605860205281600052604060002081601e8110610b6b57600080fd5b600a546001600160a01b031633146126065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b6010805460ff19166001179055565b600a546001600160a01b0316331461266f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b6012805460ff191660ff92909216919091179055565b61268f3383612d03565b6127015760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca0565b61270d84848484613154565b50505050565b600a546001600160a01b0316331461276d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b80603a83601e811061219e5761219e61403b565b600d8054610cd290613fe7565b6000818152600260205260409020546060906001600160a01b031661281b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ca0565b60105460ff166128b7576011805461283290613fe7565b80601f016020809104026020016040519081016040528092919081815260200182805461285e90613fe7565b80156128ab5780601f10612880576101008083540402835291602001916128ab565b820191906000526020600020905b81548152906001019060200180831161288e57829003601f168201915b50505050509050919050565b60006128c16131dd565b905060008151116128e1576040518060200160405280600081525061290f565b806128eb846131ec565b600d6040516020016128ff93929190614147565b6040516020818303038152906040525b9392505050565b603560205281600052604060002081601e8110610b6b57600080fd5b600a546001600160a01b0316331461298c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b805161148690600d906020840190613999565b603981601e8110610e9557600080fd5b600a546001600160a01b03163314612a095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b8051611486906011906020840190613999565b600a546001600160a01b03163314612a765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca0565b6001600160a01b038116612af25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ca0565b61121d816130ea565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061153184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050603854603a925060ff169050601e81106115295761152961403b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c2d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b4957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b49565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612cca8261153a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612d8d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca0565b6000612d988361153a565b9050806001600160a01b0316846001600160a01b03161480612dd35750836001600160a01b0316612dc884610c1a565b6001600160a01b0316145b80612e0357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612e1e8261153a565b6001600160a01b031614612e9a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ca0565b6001600160a01b038216612f155760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ca0565b612f2083838361331e565b612f2b600082612c7d565b6001600160a01b0383166000908152600360205260408120805460019290612f54908490614224565b90915550506001600160a01b0382166000908152600360205260408120805460019290612f82908490614099565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008261300885846133d6565b14949350505050565b600061301c8261153a565b905061302a8160008461331e565b613035600083612c7d565b6001600160a01b038116600090815260036020526040812080546001929061305e908490614224565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611486828260405180602001604052806000815250613423565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61315f848484612e0b565b61316b848484846134ac565b61270d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca0565b6060600c8054610b9790613fe7565b60608161322c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156132565780613240816140ee565b915061324f9050600a8361426a565b9150613230565b60008167ffffffffffffffff81111561327157613271613c14565b6040519080825280601f01601f19166020018201604052801561329b576020820181803683370190505b5090505b8415612e03576132b0600183614224565b91506132bd600a8661427e565b6132c8906030614099565b60f81b8183815181106132dd576132dd61403b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613317600a8661426a565b945061329f565b6001600160a01b0383166133795761337481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61339c565b816001600160a01b0316836001600160a01b03161461339c5761339c8382613677565b6001600160a01b0382166133b357610e8081613714565b826001600160a01b0316826001600160a01b031614610e8057610e8082826137c3565b600081815b845181101561341b57613407828683815181106133fa576133fa61403b565b6020026020010151613807565b915080613413816140ee565b9150506133db565b509392505050565b61342d8383613833565b61343a60008484846134ac565b610e805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca0565b60006001600160a01b0384163b1561366c576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613509903390899088908890600401614292565b602060405180830381600087803b15801561352357600080fd5b505af1925050508015613571575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261356e918101906142ce565b60015b613621573d80801561359f576040519150601f19603f3d011682016040523d82523d6000602084013e6135a4565b606091505b5080516136195760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612e03565b506001949350505050565b6000600161368484611ab2565b61368e9190614224565b6000838152600760205260409020549091508082146136e1576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061372690600190614224565b6000838152600960205260408120546008805493945090928490811061374e5761374e61403b565b90600052602060002001549050806008838154811061376f5761376f61403b565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806137a7576137a76142eb565b6001900381819060005260206000200160009055905550505050565b60006137ce83611ab2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600081831061382357600082815260208490526040902061290f565b5060009182526020526040902090565b6001600160a01b0382166138895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca0565b6000818152600260205260409020546001600160a01b0316156138ee5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca0565b6138fa6000838361331e565b6001600160a01b0382166000908152600360205260408120805460019290613923908490614099565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546139a590613fe7565b90600052602060002090601f0160209004810192826139c75760008555613a0d565b82601f106139e057805160ff1916838001178555613a0d565b82800160010185558215613a0d579182015b82811115613a0d5782518255916020019190600101906139f2565b50613a19929150613a1d565b5090565b5b80821115613a195760008155600101613a1e565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461121d57600080fd5b600060208284031215613a7257600080fd5b813561290f81613a32565b80356001600160a01b0381168114613a9457600080fd5b919050565b60008060408385031215613aac57600080fd5b613ab583613a7d565b946020939093013593505050565b60005b83811015613ade578181015183820152602001613ac6565b8381111561270d5750506000910152565b60008151808452613b07816020860160208601613ac3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061290f6020830184613aef565b600060208284031215613b5e57600080fd5b5035919050565b600080600060608486031215613b7a57600080fd5b613b8384613a7d565b9250613b9160208501613a7d565b9150604084013590509250925092565b803560ff81168114613a9457600080fd5b60008060408385031215613bc557600080fd5b82359150613bd560208401613ba1565b90509250929050565b600060208284031215613bf057600080fd5b61290f82613a7d565b600060208284031215613c0b57600080fd5b61290f82613ba1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613c8a57613c8a613c14565b604052919050565b600067ffffffffffffffff831115613cac57613cac613c14565b613cdd60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613c43565b9050828152838383011115613cf157600080fd5b828260208301376000602084830101529392505050565b600060208284031215613d1a57600080fd5b813567ffffffffffffffff811115613d3157600080fd5b8201601f81018413613d4257600080fd5b612e0384823560208401613c92565b60008083601f840112613d6357600080fd5b50813567ffffffffffffffff811115613d7b57600080fd5b6020830191508360208260051b8501011115613d9657600080fd5b9250929050565b600080600060408486031215613db257600080fd5b613dbb84613a7d565b9250602084013567ffffffffffffffff811115613dd757600080fd5b613de386828701613d51565b9497909650939450505050565b600080600060408486031215613e0557600080fd5b833567ffffffffffffffff80821115613e1d57600080fd5b818601915086601f830112613e3157600080fd5b8135602082821115613e4557613e45613c14565b8160051b613e54828201613c43565b928352848101820192828101908b851115613e6e57600080fd5b958301955b84871015613e8c57863582529583019590830190613e73565b9850505087013592505080821115613ea357600080fd5b50613de386828701613d51565b600080600060408486031215613ec557600080fd5b83359250602084013567ffffffffffffffff811115613dd757600080fd5b60008060408385031215613ef657600080fd5b50508035926020909101359150565b60008060408385031215613f1857600080fd5b613f2183613a7d565b915060208301358015158114613f3657600080fd5b809150509250929050565b60008060008060808587031215613f5757600080fd5b613f6085613a7d565b9350613f6e60208601613a7d565b925060408501359150606085013567ffffffffffffffff811115613f9157600080fd5b8501601f81018713613fa257600080fd5b613fb187823560208401613c92565b91505092959194509250565b60008060408385031215613fd057600080fd5b613fd983613a7d565b9150613bd560208401613a7d565b600181811c90821680613ffb57607f821691505b60208210811415614035577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156140ac576140ac61406a565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140e9576140e961406a565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141205761412061406a565b5060010190565b600060ff821660ff81141561413e5761413e61406a565b60010192915050565b60008451602061415a8285838a01613ac3565b85519184019161416d8184848a01613ac3565b8554920191600090600181811c908083168061418a57607f831692505b8583108114156141c1577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b8080156141d557600181146141e657614213565b60ff19851688528388019550614213565b60008b81526020902060005b8581101561420b5781548a8201529084019088016141f2565b505083880195505b50939b9a5050505050505050505050565b6000828210156142365761423661406a565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826142795761427961423b565b500490565b60008261428d5761428d61423b565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142c46080830184613aef565b9695505050505050565b6000602082840312156142e057600080fd5b815161290f81613a32565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212206a18c45b7f3d8fa0c70089c39e04de86208d00a0ca6b180232dd62140cf20db064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000114d79204845524f20536964656b69636b7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d48530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f7832652d64616f2d6d696e742e636f6d2f646174612f6d68732f6d61696e2f6d6574612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f7832652d64616f2d6d696e742e636f6d2f646174612f6d68732f7665696c2f6d6574612f312e6a736f6e0000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): My HERO Sidekicks
Arg [1] : _symbol (string): MHS
Arg [2] : _initBaseURI (string): https://x2e-dao-mint.com/data/mhs/main/meta/
Arg [3] : _initNotRevealedUri (string): https://x2e-dao-mint.com/data/mhs/veil/meta/1.json
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 4d79204845524f20536964656b69636b73000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4d48530000000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [9] : 68747470733a2f2f7832652d64616f2d6d696e742e636f6d2f646174612f6d68
Arg [10] : 732f6d61696e2f6d6574612f0000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [12] : 68747470733a2f2f7832652d64616f2d6d696e742e636f6d2f646174612f6d68
Arg [13] : 732f7665696c2f6d6574612f312e6a736f6e0000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.