ETH Price: $3,676.71 (+1.15%)
 

Overview

Max Total Supply

350 CWA

Holders

69

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
artmcarty.eth
Balance
1 CWA
0x39820ac459e8d7ca56ec94bf1d0a7be4a68ae3c1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CyberWarriorsArmyNFT

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 500 runs

Other Settings:
byzantium EvmVersion
File 1 of 14 : CyberWarriorsArmy.sol
// SPDX-License-Identifier: UNLICENSED
// solium-disable linebreak-style
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

contract CyberWarriorsArmyNFT is Context, Ownable, ERC721 {
  using Address for address;
  using Strings for uint256;

  string private _baseTokenURI;
  string private _notRevealedURI;

  uint8 public LIMIT_TOKENS_PER_WALLET_PUBLIC = 20;
  uint8 public LIMIT_TOKENS_PER_WALLET_PRIVATE = 5;
  uint8 public LIMIT_TOKENS_FOR_GIVEAWAYS = 250;

  uint256 public PRIVATE_MINT_TOKEN_PRICE = 0.035 ether;
  uint256 public PUBLIC_MINT_TOKEN_PRICE = 0.050 ether;

  bool public revealed = false;
  bool public isPublic = false;
  bool public isOpen = false;

  uint256 public maxSupply;
  uint256 private nextTokenId = 1;
  mapping(address => bool) private _whitelisted;
  mapping(address => uint256) public countPurchasedTokens;

  /** Events */
  event AddedToWhitelist(address indexed account);
  event RemoveFromWhitelist(address indexed account);

  /** Constructor */

  constructor(
    address superOwner,
    string memory name,
    string memory symbol,
    uint256 initMaxSupply,
    string memory baseTokenURI,
    string memory notRevealedURI
    ) ERC721(name, symbol) {
    _baseTokenURI = baseTokenURI;
    _notRevealedURI = notRevealedURI;
    maxSupply = initMaxSupply;

    if (superOwner != msg.sender) {
      transferOwnership(superOwner);
    }
  }

  /** Functions */

  /// The required currency value in wei during the method execution based on the price for the token from the current round
  /// @dev Buy tokens by single wallet
  function buyToken(uint8 _amount) public payable {
    require(isOpen, "Minting is not open yet");
    require(msg.sender == tx.origin, "no bots");        // solium-disable-line security/no-tx-origin

    uint256 _nextTokenId = nextTokenId;
    uint256 _currentSupply = _nextTokenId - 1;
    uint256 _purchasedByWallet = countPurchasedTokens[msg.sender];

    uint8 maxWalletSupply = LIMIT_TOKENS_PER_WALLET_PUBLIC;
    uint256 currentTokenPrice = PUBLIC_MINT_TOKEN_PRICE;
    if (isPublic == false) {
      require(_whitelisted[msg.sender], "You are not whitelisted");
      maxWalletSupply = LIMIT_TOKENS_PER_WALLET_PRIVATE;
      currentTokenPrice = PRIVATE_MINT_TOKEN_PRICE;
    }

    require(_amount * currentTokenPrice == msg.value, "invalid coin amount");
    require(_currentSupply + _amount <= maxSupply, "mint: maxSupply reached");
    require(_purchasedByWallet + _amount <= LIMIT_TOKENS_PER_WALLET_PUBLIC, "mint: limit tokens for this wallet reached");

    for (uint8 i = 0; i < _amount; i++) {
      _safeMint(msg.sender, _nextTokenId);
      unchecked {
        _nextTokenId++;
        _purchasedByWallet++;
      }

    }
    unchecked {
      countPurchasedTokens[msg.sender] = _purchasedByWallet;
      nextTokenId = _nextTokenId;
    }

  }

  function _baseURI() internal view virtual override returns (string memory) {
    return _baseTokenURI;
  }

  /// Only owner
  /// @dev Change baseURI
  /// @param newTokenURI New uri to new folder with metadata
  function setBaseURI(string memory newTokenURI) public onlyOwner returns (bool) {
    _baseTokenURI = newTokenURI;
    return true;
  }

  /// Only owner
  /// @dev Change baseURI for not revealed tokens
  /// @param newTokenURI New uri to new folder with metadata
  function setNotRevealedURI(string memory newTokenURI) public onlyOwner returns (bool) {
    _notRevealedURI = newTokenURI;
    return true;
  }

  /// @dev Return all available tokens
  function availableTokens() public view returns (uint256) {
    uint256 supply = nextTokenId - 1;
    return maxSupply - supply;
  }

    /// @dev Return all available tokens
  function totalSupply() public view returns (uint256) {
    return nextTokenId - 1;
  }

  /**
    * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
    */
  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

    if(revealed == false) {
      return _notRevealedURI;
    }

    string memory baseURI = _baseURI();
    return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : "";
  }

  /// Only owner
  /// @dev Reveal URI of tokens
  function reveal() public onlyOwner {
    revealed = true;
  }

  /// Only owner
  /// @dev Sets public mint
  /// @param _isPublic  isPublic indicator
  function setPublic(bool _isPublic) public onlyOwner {
    isPublic = _isPublic;
  }

  /// Only owner
  /// @dev Sets open mint
  /// @param _isOpen  isOpen indicator
  function setOpen(bool _isOpen) public onlyOwner {
    isOpen = _isOpen;
  }

  /// Only owner
  /// @dev Add array of addresses to whitelist
  /// @param _addresses array of addresses
  function addToWhitelist(address[] memory _addresses) public onlyOwner {
    require(_addresses.length > 0, "Addresses not provided");
    uint16 i = 0;
    for(i; i < _addresses.length; i++) {
      if (!_whitelisted[_addresses[i]]) {
        _whitelisted[_addresses[i]] = true;
        emit AddedToWhitelist(_addresses[i]);
      }
    }
  }

  /// Only owner
  /// @dev Remove array of addresses from whitelist
  /// @param _addresses array of addresses
  function removeFromWhitelist(address[] memory _addresses) public onlyOwner {
    require(_addresses.length > 0, "Addresses not provided");
    uint16 i = 0;
    for(i; i < _addresses.length; i++) {
      if (_whitelisted[_addresses[i]]) {
        _whitelisted[_addresses[i]] = false;
        emit RemoveFromWhitelist(_addresses[i]);
      }
    }
  }

  /// @dev Check if address is on whitelist
  /// @param _address address to check
  function isWhitelisted(address _address) public view returns(bool) {
    return _whitelisted[_address];
  }

  /// Only owner
  /// @dev Withdraw funds to the receiver address
  /// @param receiver wallet of receiver funds
  /// @param amount amount of funds
  function withdraw(address payable receiver, uint256 amount) public onlyOwner {
    receiver.transfer(amount);
  }

  /// Only owner
  /// @dev Creates Giveaways tokens
  /// @param tokensAmount amount of tokens to be created
  function createGiveawayTokens(
    uint8 tokensAmount
  ) public onlyOwner {
    uint256 _nextTokenId = nextTokenId;
    uint256 _currentSupply = totalSupply();
    uint256 _purchasedTokensByWallet = countPurchasedTokens[msg.sender];

    require(
      _purchasedTokensByWallet + tokensAmount <= LIMIT_TOKENS_FOR_GIVEAWAYS,
      "createGiveawaysTokens: limit tokens for giveaway wallet reached"
    );
    require(_currentSupply + tokensAmount <= maxSupply, "createGiveawaysTokens: Total tokens limit reached");

    for (uint8 i = 0; i < tokensAmount; i++) {
      _safeMint(msg.sender, _nextTokenId);
      _nextTokenId++;
      _purchasedTokensByWallet++;
    }
    nextTokenId = _nextTokenId;
    countPurchasedTokens[msg.sender] = _purchasedTokensByWallet;
  }

  function tokensOfOwnerByIndex(address _owner, uint256 _index)
      public
      view
      returns (uint256) {
    return tokensOfOwner(_owner)[_index];
  }

  function tokensOfOwner(address _owner)
    public
    view
    returns (uint256[] memory) {
    uint256 _tokenCount = balanceOf(_owner);
    uint256[] memory _tokenIds = new uint256[](_tokenCount);
    uint256 _tokenIndex = 0;
    for (uint256 i = 1; i <= totalSupply(); i++) {
      if (ownerOf(i) == _owner) {
        _tokenIds[_tokenIndex] = i;
        _tokenIndex++;
      }
    }
    return _tokenIds;
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal virtual override(ERC721) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  /**
    * @dev See {IERC165-supportsInterface}.
    */
  function supportsInterface(bytes4 interfaceId)
      public
      view
      virtual
      override(ERC721)
      returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 3 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 4 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 5 of 14 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 6 of 14 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 9 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 10 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 11 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 13 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"superOwner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"initMaxSupply","type":"uint256"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"notRevealedURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AddedToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"account","type":"address"}],"name":"RemoveFromWhitelist","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":"LIMIT_TOKENS_FOR_GIVEAWAYS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_TOKENS_PER_WALLET_PRIVATE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_TOKENS_PER_WALLET_PUBLIC","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIVATE_MINT_TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"buyToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"countPurchasedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokensAmount","type":"uint8"}],"name":"createGiveawayTokens","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":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"_addresses","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"setBaseURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"setNotRevealedURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpen","type":"bool"}],"name":"setOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublic","type":"bool"}],"name":"setPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokensOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260098054601460ff199091161761ff0019166105001762ff0000191662fa0000179055667c585087238000600a5566b1a2bc2ec50000600b55600c805462ffffff191690556001600e553480156200005b57600080fd5b50604051620034c2380380620034c28339810160408190526200007e91620003dc565b8484620000a66200009764010000000062000136810204565b6401000000006200013a810204565b8151620000bb9060019060208501906200026e565b508051620000d19060029060208401906200026e565b50508251620000e9915060079060208501906200026e565b508051620000ff9060089060208401906200026e565b50600d839055600160a060020a03861633146200012a576200012a866401000000006200018a810204565b505050505050620005c2565b3390565b60008054600160a060020a03838116600160a060020a0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200019d64010000000062000136810204565b600160a060020a0316620001b96401000000006200025f810204565b600160a060020a03161462000205576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001fc9062000508565b60405180910390fd5b600160a060020a03811662000248576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001fc90620004ab565b6200025c816401000000006200013a810204565b50565b600054600160a060020a031690565b8280546200027c906200053d565b90600052602060002090601f016020900481019282620002a05760008555620002eb565b82601f10620002bb57805160ff1916838001178555620002eb565b82800160010185558215620002eb579182015b82811115620002eb578251825591602001919060010190620002ce565b50620002f9929150620002fd565b5090565b5b80821115620002f95760008155600101620002fe565b8051600160a060020a03811681146200032c57600080fd5b919050565b600082601f83011262000342578081fd5b81516001604060020a03808211156200035f576200035f62000593565b6040516020601f8401601f191682018101838111838210171562000387576200038762000593565b60405283825285840181018710156200039e578485fd5b8492505b83831015620003c15785830181015182840182015291820191620003a2565b83831115620003d257848185840101525b5095945050505050565b60008060008060008060c08789031215620003f5578182fd5b620004008762000314565b955060208701516001604060020a03808211156200041c578384fd5b6200042a8a838b0162000331565b9650604089015191508082111562000440578384fd5b6200044e8a838b0162000331565b95506060890151945060808901519150808211156200046b578384fd5b620004798a838b0162000331565b935060a08901519150808211156200048f578283fd5b506200049e89828a0162000331565b9150509295509295509295565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6002810460018216806200055257607f821691505b602082108114156200058d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ef080620005d26000396000f3fe608060405260043610610273576000357c01000000000000000000000000000000000000000000000000000000009004806370a0823111610166578063c87b56dd116100e3578063e985e9c5116100a7578063f3fef3a311610081578063f3fef3a3146106ec578063fdafc62c1461070c578063fedbce601461071f57610273565b8063e985e9c51461068c578063f2c4ce1e146106ac578063f2fde38b146106cc57610273565b8063c87b56dd14610618578063ce0af75814610638578063d5abeb011461064d578063dc9a153514610662578063dce630701461067757610273565b806393357a2e1161012a57806393357a2e1461058e57806395d89b41146105ae578063a22cb465146105c3578063a475b5dd146105e3578063b88d4fde146105f857610273565b806370a08231146104f7578063715018a6146105175780637f6497831461052c5780638462151c1461054c5780638da5cb5b1461057957610273565b806346736ee0116101f457806355f804b3116101b857806355f804b3146104625780635cbcec4e146104825780636352211e146104a257806369bb4dc2146104c25780636fdca5e0146104d757610273565b806346736ee0146103d85780634707f44f146103f857806347535d7b14610418578063518302271461042d578063548db1741461044257610273565b80630cb6aea41161023b5780630cb6aea41461034157806318160ddd1461036357806323b872dd146103785780633af32abf1461039857806342842e0e146103b857610273565b806301b958321461027857806301ffc9a7146102a357806306fdde03146102d0578063081812fc146102f2578063095ea7b31461031f575b600080fd5b34801561028457600080fd5b5061028d610734565b60405161029a9190612c81565b60405180910390f35b3480156102af57600080fd5b506102c36102be366004612300565b61073a565b60405161029a91906124ce565b3480156102dc57600080fd5b506102e561074d565b60405161029a91906124d9565b3480156102fe57600080fd5b5061031261030d36600461237e565b6107df565b60405161029a919061243a565b34801561032b57600080fd5b5061033f61033a366004612221565b61082e565b005b34801561034d57600080fd5b506103566108cc565b60405161029a9190612c8a565b34801561036f57600080fd5b5061028d6108db565b34801561038457600080fd5b5061033f610393366004612130565b6108f1565b3480156103a457600080fd5b506102c36103b33660046120b1565b61092c565b3480156103c457600080fd5b5061033f6103d3366004612130565b61094a565b3480156103e457600080fd5b5061028d6103f33660046120b1565b610965565b34801561040457600080fd5b5061028d610413366004612221565b610977565b34801561042457600080fd5b506102c36109b8565b34801561043957600080fd5b506102c36109c7565b34801561044e57600080fd5b5061033f61045d366004612233565b6109d0565b34801561046e57600080fd5b506102c361047d366004612338565b610b90565b34801561048e57600080fd5b5061033f61049d3660046122e6565b610bf0565b3480156104ae57600080fd5b506103126104bd36600461237e565b610c4c565b3480156104ce57600080fd5b5061028d610c84565b3480156104e357600080fd5b5061033f6104f23660046122e6565b610cac565b34801561050357600080fd5b5061028d6105123660046120b1565b610d0a565b34801561052357600080fd5b5061033f610d51565b34801561053857600080fd5b5061033f610547366004612233565b610d9f565b34801561055857600080fd5b5061056c6105673660046120b1565b610f5a565b60405161029a919061248a565b34801561058557600080fd5b50610312611057565b34801561059a57600080fd5b5061033f6105a9366004612396565b611066565b3480156105ba57600080fd5b506102e561119a565b3480156105cf57600080fd5b5061033f6105de3660046121ed565b6111a9565b3480156105ef57600080fd5b5061033f61127a565b34801561060457600080fd5b5061033f610613366004612170565b6112cb565b34801561062457600080fd5b506102e561063336600461237e565b61130d565b34801561064457600080fd5b5061035661142f565b34801561065957600080fd5b5061028d61143d565b34801561066e57600080fd5b506102c3611443565b34801561068357600080fd5b5061028d611451565b34801561069857600080fd5b506102c36106a73660046120f8565b611457565b3480156106b857600080fd5b506102c36106c7366004612338565b611485565b3480156106d857600080fd5b5061033f6106e73660046120b1565b6114dc565b3480156106f857600080fd5b5061033f6107073660046120cd565b611553565b61033f61071a366004612396565b6115cb565b34801561072b57600080fd5b50610356611787565b600a5481565b600061074582611790565b90505b919050565b60606001805461075c90612d50565b80601f016020809104026020016040519081016040528092919081815260200182805461078890612d50565b80156107d55780601f106107aa576101008083540402835291602001916107d5565b820191906000526020600020905b8154815290600101906020018083116107b857829003601f168201915b5050505050905090565b60006107ea8261182c565b6108125760405160e560020a62461bcd0281526004016108099061291c565b60405180910390fd5b50600090815260056020526040902054600160a060020a031690565b600061083982610c4c565b905080600160a060020a031683600160a060020a031614156108705760405160e560020a62461bcd02815260040161080990612ac5565b80600160a060020a0316610882611849565b600160a060020a0316148061089e575061089e816106a7611849565b6108bd5760405160e560020a62461bcd02815260040161080990612799565b6108c7838361184d565b505050565b60095462010000900460ff1681565b60006001600e546108ec9190612d0d565b905090565b6109026108fc611849565b826118c8565b6109215760405160e560020a62461bcd02815260040161080990612b90565b6108c7838383611950565b600160a060020a03166000908152600f602052604090205460ff1690565b6108c7838383604051806020016040528060008152506112cb565b60106020526000908152604090205481565b600061098283610f5a565b82815181106109a857600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151905092915050565b600c5462010000900460ff1681565b600c5460ff1681565b6109d8611849565b600160a060020a03166109e9611057565b600160a060020a031614610a125760405160e560020a62461bcd028152600401610809906129d6565b6000815111610a365760405160e560020a62461bcd02815260040161080990612b22565b60005b81518161ffff161015610b8c57600f6000838361ffff1681518110610a7557600080516020612e9b833981519152600052603260045260246000fd5b602090810291909101810151600160a060020a031682528101919091526040016000205460ff1615610b7a576000600f6000848461ffff1681518110610ad257600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a0316600160a060020a0316815260200190815260200160002060006101000a81548160ff021916908315150217905550818161ffff1681518110610b3c57600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a03167f1f756c8b089af6b33ee121fee8badac2553a2fa89c0575ea91ff8792617746c260405160405180910390a25b80610b8481612d92565b915050610a39565b5050565b6000610b9a611849565b600160a060020a0316610bab611057565b600160a060020a031614610bd45760405160e560020a62461bcd028152600401610809906129d6565b8151610be7906007906020850190611fb0565b50600192915050565b610bf8611849565b600160a060020a0316610c09611057565b600160a060020a031614610c325760405160e560020a62461bcd028152600401610809906129d6565b600c80549115156101000261ff0019909216919091179055565b600081815260036020526040812054600160a060020a0316806107455760405160e560020a62461bcd02815260040161080990612853565b6000806001600e54610c969190612d0d565b905080600d54610ca69190612d0d565b91505090565b610cb4611849565b600160a060020a0316610cc5611057565b600160a060020a031614610cee5760405160e560020a62461bcd028152600401610809906129d6565b600c8054911515620100000262ff000019909216919091179055565b6000600160a060020a038216610d355760405160e560020a62461bcd028152600401610809906127f6565b50600160a060020a031660009081526004602052604090205490565b610d59611849565b600160a060020a0316610d6a611057565b600160a060020a031614610d935760405160e560020a62461bcd028152600401610809906129d6565b610d9d6000611a90565b565b610da7611849565b600160a060020a0316610db8611057565b600160a060020a031614610de15760405160e560020a62461bcd028152600401610809906129d6565b6000815111610e055760405160e560020a62461bcd02815260040161080990612b22565b60005b81518161ffff161015610b8c57600f6000838361ffff1681518110610e4457600080516020612e9b833981519152600052603260045260246000fd5b602090810291909101810151600160a060020a031682528101919091526040016000205460ff16610f48576001600f6000848461ffff1681518110610ea057600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a0316600160a060020a0316815260200190815260200160002060006101000a81548160ff021916908315150217905550818161ffff1681518110610f0a57600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a03167fa850ae9193f515cbae8d35e8925bd2be26627fc91bce650b8652ed254e9cab0360405160405180910390a25b80610f5281612d92565b915050610e08565b60606000610f6783610d0a565b905060008167ffffffffffffffff811115610f9957600080516020612e9b833981519152600052604160045260246000fd5b604051908082528060200260200182016040528015610fc2578160200160208202803683370190505b509050600060015b610fd26108db565b811161104d5785600160a060020a0316610feb82610c4c565b600160a060020a0316141561103b578083838151811061102257600080516020612e9b833981519152600052603260045260246000fd5b60209081029190910101528161103781612db4565b9250505b8061104581612db4565b915050610fca565b5090949350505050565b600054600160a060020a031690565b61106e611849565b600160a060020a031661107f611057565b600160a060020a0316146110a85760405160e560020a62461bcd028152600401610809906129d6565b600e5460006110b56108db565b336000908152601060205260409020546009549192509060ff620100009091048116906110e490861683612cc2565b11156111055760405160e560020a62461bcd0281526004016108099061264b565b600d5461111560ff861684612cc2565b11156111365760405160e560020a62461bcd02815260040161080990612bed565b60005b8460ff168160ff16101561117f576111513385611aed565b8361115b81612db4565b945050818061116990612db4565b925050808061117790612dcf565b915050611139565b50600e92909255503360009081526010602052604090205550565b60606002805461075c90612d50565b6111b1611849565b600160a060020a031682600160a060020a031614156111e55760405160e560020a62461bcd02815260040161080990612705565b80600660006111f2611849565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611236611849565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161126e91906124ce565b60405180910390a35050565b611282611849565b600160a060020a0316611293611057565b600160a060020a0316146112bc5760405160e560020a62461bcd028152600401610809906129d6565b600c805460ff19166001179055565b6112dc6112d6611849565b836118c8565b6112fb5760405160e560020a62461bcd02815260040161080990612b90565b61130784848484611b07565b50505050565b60606113188261182c565b6113375760405160e560020a62461bcd02815260040161080990612a68565b600c5460ff166113d3576008805461134e90612d50565b80601f016020809104026020016040519081016040528092919081815260200182805461137a90612d50565b80156113c75780601f1061139c576101008083540402835291602001916113c7565b820191906000526020600020905b8154815290600101906020018083116113aa57829003601f168201915b50505050509050610748565b60006113dd611b3d565b905060008151116113fd5760405180602001604052806000815250611428565b8061140784611b4c565b6040516020016114189291906123e3565b6040516020818303038152906040525b9392505050565b600954610100900460ff1681565b600d5481565b600c54610100900460ff1681565b600b5481565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600061148f611849565b600160a060020a03166114a0611057565b600160a060020a0316146114c95760405160e560020a62461bcd028152600401610809906129d6565b8151610be7906008906020850190611fb0565b6114e4611849565b600160a060020a03166114f5611057565b600160a060020a03161461151e5760405160e560020a62461bcd028152600401610809906129d6565b600160a060020a0381166115475760405160e560020a62461bcd028152600401610809906125b7565b61155081611a90565b50565b61155b611849565b600160a060020a031661156c611057565b600160a060020a0316146115955760405160e560020a62461bcd028152600401610809906129d6565b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156108c7573d6000803e3d6000fd5b600c5462010000900460ff166115f65760405160e560020a62461bcd02815260040161080990612c4a565b3332146116185760405160e560020a62461bcd02815260040161080990612523565b600e546000611628600183612d0d565b33600090815260106020526040902054600954600b54600c54939450919260ff91821692916101009091041661169d57336000908152600f602052604090205460ff1661168a5760405160e560020a62461bcd028152600401610809906128e5565b5050600954600a5461010090910460ff16905b346116ab8260ff8916612cee565b146116cb5760405160e560020a62461bcd02815260040161080990612b59565b600d546116db60ff881686612cc2565b11156116fc5760405160e560020a62461bcd028152600401610809906124ec565b60095460ff9081169061171190881685612cc2565b11156117325760405160e560020a62461bcd02815260040161080990612979565b60005b8660ff168160ff16101561176a5761174d3387611aed565b60019586019593909301928061176281612dcf565b915050611735565b5050336000908152601060205260409020919091555050600e5550565b60095460ff1681565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061181d57507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610745575061074582611cc8565b600090815260036020526040902054600160a060020a0316151590565b3390565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038416908117909155819061188f82610c4c565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118d38261182c565b6118f25760405160e560020a62461bcd0281526004016108099061273c565b60006118fd83610c4c565b905080600160a060020a031684600160a060020a03161480611938575083600160a060020a031661192d846107df565b600160a060020a0316145b8061194857506119488185611457565b949350505050565b82600160a060020a031661196382610c4c565b600160a060020a03161461198c5760405160e560020a62461bcd02815260040161080990612a0b565b600160a060020a0382166119b55760405160e560020a62461bcd028152600401610809906126a8565b6119c0838383611d0f565b6119cb60008261184d565b600160a060020a03831660009081526004602052604081208054600192906119f4908490612d0d565b9091555050600160a060020a0382166000908152600460205260408120805460019290611a22908490612cc2565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b8c828260405180602001604052806000815250611d1a565b611b12848484611950565b611b1e84848484611d50565b6113075760405160e560020a62461bcd0281526004016108099061255a565b60606007805461075c90612d50565b606081611b8d575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610748565b8160005b8115611bb75780611ba181612db4565b9150611bb09050600a83612cda565b9150611b91565b60008167ffffffffffffffff811115611be757600080516020612e9b833981519152600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c11576020820181803683370190505b5090505b841561194857611c26600183612d0d565b9150611c33600a86612def565b611c3e906030612cc2565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110611c8757600080516020612e9b833981519152600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611cc1600a86612cda565b9450611c15565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6108c78383836108c7565b611d248383611eb8565b611d316000848484611d50565b6108c75760405160e560020a62461bcd0281526004016108099061255a565b6000611d6484600160a060020a0316611faa565b15611ead5783600160a060020a031663150b7a02611d80611849565b8786866040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401611dbe949392919061244e565b602060405180830381600087803b158015611dd857600080fd5b505af1925050508015611e08575060408051601f3d908101601f19168201909252611e059181019061231c565b60015b611e65573d808015611e36576040519150601f19603f3d011682016040523d82523d6000602084013e611e3b565b606091505b508051611e5d5760405160e560020a62461bcd0281526004016108099061255a565b805181602001fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a0200000000000000000000000000000000000000000000000000000000149050611948565b506001949350505050565b600160a060020a038216611ee15760405160e560020a62461bcd028152600401610809906128b0565b611eea8161182c565b15611f0a5760405160e560020a62461bcd02815260040161080990612614565b611f1660008383611d0f565b600160a060020a0382166000908152600460205260408120805460019290611f3f908490612cc2565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b828054611fbc90612d50565b90600052602060002090601f016020900481019282611fde5760008555612024565b82601f10611ff757805160ff1916838001178555612024565b82800160010185558215612024579182015b82811115612024578251825591602001919060010190612009565b50612030929150612034565b5090565b5b808211156120305760008155600101612035565b600067ffffffffffffffff83111561206357612063612e3d565b612076601f8401601f1916602001612c98565b905082815283838301111561208a57600080fd5b828260208301376000602084830101529392505050565b8035801515811461074857600080fd5b6000602082840312156120c2578081fd5b813561142881612e5a565b600080604083850312156120df578081fd5b82356120ea81612e5a565b946020939093013593505050565b6000806040838503121561210a578182fd5b823561211581612e5a565b9150602083013561212581612e5a565b809150509250929050565b600080600060608486031215612144578081fd5b833561214f81612e5a565b9250602084013561215f81612e5a565b929592945050506040919091013590565b60008060008060808587031215612185578081fd5b843561219081612e5a565b935060208501356121a081612e5a565b925060408501359150606085013567ffffffffffffffff8111156121c2578182fd5b8501601f810187136121d2578182fd5b6121e187823560208401612049565b91505092959194509250565b600080604083850312156121ff578182fd5b823561220a81612e5a565b9150612218602084016120a1565b90509250929050565b600080604083850312156120df578182fd5b60006020808385031215612245578182fd5b823567ffffffffffffffff8082111561225c578384fd5b818501915085601f83011261226f578384fd5b81358181111561228157612281612e3d565b8381029150612291848301612c98565b8181528481019084860184860187018a10156122ab578788fd5b8795505b838610156122d957803594506122c485612e5a565b848352600195909501949186019186016122af565b5098975050505050505050565b6000602082840312156122f7578081fd5b611428826120a1565b600060208284031215612311578081fd5b813561142881612e6f565b60006020828403121561232d578081fd5b815161142881612e6f565b600060208284031215612349578081fd5b813567ffffffffffffffff81111561235f578182fd5b8201601f8101841361236f578182fd5b61194884823560208401612049565b60006020828403121561238f578081fd5b5035919050565b6000602082840312156123a7578081fd5b813560ff81168114611428578182fd5b600081518084526123cf816020860160208601612d24565b601f01601f19169290920160200192915050565b600083516123f5818460208801612d24565b835190830190612409818360208801612d24565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600160a060020a0391909116815260200190565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261248060808301846123b7565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156124c2578351835292840192918401916001016124a6565b50909695505050505050565b901515815260200190565b60006020825261142860208301846123b7565b60208082526017908201527f6d696e743a206d6178537570706c792072656163686564000000000000000000604082015260600190565b60208082526007908201527f6e6f20626f747300000000000000000000000000000000000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252603f908201527f637265617465476976656177617973546f6b656e733a206c696d697420746f6b60408201527f656e7320666f722067697665617761792077616c6c6574207265616368656400606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526017908201527f596f7520617265206e6f742077686974656c6973746564000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f6d696e743a206c696d697420746f6b656e7320666f7220746869732077616c6c60408201527f6574207265616368656400000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f416464726573736573206e6f742070726f766964656400000000000000000000604082015260600190565b60208082526013908201527f696e76616c696420636f696e20616d6f756e7400000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526031908201527f637265617465476976656177617973546f6b656e733a20546f74616c20746f6b60408201527f656e73206c696d69742072656163686564000000000000000000000000000000606082015260800190565b60208082526017908201527f4d696e74696e67206973206e6f74206f70656e20796574000000000000000000604082015260600190565b90815260200190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715612cba57612cba612e3d565b604052919050565b60008219821115612cd557612cd5612e03565b500190565b600082612ce957612ce9612e20565b500490565b6000816000190483118215151615612d0857612d08612e03565b500290565b600082821015612d1f57612d1f612e03565b500390565b60005b83811015612d3f578181015183820152602001612d27565b838111156113075750506000910152565b600281046001821680612d6457607f821691505b60208210811415612d8c57600080516020612e9b833981519152600052602260045260246000fd5b50919050565b600061ffff80831681811415612daa57612daa612e03565b6001019392505050565b6000600019821415612dc857612dc8612e03565b5060010190565b600060ff821660ff811415612de657612de6612e03565b60010192915050565b600082612dfe57612dfe612e20565b500690565b600080516020612e9b833981519152600052601160045260246000fd5b600080516020612e9b833981519152600052601260045260246000fd5b600080516020612e9b833981519152600052604160045260246000fd5b600160a060020a038116811461155057600080fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff198116811461155057600080fdfe4e487b7100000000000000000000000000000000000000000000000000000000a2646970667358221220b2489a5dc73738018786f227309d8ce2318cd45070af59aa6c5b8f5b55998ccc64736f6c634300080000330000000000000000000000001c11309b66be0193d9eebb55bd2917e3f649cf5f00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000001343796265722057617272696f72732041726d790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034357410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f6170692e637962657277617272696f727361726d792e636f6d2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b68747470733a2f2f6170692e637962657277617272696f727361726d792e636f6d2f6d657461646174612f706c616365686f6c6465722e6a736f6e0000000000

