ERC-721
Overview
Max Total Supply
7,734 SWAGG
Holders
1,980
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SWAGGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TycoSwagg
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; /* ▀█▀ █▄█ █▀▀ █▀█ █▀ █░█░█ ▄▀█ █▀▀ █▀▀ ░█░ ░█░ █▄▄ █▄█ ▄█ ▀▄▀▄▀ █▀█ █▄█ █▄█ ▀█▀ █▄█ █▀▀ █▀█ █▀ █░█░█ ▄▀█ █▀▀ █▀▀ ░█░ ░█░ █▄▄ █▄█ ▄█ ▀▄▀▄▀ █▀█ █▄█ █▄█ ▀█▀ █▄█ █▀▀ █▀█ █▀ █░█░█ ▄▀█ █▀▀ █▀▀ ░█░ ░█░ █▄▄ █▄█ ▄█ ▀▄▀▄▀ █▀█ █▄█ █▄█ ▀█▀ █▄█ █▀▀ █▀█ █▀ █░█░█ ▄▀█ █▀▀ █▀▀ ░█░ ░█░ █▄▄ █▄█ ▄█ ▀▄▀▄▀ █▀█ █▄█ █▄█ ▀█▀ █▄█ █▀▀ █▀█ █▀ █░█░█ ▄▀█ █▀▀ █▀▀ ░█░ ░█░ █▄▄ █▄█ ▄█ ▀▄▀▄▀ █▀█ █▄█ █▄█ ▀█▀ █▄█ █▀▀ █▀█ █▀ █░█░█ ▄▀█ █▀▀ █▀▀ ░█░ ░█░ █▄▄ █▄█ ▄█ ▀▄▀▄▀ █▀█ █▄█ █▄█ */ /** * @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; } } /** * @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); } } /** * @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); } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * @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); } /** * @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; } /** * @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); } /** * @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); } /** * @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); } /** * @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); } } } } /** * @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; } } abstract contract ERC721P is Context, ERC165, IERC721, IERC721Metadata { using Address for address; string private _name; string private _symbol; address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count = 0; uint length = _owners.length; for( uint i = 0; i < length; ++i ){ if( owner == _owners[i] ){ ++count; } } delete length; return count; } 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; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721P.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); } function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } 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); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } 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); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } 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); } 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"); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721P.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } 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" ); } 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); _owners.push(to); emit Transfer(address(0), to, tokenId); } function _burn(uint256 tokenId) internal virtual { address owner = ERC721P.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721P.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); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721P.ownerOf(tokenId), to, tokenId); } 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; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } abstract contract ERC721Enum is ERC721P, IERC721Enumerable { function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721P) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256 tokenId) { require(index < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob"); uint count; for( uint i; i < _owners.length; ++i ){ if( owner == _owners[i] ){ if( count == index ) return i; else ++count; } } require(false, "ERC721Enum: owner ioob"); } function tokensOfOwner(address owner) public view returns (uint256[] memory) { require(0 < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob"); uint256 tokenCount = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenCount); for (uint256 i = 0; i < tokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(owner, i); } return tokenIds; } function totalSupply() public view virtual override returns (uint256) { return _owners.length; } function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enum.totalSupply(), "ERC721Enum: global ioob"); return index; } } contract TycoSwagg is ERC721Enum, Ownable, ReentrancyGuard { using Strings for uint256; using Address for address; // sale settings uint256 public MAX_SUPPLY = 7734; uint256 public TEAM_SUPPLY = 100; uint256 public MAX_PRESALE_MINT = 2; uint256 public PRICE = 0.08 ether; uint256 public MAX_SALE_MINT = 2; bool public isPresaleActive = false; bool public isSaleActive = false; //presale settings mapping(address => uint8) public presaleWhitelistMints; bytes32 merkleRoot; string private baseURI; constructor() ERC721P('Tyco Swagg', 'SWAGG') {} function _baseURI() internal view virtual returns (string memory) { return baseURI; } function _publicSupply() internal view virtual returns (uint256) { return MAX_SUPPLY; } function isWhitelisted (bytes32[] calldata _merkleProof) external view returns (bool) { bytes32 node = keccak256(abi.encodePacked(msg.sender)); return verify(node, _merkleProof); } function setMerkleRoot(bytes32 _merkle) public onlyOwner { merkleRoot = _merkle; } function flipPresaleState() external onlyOwner { isPresaleActive = !isPresaleActive; } function flipSaleState() external onlyOwner { isSaleActive = !isSaleActive; } function mintTeamSupply() external onlyOwner { uint256 totalSupply = totalSupply(); require(totalSupply < TEAM_SUPPLY, "Already minted!"); for (uint256 i = 0; i < TEAM_SUPPLY; i++) { _safeMint(msg.sender, totalSupply + i); } } function mint(uint256 _mintAmount) external payable nonReentrant { require(isSaleActive, "Sale is not active"); require(_mintAmount > 0, "Minted amount should be positive" ); require(_mintAmount <= MAX_SALE_MINT, "Minted amount exceeds sale limit" ); require(address(msg.sender).isContract() == false, "Can not mint as contract!" ); uint256 totalSupply = totalSupply(); require(totalSupply + _mintAmount <= _publicSupply(), "The requested amount exceeds the remaining supply" ); require(msg.value >= PRICE * _mintAmount , "Wrong value"); for (uint256 i = 0; i < _mintAmount; i++) { _safeMint(msg.sender, totalSupply + i); } } function mintPresale(uint256 _mintAmount, bytes32[] calldata _merkleProof) external payable nonReentrant { require(isPresaleActive, "Presale is not active"); // Verify the merkle proof bytes32 node = keccak256(abi.encodePacked(msg.sender)); require(verify(node, _merkleProof), "Incorrect merkle"); uint256 totalSupply = totalSupply(); uint256 availableMints = MAX_PRESALE_MINT - presaleWhitelistMints[msg.sender]; require(_mintAmount <= availableMints, "Too many mints requested"); require(totalSupply + _mintAmount <= _publicSupply(), "The requested amount exceeds the remaining supply"); require(msg.value >= PRICE * _mintAmount , "Wrong msg.value provided"); presaleWhitelistMints[msg.sender] += uint8(_mintAmount); for(uint256 i = 0; i < _mintAmount; i++){ _safeMint(msg.sender, totalSupply + i); } } function verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == merkleRoot; } function withdraw() external onlyOwner { require(payable(msg.sender).send(address(this).balance)); } function setPrice(uint256 _newPrice) external onlyOwner { PRICE = _newPrice; } function setMaxMintAmount(uint256 _newMaxMintAmount) external onlyOwner { MAX_SALE_MINT = _newMaxMintAmount; } function setMaxTeamMintAmount(uint256 _newMaxMintAmount) external onlyOwner { TEAM_SUPPLY = _newMaxMintAmount; } function setMaxSupply(uint256 _maxSupply) external onlyOwner { MAX_SUPPLY = _maxSupply; } function setMaxPresaleMint(uint256 _maxPresaleMint) external onlyOwner { MAX_PRESALE_MINT = _maxPresaleMint; } function tokenURI(uint256 _tokenId) external view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: Nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), ".json")) : ""; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function transferFrom(address _from, address _to, uint256 _tokenId) public override { ERC721P.transferFrom(_from, _to, _tokenId); } function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory _data) public override { ERC721P.safeTransferFrom(_from, _to, _tokenId, _data); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 10000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":[],"name":"MAX_PRESALE_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SALE_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintTeamSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleWhitelistMints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPresaleMint","type":"uint256"}],"name":"setMaxPresaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxTeamMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkle","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","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":"tokenId","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052611e3660075560646008556002600981905567011c37937e080000600a55600b55600c805461ffff191690553480156200003d57600080fd5b50604080518082018252600a8152695479636f20537761676760b01b602080830191825283518085019094526005845264535741474760d81b9084015281519192916200008d9160009162000121565b508051620000a390600190602084019062000121565b505050620000c0620000ba620000cb60201b60201c565b620000cf565b600160065562000204565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012f90620001c7565b90600052602060002090601f0160209004810192826200015357600085556200019e565b82601f106200016e57805160ff19168380011785556200019e565b828001600101855582156200019e579182015b828111156200019e57825182559160200191906001019062000181565b50620001ac929150620001b0565b5090565b5b80821115620001ac5760008155600101620001b1565b600181811c90821680620001dc57607f821691505b60208210811415620001fe57634e487b7160e01b600052602260045260246000fd5b50919050565b61319880620002146000396000f3fe6080604052600436106102d15760003560e01c80636352211e11610179578063a0712d68116100d6578063c87b56dd1161008a578063f2fde38b11610064578063f2fde38b146107bd578063f4282850146107dd578063f81227d4146107f257600080fd5b8063c87b56dd1461073e578063d5ece6ea1461075e578063e985e9c51461077457600080fd5b8063a70f1fbe116100bb578063a70f1fbe146106f2578063b88d4fde14610708578063b9c3a8181461072857600080fd5b8063a0712d68146106bf578063a22cb465146106d257600080fd5b80638462151c1161012d5780638da5cb5b116101125780638da5cb5b1461066c57806391b7f5ed1461068a57806395d89b41146106aa57600080fd5b80638462151c146106295780638d859f3e1461065657600080fd5b806370a082311161015e57806370a08231146105d4578063715018a6146105f45780637cb647591461060957600080fd5b80636352211e146105945780636f8b44b0146105b457600080fd5b806332cb6b0c1161023257806342842e0e116101e657806355f804b3116101c057806355f804b31461053b578063564566a81461055b57806360d938dc1461057a57600080fd5b806342842e0e146104b95780634f6ccce7146104d957806355105e9e146104f957600080fd5b806334918dfd1161021757806334918dfd1461046f5780633ccfd60b146104845780634192b2071461049957600080fd5b806332cb6b0c146104395780633425f90c1461044f57600080fd5b8063095ea7b31161028957806318160ddd1161026e57806318160ddd146103da57806323b872dd146103f95780632f745c591461041957600080fd5b8063095ea7b3146103a75780630c0a6b5e146103c757600080fd5b806306fdde03116102ba57806306fdde031461032b578063081812fc1461034d578063088a4ed01461038557600080fd5b806301ffc9a7146102d6578063069824fb1461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612a6e565b610807565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b506102f6610326366004612ad7565b610863565b34801561033757600080fd5b506103406108f6565b6040516103029190612b8f565b34801561035957600080fd5b5061036d610368366004612ba2565b610988565b6040516001600160a01b039091168152602001610302565b34801561039157600080fd5b506103a56103a0366004612ba2565b610a26565b005b3480156103b357600080fd5b506103a56103c2366004612bd7565b610a85565b6103a56103d5366004612c01565b610bb7565b3480156103e657600080fd5b506002545b604051908152602001610302565b34801561040557600080fd5b506103a5610414366004612c4d565b610f0e565b34801561042557600080fd5b506103eb610434366004612bd7565b610f19565b34801561044557600080fd5b506103eb60075481565b34801561045b57600080fd5b506103a561046a366004612ba2565b611028565b34801561047b57600080fd5b506103a5611087565b34801561049057600080fd5b506103a561111b565b3480156104a557600080fd5b506103a56104b4366004612ba2565b61119b565b3480156104c557600080fd5b506103a56104d4366004612c4d565b6111fa565b3480156104e557600080fd5b506103eb6104f4366004612ba2565b611215565b34801561050557600080fd5b50610529610514366004612c89565b600d6020526000908152604090205460ff1681565b60405160ff9091168152602001610302565b34801561054757600080fd5b506103a5610556366004612d67565b611272565b34801561056757600080fd5b50600c546102f690610100900460ff1681565b34801561058657600080fd5b50600c546102f69060ff1681565b3480156105a057600080fd5b5061036d6105af366004612ba2565b6112e3565b3480156105c057600080fd5b506103a56105cf366004612ba2565b611383565b3480156105e057600080fd5b506103eb6105ef366004612c89565b6113e2565b34801561060057600080fd5b506103a56114c7565b34801561061557600080fd5b506103a5610624366004612ba2565b61152b565b34801561063557600080fd5b50610649610644366004612c89565b61158a565b6040516103029190612db0565b34801561066257600080fd5b506103eb600a5481565b34801561067857600080fd5b506005546001600160a01b031661036d565b34801561069657600080fd5b506103a56106a5366004612ba2565b611684565b3480156106b657600080fd5b506103406116e3565b6103a56106cd366004612ba2565b6116f2565b3480156106de57600080fd5b506103a56106ed366004612df4565b6119b8565b3480156106fe57600080fd5b506103eb60095481565b34801561071457600080fd5b506103a5610723366004612e30565b611a9b565b34801561073457600080fd5b506103eb60085481565b34801561074a57600080fd5b50610340610759366004612ba2565b611aad565b34801561076a57600080fd5b506103eb600b5481565b34801561078057600080fd5b506102f661078f366004612eac565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156107c957600080fd5b506103a56107d8366004612c89565b611b86565b3480156107e957600080fd5b506103a5611c68565b3480156107fe57600080fd5b506103a5611d4d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061085d575061085d82611dd9565b92915050565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260009081906034016040516020818303038152906040528051906020012090506108ee81858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611ebc92505050565b949350505050565b60606000805461090590612edf565b80601f016020809104026020016040519081016040528092919081815260200182805461093190612edf565b801561097e5780601f106109535761010080835404028352916020019161097e565b820191906000526020600020905b81548152906001019060200180831161096157829003601f168201915b5050505050905090565b600061099382611f6c565b610a0a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6005546001600160a01b03163314610a805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600b55565b6000610a90826112e3565b9050806001600160a01b0316836001600160a01b03161415610b1a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a01565b336001600160a01b0382161480610b365750610b36813361078f565b610ba85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a01565b610bb28383611fb6565b505050565b60026006541415610c0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a01565b6002600655600c5460ff16610c615760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610a01565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152600090603401604051602081830303815290604052805190602001209050610cea81848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611ebc92505050565b610d365760405162461bcd60e51b815260206004820152601060248201527f496e636f7272656374206d65726b6c65000000000000000000000000000000006044820152606401610a01565b6000610d4160025490565b336000908152600d60205260408120546009549293509091610d669160ff1690612f62565b905080861115610db85760405162461bcd60e51b815260206004820152601860248201527f546f6f206d616e79206d696e74732072657175657374656400000000000000006044820152606401610a01565b600754610dc58784612f79565b1115610e395760405162461bcd60e51b815260206004820152603160248201527f5468652072657175657374656420616d6f756e7420657863656564732074686560448201527f2072656d61696e696e6720737570706c790000000000000000000000000000006064820152608401610a01565b85600a54610e479190612f91565b341015610e965760405162461bcd60e51b815260206004820152601860248201527f57726f6e67206d73672e76616c75652070726f766964656400000000000000006044820152606401610a01565b336000908152600d602052604081208054889290610eb890849060ff16612fce565b92506101000a81548160ff021916908360ff16021790555060005b86811015610f0057610eee33610ee98386612f79565b61203c565b80610ef881612ff3565b915050610ed3565b505060016006555050505050565b610bb2838383612056565b6000610f24836113e2565b8210610f725760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f62000000000000000000006044820152606401610a01565b6000805b600254811015610fdf5760028181548110610f9357610f9361302c565b6000918252602090912001546001600160a01b0386811691161415610fcf5783821415610fc357915061085d9050565b610fcc82612ff3565b91505b610fd881612ff3565b9050610f76565b5060405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f62000000000000000000006044820152606401610a01565b6005546001600160a01b031633146110825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600955565b6005546001600160a01b031633146110e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b6005546001600160a01b031633146111755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b60405133904780156108fc02916000818181858888f1935050505061119957600080fd5b565b6005546001600160a01b031633146111f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600855565b610bb283838360405180602001604052806000815250611a9b565b600061122060025490565b821061126e5760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f620000000000000000006044820152606401610a01565b5090565b6005546001600160a01b031633146112cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b80516112df90600f9060208401906129b0565b5050565b600080600283815481106112f9576112f961302c565b6000918252602090912001546001600160a01b031690508061085d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a01565b6005546001600160a01b031633146113dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600755565b60006001600160a01b0382166114605760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a01565b600254600090815b818110156114be57600281815481106114835761148361302c565b6000918252602090912001546001600160a01b03868116911614156114ae576114ab83612ff3565b92505b6114b781612ff3565b9050611468565b50909392505050565b6005546001600160a01b031633146115215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b61119960006120dd565b6005546001600160a01b031633146115855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600e55565b6060611595826113e2565b6000106115e45760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f62000000000000000000006044820152606401610a01565b60006115ef836113e2565b905060008167ffffffffffffffff81111561160c5761160c612ca4565b604051908082528060200260200182016040528015611635578160200160208202803683370190505b50905060005b8281101561167c5761164d8582610f19565b82828151811061165f5761165f61302c565b60209081029190910101528061167481612ff3565b91505061163b565b509392505050565b6005546001600160a01b031633146116de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600a55565b60606001805461090590612edf565b600260065414156117455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a01565b6002600655600c54610100900460ff166117a15760405162461bcd60e51b815260206004820152601260248201527f53616c65206973206e6f742061637469766500000000000000000000000000006044820152606401610a01565b600081116117f15760405162461bcd60e51b815260206004820181905260248201527f4d696e74656420616d6f756e742073686f756c6420626520706f7369746976656044820152606401610a01565b600b548111156118435760405162461bcd60e51b815260206004820181905260248201527f4d696e74656420616d6f756e7420657863656564732073616c65206c696d69746044820152606401610a01565b333b156118925760405162461bcd60e51b815260206004820152601960248201527f43616e206e6f74206d696e7420617320636f6e747261637421000000000000006044820152606401610a01565b600061189d60025490565b90506118a860075490565b6118b28383612f79565b11156119265760405162461bcd60e51b815260206004820152603160248201527f5468652072657175657374656420616d6f756e7420657863656564732074686560448201527f2072656d61696e696e6720737570706c790000000000000000000000000000006064820152608401610a01565b81600a546119349190612f91565b3410156119835760405162461bcd60e51b815260206004820152600b60248201527f57726f6e672076616c75650000000000000000000000000000000000000000006044820152606401610a01565b60005b828110156119ae5761199c33610ee98385612f79565b806119a681612ff3565b915050611986565b5050600160065550565b6001600160a01b038216331415611a115760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a01565b3360008181526004602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611aa784848484612147565b50505050565b6060611ab882611f6c565b611b2a5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e000000000000000000000000000000000000000000000000000000000000006064820152608401610a01565b6000611b346121cf565b90506000815111611b545760405180602001604052806000815250611b7f565b80611b5e846121de565b604051602001611b6f92919061305b565b6040516020818303038152906040525b9392505050565b6005546001600160a01b03163314611be05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b6001600160a01b038116611c5c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a01565b611c65816120dd565b50565b6005546001600160a01b03163314611cc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b6000611ccd60025490565b90506008548110611d205760405162461bcd60e51b815260206004820152600f60248201527f416c7265616479206d696e7465642100000000000000000000000000000000006044820152606401610a01565b60005b6008548110156112df57611d3b33610ee98385612f79565b80611d4581612ff3565b915050611d23565b6005546001600160a01b03163314611da75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611e6c57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061085d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461085d565b600082815b8351811015611f60576000848281518110611ede57611ede61302c565b60200260200101519050808311611f20576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611f4d565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611f5881612ff3565b915050611ec1565b50600e54149392505050565b6002546000908210801561085d575060006001600160a01b031660028381548110611f9957611f9961302c565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612003826112e3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6112df828260405180602001604052806000815250612310565b6120603382612399565b6120d25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a01565b610bb2838383612490565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121513383612399565b6121c35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a01565b611aa78484848461262b565b6060600f805461090590612edf565b60608161221e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612248578061223281612ff3565b91506122419050600a836130e1565b9150612222565b60008167ffffffffffffffff81111561226357612263612ca4565b6040519080825280601f01601f19166020018201604052801561228d576020820181803683370190505b5090505b84156108ee576122a2600183612f62565b91506122af600a866130f5565b6122ba906030612f79565b60f81b8183815181106122cf576122cf61302c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612309600a866130e1565b9450612291565b61231a83836126b4565b61232760008484846127f4565b610bb25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a01565b60006123a482611f6c565b6124165760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a01565b6000612421836112e3565b9050806001600160a01b0316846001600160a01b0316148061245c5750836001600160a01b031661245184610988565b6001600160a01b0316145b806108ee57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff166108ee565b826001600160a01b03166124a3826112e3565b6001600160a01b03161461251f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a01565b6001600160a01b03821661259a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a01565b6125a5600082611fb6565b81600282815481106125b9576125b961302c565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b612636848484612490565b612642848484846127f4565b611aa75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a01565b6001600160a01b03821661270a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a01565b61271381611f6c565b156127605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a01565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156129a5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612851903390899088908890600401613109565b6020604051808303816000875af19250505080156128aa575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526128a791810190613145565b60015b61295a573d8080156128d8576040519150601f19603f3d011682016040523d82523d6000602084013e6128dd565b606091505b5080516129525760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a01565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506108ee565b506001949350505050565b8280546129bc90612edf565b90600052602060002090601f0160209004810192826129de5760008555612a24565b82601f106129f757805160ff1916838001178555612a24565b82800160010185558215612a24579182015b82811115612a24578251825591602001919060010190612a09565b5061126e9291505b8082111561126e5760008155600101612a2c565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c6557600080fd5b600060208284031215612a8057600080fd5b8135611b7f81612a40565b60008083601f840112612a9d57600080fd5b50813567ffffffffffffffff811115612ab557600080fd5b6020830191508360208260051b8501011115612ad057600080fd5b9250929050565b60008060208385031215612aea57600080fd5b823567ffffffffffffffff811115612b0157600080fd5b612b0d85828601612a8b565b90969095509350505050565b60005b83811015612b34578181015183820152602001612b1c565b83811115611aa75750506000910152565b60008151808452612b5d816020860160208601612b19565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611b7f6020830184612b45565b600060208284031215612bb457600080fd5b5035919050565b80356001600160a01b0381168114612bd257600080fd5b919050565b60008060408385031215612bea57600080fd5b612bf383612bbb565b946020939093013593505050565b600080600060408486031215612c1657600080fd5b83359250602084013567ffffffffffffffff811115612c3457600080fd5b612c4086828701612a8b565b9497909650939450505050565b600080600060608486031215612c6257600080fd5b612c6b84612bbb565b9250612c7960208501612bbb565b9150604084013590509250925092565b600060208284031215612c9b57600080fd5b611b7f82612bbb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612cee57612cee612ca4565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612d3457612d34612ca4565b81604052809350858152868686011115612d4d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d7957600080fd5b813567ffffffffffffffff811115612d9057600080fd5b8201601f81018413612da157600080fd5b6108ee84823560208401612cd3565b6020808252825182820181905260009190848201906040850190845b81811015612de857835183529284019291840191600101612dcc565b50909695505050505050565b60008060408385031215612e0757600080fd5b612e1083612bbb565b915060208301358015158114612e2557600080fd5b809150509250929050565b60008060008060808587031215612e4657600080fd5b612e4f85612bbb565b9350612e5d60208601612bbb565b925060408501359150606085013567ffffffffffffffff811115612e8057600080fd5b8501601f81018713612e9157600080fd5b612ea087823560208401612cd3565b91505092959194509250565b60008060408385031215612ebf57600080fd5b612ec883612bbb565b9150612ed660208401612bbb565b90509250929050565b600181811c90821680612ef357607f821691505b60208210811415612f2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015612f7457612f74612f33565b500390565b60008219821115612f8c57612f8c612f33565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612fc957612fc9612f33565b500290565b600060ff821660ff84168060ff03821115612feb57612feb612f33565b019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561302557613025612f33565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000835161306d818460208801612b19565b835190830190613081818360208801612b19565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826130f0576130f06130b2565b500490565b600082613104576131046130b2565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261313b6080830184612b45565b9695505050505050565b60006020828403121561315757600080fd5b8151611b7f81612a4056fea2646970667358221220d6e4f59544132d6631bde3527e42c9f79b0b231931731c9216414fceb14a984e64736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106102d15760003560e01c80636352211e11610179578063a0712d68116100d6578063c87b56dd1161008a578063f2fde38b11610064578063f2fde38b146107bd578063f4282850146107dd578063f81227d4146107f257600080fd5b8063c87b56dd1461073e578063d5ece6ea1461075e578063e985e9c51461077457600080fd5b8063a70f1fbe116100bb578063a70f1fbe146106f2578063b88d4fde14610708578063b9c3a8181461072857600080fd5b8063a0712d68146106bf578063a22cb465146106d257600080fd5b80638462151c1161012d5780638da5cb5b116101125780638da5cb5b1461066c57806391b7f5ed1461068a57806395d89b41146106aa57600080fd5b80638462151c146106295780638d859f3e1461065657600080fd5b806370a082311161015e57806370a08231146105d4578063715018a6146105f45780637cb647591461060957600080fd5b80636352211e146105945780636f8b44b0146105b457600080fd5b806332cb6b0c1161023257806342842e0e116101e657806355f804b3116101c057806355f804b31461053b578063564566a81461055b57806360d938dc1461057a57600080fd5b806342842e0e146104b95780634f6ccce7146104d957806355105e9e146104f957600080fd5b806334918dfd1161021757806334918dfd1461046f5780633ccfd60b146104845780634192b2071461049957600080fd5b806332cb6b0c146104395780633425f90c1461044f57600080fd5b8063095ea7b31161028957806318160ddd1161026e57806318160ddd146103da57806323b872dd146103f95780632f745c591461041957600080fd5b8063095ea7b3146103a75780630c0a6b5e146103c757600080fd5b806306fdde03116102ba57806306fdde031461032b578063081812fc1461034d578063088a4ed01461038557600080fd5b806301ffc9a7146102d6578063069824fb1461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612a6e565b610807565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b506102f6610326366004612ad7565b610863565b34801561033757600080fd5b506103406108f6565b6040516103029190612b8f565b34801561035957600080fd5b5061036d610368366004612ba2565b610988565b6040516001600160a01b039091168152602001610302565b34801561039157600080fd5b506103a56103a0366004612ba2565b610a26565b005b3480156103b357600080fd5b506103a56103c2366004612bd7565b610a85565b6103a56103d5366004612c01565b610bb7565b3480156103e657600080fd5b506002545b604051908152602001610302565b34801561040557600080fd5b506103a5610414366004612c4d565b610f0e565b34801561042557600080fd5b506103eb610434366004612bd7565b610f19565b34801561044557600080fd5b506103eb60075481565b34801561045b57600080fd5b506103a561046a366004612ba2565b611028565b34801561047b57600080fd5b506103a5611087565b34801561049057600080fd5b506103a561111b565b3480156104a557600080fd5b506103a56104b4366004612ba2565b61119b565b3480156104c557600080fd5b506103a56104d4366004612c4d565b6111fa565b3480156104e557600080fd5b506103eb6104f4366004612ba2565b611215565b34801561050557600080fd5b50610529610514366004612c89565b600d6020526000908152604090205460ff1681565b60405160ff9091168152602001610302565b34801561054757600080fd5b506103a5610556366004612d67565b611272565b34801561056757600080fd5b50600c546102f690610100900460ff1681565b34801561058657600080fd5b50600c546102f69060ff1681565b3480156105a057600080fd5b5061036d6105af366004612ba2565b6112e3565b3480156105c057600080fd5b506103a56105cf366004612ba2565b611383565b3480156105e057600080fd5b506103eb6105ef366004612c89565b6113e2565b34801561060057600080fd5b506103a56114c7565b34801561061557600080fd5b506103a5610624366004612ba2565b61152b565b34801561063557600080fd5b50610649610644366004612c89565b61158a565b6040516103029190612db0565b34801561066257600080fd5b506103eb600a5481565b34801561067857600080fd5b506005546001600160a01b031661036d565b34801561069657600080fd5b506103a56106a5366004612ba2565b611684565b3480156106b657600080fd5b506103406116e3565b6103a56106cd366004612ba2565b6116f2565b3480156106de57600080fd5b506103a56106ed366004612df4565b6119b8565b3480156106fe57600080fd5b506103eb60095481565b34801561071457600080fd5b506103a5610723366004612e30565b611a9b565b34801561073457600080fd5b506103eb60085481565b34801561074a57600080fd5b50610340610759366004612ba2565b611aad565b34801561076a57600080fd5b506103eb600b5481565b34801561078057600080fd5b506102f661078f366004612eac565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156107c957600080fd5b506103a56107d8366004612c89565b611b86565b3480156107e957600080fd5b506103a5611c68565b3480156107fe57600080fd5b506103a5611d4d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061085d575061085d82611dd9565b92915050565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260009081906034016040516020818303038152906040528051906020012090506108ee81858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611ebc92505050565b949350505050565b60606000805461090590612edf565b80601f016020809104026020016040519081016040528092919081815260200182805461093190612edf565b801561097e5780601f106109535761010080835404028352916020019161097e565b820191906000526020600020905b81548152906001019060200180831161096157829003601f168201915b5050505050905090565b600061099382611f6c565b610a0a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6005546001600160a01b03163314610a805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600b55565b6000610a90826112e3565b9050806001600160a01b0316836001600160a01b03161415610b1a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a01565b336001600160a01b0382161480610b365750610b36813361078f565b610ba85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a01565b610bb28383611fb6565b505050565b60026006541415610c0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a01565b6002600655600c5460ff16610c615760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610a01565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152600090603401604051602081830303815290604052805190602001209050610cea81848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611ebc92505050565b610d365760405162461bcd60e51b815260206004820152601060248201527f496e636f7272656374206d65726b6c65000000000000000000000000000000006044820152606401610a01565b6000610d4160025490565b336000908152600d60205260408120546009549293509091610d669160ff1690612f62565b905080861115610db85760405162461bcd60e51b815260206004820152601860248201527f546f6f206d616e79206d696e74732072657175657374656400000000000000006044820152606401610a01565b600754610dc58784612f79565b1115610e395760405162461bcd60e51b815260206004820152603160248201527f5468652072657175657374656420616d6f756e7420657863656564732074686560448201527f2072656d61696e696e6720737570706c790000000000000000000000000000006064820152608401610a01565b85600a54610e479190612f91565b341015610e965760405162461bcd60e51b815260206004820152601860248201527f57726f6e67206d73672e76616c75652070726f766964656400000000000000006044820152606401610a01565b336000908152600d602052604081208054889290610eb890849060ff16612fce565b92506101000a81548160ff021916908360ff16021790555060005b86811015610f0057610eee33610ee98386612f79565b61203c565b80610ef881612ff3565b915050610ed3565b505060016006555050505050565b610bb2838383612056565b6000610f24836113e2565b8210610f725760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f62000000000000000000006044820152606401610a01565b6000805b600254811015610fdf5760028181548110610f9357610f9361302c565b6000918252602090912001546001600160a01b0386811691161415610fcf5783821415610fc357915061085d9050565b610fcc82612ff3565b91505b610fd881612ff3565b9050610f76565b5060405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f62000000000000000000006044820152606401610a01565b6005546001600160a01b031633146110825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600955565b6005546001600160a01b031633146110e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b6005546001600160a01b031633146111755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b60405133904780156108fc02916000818181858888f1935050505061119957600080fd5b565b6005546001600160a01b031633146111f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600855565b610bb283838360405180602001604052806000815250611a9b565b600061122060025490565b821061126e5760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f620000000000000000006044820152606401610a01565b5090565b6005546001600160a01b031633146112cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b80516112df90600f9060208401906129b0565b5050565b600080600283815481106112f9576112f961302c565b6000918252602090912001546001600160a01b031690508061085d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a01565b6005546001600160a01b031633146113dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600755565b60006001600160a01b0382166114605760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a01565b600254600090815b818110156114be57600281815481106114835761148361302c565b6000918252602090912001546001600160a01b03868116911614156114ae576114ab83612ff3565b92505b6114b781612ff3565b9050611468565b50909392505050565b6005546001600160a01b031633146115215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b61119960006120dd565b6005546001600160a01b031633146115855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600e55565b6060611595826113e2565b6000106115e45760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f62000000000000000000006044820152606401610a01565b60006115ef836113e2565b905060008167ffffffffffffffff81111561160c5761160c612ca4565b604051908082528060200260200182016040528015611635578160200160208202803683370190505b50905060005b8281101561167c5761164d8582610f19565b82828151811061165f5761165f61302c565b60209081029190910101528061167481612ff3565b91505061163b565b509392505050565b6005546001600160a01b031633146116de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600a55565b60606001805461090590612edf565b600260065414156117455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a01565b6002600655600c54610100900460ff166117a15760405162461bcd60e51b815260206004820152601260248201527f53616c65206973206e6f742061637469766500000000000000000000000000006044820152606401610a01565b600081116117f15760405162461bcd60e51b815260206004820181905260248201527f4d696e74656420616d6f756e742073686f756c6420626520706f7369746976656044820152606401610a01565b600b548111156118435760405162461bcd60e51b815260206004820181905260248201527f4d696e74656420616d6f756e7420657863656564732073616c65206c696d69746044820152606401610a01565b333b156118925760405162461bcd60e51b815260206004820152601960248201527f43616e206e6f74206d696e7420617320636f6e747261637421000000000000006044820152606401610a01565b600061189d60025490565b90506118a860075490565b6118b28383612f79565b11156119265760405162461bcd60e51b815260206004820152603160248201527f5468652072657175657374656420616d6f756e7420657863656564732074686560448201527f2072656d61696e696e6720737570706c790000000000000000000000000000006064820152608401610a01565b81600a546119349190612f91565b3410156119835760405162461bcd60e51b815260206004820152600b60248201527f57726f6e672076616c75650000000000000000000000000000000000000000006044820152606401610a01565b60005b828110156119ae5761199c33610ee98385612f79565b806119a681612ff3565b915050611986565b5050600160065550565b6001600160a01b038216331415611a115760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a01565b3360008181526004602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611aa784848484612147565b50505050565b6060611ab882611f6c565b611b2a5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e000000000000000000000000000000000000000000000000000000000000006064820152608401610a01565b6000611b346121cf565b90506000815111611b545760405180602001604052806000815250611b7f565b80611b5e846121de565b604051602001611b6f92919061305b565b6040516020818303038152906040525b9392505050565b6005546001600160a01b03163314611be05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b6001600160a01b038116611c5c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a01565b611c65816120dd565b50565b6005546001600160a01b03163314611cc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b6000611ccd60025490565b90506008548110611d205760405162461bcd60e51b815260206004820152600f60248201527f416c7265616479206d696e7465642100000000000000000000000000000000006044820152606401610a01565b60005b6008548110156112df57611d3b33610ee98385612f79565b80611d4581612ff3565b915050611d23565b6005546001600160a01b03163314611da75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a01565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611e6c57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061085d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461085d565b600082815b8351811015611f60576000848281518110611ede57611ede61302c565b60200260200101519050808311611f20576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611f4d565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611f5881612ff3565b915050611ec1565b50600e54149392505050565b6002546000908210801561085d575060006001600160a01b031660028381548110611f9957611f9961302c565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612003826112e3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6112df828260405180602001604052806000815250612310565b6120603382612399565b6120d25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a01565b610bb2838383612490565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121513383612399565b6121c35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a01565b611aa78484848461262b565b6060600f805461090590612edf565b60608161221e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612248578061223281612ff3565b91506122419050600a836130e1565b9150612222565b60008167ffffffffffffffff81111561226357612263612ca4565b6040519080825280601f01601f19166020018201604052801561228d576020820181803683370190505b5090505b84156108ee576122a2600183612f62565b91506122af600a866130f5565b6122ba906030612f79565b60f81b8183815181106122cf576122cf61302c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612309600a866130e1565b9450612291565b61231a83836126b4565b61232760008484846127f4565b610bb25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a01565b60006123a482611f6c565b6124165760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a01565b6000612421836112e3565b9050806001600160a01b0316846001600160a01b0316148061245c5750836001600160a01b031661245184610988565b6001600160a01b0316145b806108ee57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff166108ee565b826001600160a01b03166124a3826112e3565b6001600160a01b03161461251f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a01565b6001600160a01b03821661259a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a01565b6125a5600082611fb6565b81600282815481106125b9576125b961302c565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b612636848484612490565b612642848484846127f4565b611aa75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a01565b6001600160a01b03821661270a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a01565b61271381611f6c565b156127605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a01565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156129a5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612851903390899088908890600401613109565b6020604051808303816000875af19250505080156128aa575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526128a791810190613145565b60015b61295a573d8080156128d8576040519150601f19603f3d011682016040523d82523d6000602084013e6128dd565b606091505b5080516129525760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a01565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506108ee565b506001949350505050565b8280546129bc90612edf565b90600052602060002090601f0160209004810192826129de5760008555612a24565b82601f106129f757805160ff1916838001178555612a24565b82800160010185558215612a24579182015b82811115612a24578251825591602001919060010190612a09565b5061126e9291505b8082111561126e5760008155600101612a2c565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c6557600080fd5b600060208284031215612a8057600080fd5b8135611b7f81612a40565b60008083601f840112612a9d57600080fd5b50813567ffffffffffffffff811115612ab557600080fd5b6020830191508360208260051b8501011115612ad057600080fd5b9250929050565b60008060208385031215612aea57600080fd5b823567ffffffffffffffff811115612b0157600080fd5b612b0d85828601612a8b565b90969095509350505050565b60005b83811015612b34578181015183820152602001612b1c565b83811115611aa75750506000910152565b60008151808452612b5d816020860160208601612b19565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611b7f6020830184612b45565b600060208284031215612bb457600080fd5b5035919050565b80356001600160a01b0381168114612bd257600080fd5b919050565b60008060408385031215612bea57600080fd5b612bf383612bbb565b946020939093013593505050565b600080600060408486031215612c1657600080fd5b83359250602084013567ffffffffffffffff811115612c3457600080fd5b612c4086828701612a8b565b9497909650939450505050565b600080600060608486031215612c6257600080fd5b612c6b84612bbb565b9250612c7960208501612bbb565b9150604084013590509250925092565b600060208284031215612c9b57600080fd5b611b7f82612bbb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612cee57612cee612ca4565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612d3457612d34612ca4565b81604052809350858152868686011115612d4d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d7957600080fd5b813567ffffffffffffffff811115612d9057600080fd5b8201601f81018413612da157600080fd5b6108ee84823560208401612cd3565b6020808252825182820181905260009190848201906040850190845b81811015612de857835183529284019291840191600101612dcc565b50909695505050505050565b60008060408385031215612e0757600080fd5b612e1083612bbb565b915060208301358015158114612e2557600080fd5b809150509250929050565b60008060008060808587031215612e4657600080fd5b612e4f85612bbb565b9350612e5d60208601612bbb565b925060408501359150606085013567ffffffffffffffff811115612e8057600080fd5b8501601f81018713612e9157600080fd5b612ea087823560208401612cd3565b91505092959194509250565b60008060408385031215612ebf57600080fd5b612ec883612bbb565b9150612ed660208401612bbb565b90509250929050565b600181811c90821680612ef357607f821691505b60208210811415612f2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015612f7457612f74612f33565b500390565b60008219821115612f8c57612f8c612f33565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612fc957612fc9612f33565b500290565b600060ff821660ff84168060ff03821115612feb57612feb612f33565b019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561302557613025612f33565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000835161306d818460208801612b19565b835190830190613081818360208801612b19565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826130f0576130f06130b2565b500490565b600082613104576131046130b2565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261313b6080830184612b45565b9695505050505050565b60006020828403121561315757600080fd5b8151611b7f81612a4056fea2646970667358221220d6e4f59544132d6631bde3527e42c9f79b0b231931731c9216414fceb14a984e64736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.