Deployed Bytecode

0x608060405260043610610273576000357c01000000000000000000000000000000000000000000000000000000009004806370a0823111610166578063c87b56dd116100e3578063e985e9c5116100a7578063f3fef3a311610081578063f3fef3a3146106ec578063fdafc62c1461070c578063fedbce601461071f57610273565b8063e985e9c51461068c578063f2c4ce1e146106ac578063f2fde38b146106cc57610273565b8063c87b56dd14610618578063ce0af75814610638578063d5abeb011461064d578063dc9a153514610662578063dce630701461067757610273565b806393357a2e1161012a57806393357a2e1461058e57806395d89b41146105ae578063a22cb465146105c3578063a475b5dd146105e3578063b88d4fde146105f857610273565b806370a08231146104f7578063715018a6146105175780637f6497831461052c5780638462151c1461054c5780638da5cb5b1461057957610273565b806346736ee0116101f457806355f804b3116101b857806355f804b3146104625780635cbcec4e146104825780636352211e146104a257806369bb4dc2146104c25780636fdca5e0146104d757610273565b806346736ee0146103d85780634707f44f146103f857806347535d7b14610418578063518302271461042d578063548db1741461044257610273565b80630cb6aea41161023b5780630cb6aea41461034157806318160ddd1461036357806323b872dd146103785780633af32abf1461039857806342842e0e146103b857610273565b806301b958321461027857806301ffc9a7146102a357806306fdde03146102d0578063081812fc146102f2578063095ea7b31461031f575b600080fd5b34801561028457600080fd5b5061028d610734565b60405161029a9190612c81565b60405180910390f35b3480156102af57600080fd5b506102c36102be366004612300565b61073a565b60405161029a91906124ce565b3480156102dc57600080fd5b506102e561074d565b60405161029a91906124d9565b3480156102fe57600080fd5b5061031261030d36600461237e565b6107df565b60405161029a919061243a565b34801561032b57600080fd5b5061033f61033a366004612221565b61082e565b005b34801561034d57600080fd5b506103566108cc565b60405161029a9190612c8a565b34801561036f57600080fd5b5061028d6108db565b34801561038457600080fd5b5061033f610393366004612130565b6108f1565b3480156103a457600080fd5b506102c36103b33660046120b1565b61092c565b3480156103c457600080fd5b5061033f6103d3366004612130565b61094a565b3480156103e457600080fd5b5061028d6103f33660046120b1565b610965565b34801561040457600080fd5b5061028d610413366004612221565b610977565b34801561042457600080fd5b506102c36109b8565b34801561043957600080fd5b506102c36109c7565b34801561044e57600080fd5b5061033f61045d366004612233565b6109d0565b34801561046e57600080fd5b506102c361047d366004612338565b610b90565b34801561048e57600080fd5b5061033f61049d3660046122e6565b610bf0565b3480156104ae57600080fd5b506103126104bd36600461237e565b610c4c565b3480156104ce57600080fd5b5061028d610c84565b3480156104e357600080fd5b5061033f6104f23660046122e6565b610cac565b34801561050357600080fd5b5061028d6105123660046120b1565b610d0a565b34801561052357600080fd5b5061033f610d51565b34801561053857600080fd5b5061033f610547366004612233565b610d9f565b34801561055857600080fd5b5061056c6105673660046120b1565b610f5a565b60405161029a919061248a565b34801561058557600080fd5b50610312611057565b34801561059a57600080fd5b5061033f6105a9366004612396565b611066565b3480156105ba57600080fd5b506102e561119a565b3480156105cf57600080fd5b5061033f6105de3660046121ed565b6111a9565b3480156105ef57600080fd5b5061033f61127a565b34801561060457600080fd5b5061033f610613366004612170565b6112cb565b34801561062457600080fd5b506102e561063336600461237e565b61130d565b34801561064457600080fd5b5061035661142f565b34801561065957600080fd5b5061028d61143d565b34801561066e57600080fd5b506102c3611443565b34801561068357600080fd5b5061028d611451565b34801561069857600080fd5b506102c36106a73660046120f8565b611457565b3480156106b857600080fd5b506102c36106c7366004612338565b611485565b3480156106d857600080fd5b5061033f6106e73660046120b1565b6114dc565b3480156106f857600080fd5b5061033f6107073660046120cd565b611553565b61033f61071a366004612396565b6115cb565b34801561072b57600080fd5b50610356611787565b600a5481565b600061074582611790565b90505b919050565b60606001805461075c90612d50565b80601f016020809104026020016040519081016040528092919081815260200182805461078890612d50565b80156107d55780601f106107aa576101008083540402835291602001916107d5565b820191906000526020600020905b8154815290600101906020018083116107b857829003601f168201915b5050505050905090565b60006107ea8261182c565b6108125760405160e560020a62461bcd0281526004016108099061291c565b60405180910390fd5b50600090815260056020526040902054600160a060020a031690565b600061083982610c4c565b905080600160a060020a031683600160a060020a031614156108705760405160e560020a62461bcd02815260040161080990612ac5565b80600160a060020a0316610882611849565b600160a060020a0316148061089e575061089e816106a7611849565b6108bd5760405160e560020a62461bcd02815260040161080990612799565b6108c7838361184d565b505050565b60095462010000900460ff1681565b60006001600e546108ec9190612d0d565b905090565b6109026108fc611849565b826118c8565b6109215760405160e560020a62461bcd02815260040161080990612b90565b6108c7838383611950565b600160a060020a03166000908152600f602052604090205460ff1690565b6108c7838383604051806020016040528060008152506112cb565b60106020526000908152604090205481565b600061098283610f5a565b82815181106109a857600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151905092915050565b600c5462010000900460ff1681565b600c5460ff1681565b6109d8611849565b600160a060020a03166109e9611057565b600160a060020a031614610a125760405160e560020a62461bcd028152600401610809906129d6565b6000815111610a365760405160e560020a62461bcd02815260040161080990612b22565b60005b81518161ffff161015610b8c57600f6000838361ffff1681518110610a7557600080516020612e9b833981519152600052603260045260246000fd5b602090810291909101810151600160a060020a031682528101919091526040016000205460ff1615610b7a576000600f6000848461ffff1681518110610ad257600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a0316600160a060020a0316815260200190815260200160002060006101000a81548160ff021916908315150217905550818161ffff1681518110610b3c57600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a03167f1f756c8b089af6b33ee121fee8badac2553a2fa89c0575ea91ff8792617746c260405160405180910390a25b80610b8481612d92565b915050610a39565b5050565b6000610b9a611849565b600160a060020a0316610bab611057565b600160a060020a031614610bd45760405160e560020a62461bcd028152600401610809906129d6565b8151610be7906007906020850190611fb0565b50600192915050565b610bf8611849565b600160a060020a0316610c09611057565b600160a060020a031614610c325760405160e560020a62461bcd028152600401610809906129d6565b600c80549115156101000261ff0019909216919091179055565b600081815260036020526040812054600160a060020a0316806107455760405160e560020a62461bcd02815260040161080990612853565b6000806001600e54610c969190612d0d565b905080600d54610ca69190612d0d565b91505090565b610cb4611849565b600160a060020a0316610cc5611057565b600160a060020a031614610cee5760405160e560020a62461bcd028152600401610809906129d6565b600c8054911515620100000262ff000019909216919091179055565b6000600160a060020a038216610d355760405160e560020a62461bcd028152600401610809906127f6565b50600160a060020a031660009081526004602052604090205490565b610d59611849565b600160a060020a0316610d6a611057565b600160a060020a031614610d935760405160e560020a62461bcd028152600401610809906129d6565b610d9d6000611a90565b565b610da7611849565b600160a060020a0316610db8611057565b600160a060020a031614610de15760405160e560020a62461bcd028152600401610809906129d6565b6000815111610e055760405160e560020a62461bcd02815260040161080990612b22565b60005b81518161ffff161015610b8c57600f6000838361ffff1681518110610e4457600080516020612e9b833981519152600052603260045260246000fd5b602090810291909101810151600160a060020a031682528101919091526040016000205460ff16610f48576001600f6000848461ffff1681518110610ea057600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a0316600160a060020a0316815260200190815260200160002060006101000a81548160ff021916908315150217905550818161ffff1681518110610f0a57600080516020612e9b833981519152600052603260045260246000fd5b6020026020010151600160a060020a03167fa850ae9193f515cbae8d35e8925bd2be26627fc91bce650b8652ed254e9cab0360405160405180910390a25b80610f5281612d92565b915050610e08565b60606000610f6783610d0a565b905060008167ffffffffffffffff811115610f9957600080516020612e9b833981519152600052604160045260246000fd5b604051908082528060200260200182016040528015610fc2578160200160208202803683370190505b509050600060015b610fd26108db565b811161104d5785600160a060020a0316610feb82610c4c565b600160a060020a0316141561103b578083838151811061102257600080516020612e9b833981519152600052603260045260246000fd5b60209081029190910101528161103781612db4565b9250505b8061104581612db4565b915050610fca565b5090949350505050565b600054600160a060020a031690565b61106e611849565b600160a060020a031661107f611057565b600160a060020a0316146110a85760405160e560020a62461bcd028152600401610809906129d6565b600e5460006110b56108db565b336000908152601060205260409020546009549192509060ff620100009091048116906110e490861683612cc2565b11156111055760405160e560020a62461bcd0281526004016108099061264b565b600d5461111560ff861684612cc2565b11156111365760405160e560020a62461bcd02815260040161080990612bed565b60005b8460ff168160ff16101561117f576111513385611aed565b8361115b81612db4565b945050818061116990612db4565b925050808061117790612dcf565b915050611139565b50600e92909255503360009081526010602052604090205550565b60606002805461075c90612d50565b6111b1611849565b600160a060020a031682600160a060020a031614156111e55760405160e560020a62461bcd02815260040161080990612705565b80600660006111f2611849565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611236611849565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161126e91906124ce565b60405180910390a35050565b611282611849565b600160a060020a0316611293611057565b600160a060020a0316146112bc5760405160e560020a62461bcd028152600401610809906129d6565b600c805460ff19166001179055565b6112dc6112d6611849565b836118c8565b6112fb5760405160e560020a62461bcd02815260040161080990612b90565b61130784848484611b07565b50505050565b60606113188261182c565b6113375760405160e560020a62461bcd02815260040161080990612a68565b600c5460ff166113d3576008805461134e90612d50565b80601f016020809104026020016040519081016040528092919081815260200182805461137a90612d50565b80156113c75780601f1061139c576101008083540402835291602001916113c7565b820191906000526020600020905b8154815290600101906020018083116113aa57829003601f168201915b50505050509050610748565b60006113dd611b3d565b905060008151116113fd5760405180602001604052806000815250611428565b8061140784611b4c565b6040516020016114189291906123e3565b6040516020818303038152906040525b9392505050565b600954610100900460ff1681565b600d5481565b600c54610100900460ff1681565b600b5481565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600061148f611849565b600160a060020a03166114a0611057565b600160a060020a0316146114c95760405160e560020a62461bcd028152600401610809906129d6565b8151610be7906008906020850190611fb0565b6114e4611849565b600160a060020a03166114f5611057565b600160a060020a03161461151e5760405160e560020a62461bcd028152600401610809906129d6565b600160a060020a0381166115475760405160e560020a62461bcd028152600401610809906125b7565b61155081611a90565b50565b61155b611849565b600160a060020a031661156c611057565b600160a060020a0316146115955760405160e560020a62461bcd028152600401610809906129d6565b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156108c7573d6000803e3d6000fd5b600c5462010000900460ff166115f65760405160e560020a62461bcd02815260040161080990612c4a565b3332146116185760405160e560020a62461bcd02815260040161080990612523565b600e546000611628600183612d0d565b33600090815260106020526040902054600954600b54600c54939450919260ff91821692916101009091041661169d57336000908152600f602052604090205460ff1661168a5760405160e560020a62461bcd028152600401610809906128e5565b5050600954600a5461010090910460ff16905b346116ab8260ff8916612cee565b146116cb5760405160e560020a62461bcd02815260040161080990612b59565b600d546116db60ff881686612cc2565b11156116fc5760405160e560020a62461bcd028152600401610809906124ec565b60095460ff9081169061171190881685612cc2565b11156117325760405160e560020a62461bcd02815260040161080990612979565b60005b8660ff168160ff16101561176a5761174d3387611aed565b60019586019593909301928061176281612dcf565b915050611735565b5050336000908152601060205260409020919091555050600e5550565b60095460ff1681565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061181d57507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610745575061074582611cc8565b600090815260036020526040902054600160a060020a0316151590565b3390565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038416908117909155819061188f82610c4c565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118d38261182c565b6118f25760405160e560020a62461bcd0281526004016108099061273c565b60006118fd83610c4c565b905080600160a060020a031684600160a060020a03161480611938575083600160a060020a031661192d846107df565b600160a060020a0316145b8061194857506119488185611457565b949350505050565b82600160a060020a031661196382610c4c565b600160a060020a03161461198c5760405160e560020a62461bcd02815260040161080990612a0b565b600160a060020a0382166119b55760405160e560020a62461bcd028152600401610809906126a8565b6119c0838383611d0f565b6119cb60008261184d565b600160a060020a03831660009081526004602052604081208054600192906119f4908490612d0d565b9091555050600160a060020a0382166000908152600460205260408120805460019290611a22908490612cc2565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b8c828260405180602001604052806000815250611d1a565b611b12848484611950565b611b1e84848484611d50565b6113075760405160e560020a62461bcd0281526004016108099061255a565b60606007805461075c90612d50565b606081611b8d575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610748565b8160005b8115611bb75780611ba181612db4565b9150611bb09050600a83612cda565b9150611b91565b60008167ffffffffffffffff811115611be757600080516020612e9b833981519152600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c11576020820181803683370190505b5090505b841561194857611c26600183612d0d565b9150611c33600a86612def565b611c3e906030612cc2565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110611c8757600080516020612e9b833981519152600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611cc1600a86612cda565b9450611c15565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6108c78383836108c7565b611d248383611eb8565b611d316000848484611d50565b6108c75760405160e560020a62461bcd0281526004016108099061255a565b6000611d6484600160a060020a0316611faa565b15611ead5783600160a060020a031663150b7a02611d80611849565b8786866040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401611dbe949392919061244e565b602060405180830381600087803b158015611dd857600080fd5b505af1925050508015611e08575060408051601f3d908101601f19168201909252611e059181019061231c565b60015b611e65573d808015611e36576040519150601f19603f3d011682016040523d82523d6000602084013e611e3b565b606091505b508051611e5d5760405160e560020a62461bcd0281526004016108099061255a565b805181602001fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a0200000000000000000000000000000000000000000000000000000000149050611948565b506001949350505050565b600160a060020a038216611ee15760405160e560020a62461bcd028152600401610809906128b0565b611eea8161182c565b15611f0a5760405160e560020a62461bcd02815260040161080990612614565b611f1660008383611d0f565b600160a060020a0382166000908152600460205260408120805460019290611f3f908490612cc2565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b828054611fbc90612d50565b90600052602060002090601f016020900481019282611fde5760008555612024565b82601f10611ff757805160ff1916838001178555612024565b82800160010185558215612024579182015b82811115612024578251825591602001919060010190612009565b50612030929150612034565b5090565b5b808211156120305760008155600101612035565b600067ffffffffffffffff83111561206357612063612e3d565b612076601f8401601f1916602001612c98565b905082815283838301111561208a57600080fd5b828260208301376000602084830101529392505050565b8035801515811461074857600080fd5b6000602082840312156120c2578081fd5b813561142881612e5a565b600080604083850312156120df578081fd5b82356120ea81612e5a565b946020939093013593505050565b6000806040838503121561210a578182fd5b823561211581612e5a565b9150602083013561212581612e5a565b809150509250929050565b600080600060608486031215612144578081fd5b833561214f81612e5a565b9250602084013561215f81612e5a565b929592945050506040919091013590565b60008060008060808587031215612185578081fd5b843561219081612e5a565b935060208501356121a081612e5a565b925060408501359150606085013567ffffffffffffffff8111156121c2578182fd5b8501601f810187136121d2578182fd5b6121e187823560208401612049565b91505092959194509250565b600080604083850312156121ff578182fd5b823561220a81612e5a565b9150612218602084016120a1565b90509250929050565b600080604083850312156120df578182fd5b60006020808385031215612245578182fd5b823567ffffffffffffffff8082111561225c578384fd5b818501915085601f83011261226f578384fd5b81358181111561228157612281612e3d565b8381029150612291848301612c98565b8181528481019084860184860187018a10156122ab578788fd5b8795505b838610156122d957803594506122c485612e5a565b848352600195909501949186019186016122af565b5098975050505050505050565b6000602082840312156122f7578081fd5b611428826120a1565b600060208284031215612311578081fd5b813561142881612e6f565b60006020828403121561232d578081fd5b815161142881612e6f565b600060208284031215612349578081fd5b813567ffffffffffffffff81111561235f578182fd5b8201601f8101841361236f578182fd5b61194884823560208401612049565b60006020828403121561238f578081fd5b5035919050565b6000602082840312156123a7578081fd5b813560ff81168114611428578182fd5b600081518084526123cf816020860160208601612d24565b601f01601f19169290920160200192915050565b600083516123f5818460208801612d24565b835190830190612409818360208801612d24565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600160a060020a0391909116815260200190565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261248060808301846123b7565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156124c2578351835292840192918401916001016124a6565b50909695505050505050565b901515815260200190565b60006020825261142860208301846123b7565b60208082526017908201527f6d696e743a206d6178537570706c792072656163686564000000000000000000604082015260600190565b60208082526007908201527f6e6f20626f747300000000000000000000000000000000000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252603f908201527f637265617465476976656177617973546f6b656e733a206c696d697420746f6b60408201527f656e7320666f722067697665617761792077616c6c6574207265616368656400606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526017908201527f596f7520617265206e6f742077686974656c6973746564000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f6d696e743a206c696d697420746f6b656e7320666f7220746869732077616c6c60408201527f6574207265616368656400000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f416464726573736573206e6f742070726f766964656400000000000000000000604082015260600190565b60208082526013908201527f696e76616c696420636f696e20616d6f756e7400000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526031908201527f637265617465476976656177617973546f6b656e733a20546f74616c20746f6b60408201527f656e73206c696d69742072656163686564000000000000000000000000000000606082015260800190565b60208082526017908201527f4d696e74696e67206973206e6f74206f70656e20796574000000000000000000604082015260600190565b90815260200190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715612cba57612cba612e3d565b604052919050565b60008219821115612cd557612cd5612e03565b500190565b600082612ce957612ce9612e20565b500490565b6000816000190483118215151615612d0857612d08612e03565b500290565b600082821015612d1f57612d1f612e03565b500390565b60005b83811015612d3f578181015183820152602001612d27565b838111156113075750506000910152565b600281046001821680612d6457607f821691505b60208210811415612d8c57600080516020612e9b833981519152600052602260045260246000fd5b50919050565b600061ffff80831681811415612daa57612daa612e03565b6001019392505050565b6000600019821415612dc857612dc8612e03565b5060010190565b600060ff821660ff811415612de657612de6612e03565b60010192915050565b600082612dfe57612dfe612e20565b500690565b600080516020612e9b833981519152600052601160045260246000fd5b600080516020612e9b833981519152600052601260045260246000fd5b600080516020612e9b833981519152600052604160045260246000fd5b600160a060020a038116811461155057600080fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff198116811461155057600080fdfe4e487b7100000000000000000000000000000000000000000000000000000000a2646970667358221220b2489a5dc73738018786f227309d8ce2318cd45070af59aa6c5b8f5b55998ccc64736f6c63430008000033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000001c11309b66be0193d9eebb55bd2917e3f649cf5f00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000001343796265722057617272696f72732041726d790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034357410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f6170692e637962657277617272696f727361726d792e636f6d2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b68747470733a2f2f6170692e637962657277617272696f727361726d792e636f6d2f6d657461646174612f706c616365686f6c6465722e6a736f6e0000000000

-----Decoded View---------------
Arg [0] : superOwner (address): 0x1c11309B66bE0193d9eebB55BD2917E3f649CF5F
Arg [1] : name (string): Cyber Warriors Army
Arg [2] : symbol (string): CWA
Arg [3] : initMaxSupply (uint256): 8000
Arg [4] : baseTokenURI (string): https://api.cyberwarriorsarmy.com/metadata/
Arg [5] : notRevealedURI (string): https://api.cyberwarriorsarmy.com/metadata/placeholder.json

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000001c11309b66be0193d9eebb55bd2917e3f649cf5f
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000001f40
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [7] : 43796265722057617272696f72732041726d7900000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 4357410000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [11] : 68747470733a2f2f6170692e637962657277617272696f727361726d792e636f
Arg [12] : 6d2f6d657461646174612f000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000003b
Arg [14] : 68747470733a2f2f6170692e637962657277617272696f727361726d792e636f
Arg [15] : 6d2f6d657461646174612f706c616365686f6c6465722e6a736f6e0000000000


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.