ETH Price: $3,906.90 (+1.04%)

Token

Colorful Ape Club (CAC)
 

Overview

Max Total Supply

3,000 CAC

Holders

1,017

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CAC
0x00d86afeee11c7a71b6eccf1c19189fa650f2e10
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:
ColorfulApeClub

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : ColorfulApeClub.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import './ERC721EnumerableLite.sol';
import './Signed.sol';
import "./Strings.sol";

contract ColorfulApeClub is ERC721EnumerableLite, Signed {
  using Strings for uint;

  uint public maxTokenMint = 5;
  uint public maxTokenSupply = 1000; 
  uint public mintPrice = 0.05 ether;

  bool public isMainsaleActive = false;
  bool public isPresaleActive = false;
  string private _tokenURI_Prefix = '';

  address public devWallet = 0x3463de769F20EF015F3DedD6DCabDc8521e8B076;
  address public communityWallet = 0xf50F19De005d6f64D64DCD76Fc28540F15C19e25;
  address public adminWallet = 0x8a2Cea182C174Bd242b3c02cf550c4d412c026fD;

  mapping (address => bool) public whitelist;

  constructor()
    Delegated()
    ERC721B("Colorful Ape Club", "CAC", 0){
  }

  fallback() external payable {}

  receive() external payable {}

  function tokenURI(uint tokenId) external view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
    return string(abi.encodePacked(_tokenURI_Prefix, tokenId.toString() ));
  }

  function mintMainsale( uint quantity ) external payable {
    require( isMainsaleActive, "sale not active" );
    require( quantity <= maxTokenMint, "max mint is 10" );
    require( msg.value >= mintPrice * quantity, "underpaid" );

    uint supply = totalSupply();
    require( supply + quantity <= maxTokenSupply, "supply capped" );

    for(uint i; i < quantity; ++i){
      _mint( msg.sender, supply++ );
    }
  }

  function mintPresale( uint quantity ) external payable {
    require( isPresaleActive, "sale not active" );
    require(whitelist[msg.sender] == true, "invalid address");
    require( quantity <= maxTokenMint, "max mint of 5" );
    require( msg.value >= mintPrice * quantity, "underpaid" );

    uint supply = totalSupply();
    require( supply + quantity <= maxTokenSupply, "supply capped" );

    for(uint i; i < quantity; ++i){
      _mint( msg.sender, supply++ );
    }
  }


  function setMainsaleStatus(bool isMainsaleActive_ ) external onlyDelegates{
    require( isMainsaleActive != isMainsaleActive_ , "invalid value" );
    isMainsaleActive = isMainsaleActive_;
  }

  function setPresaleStatus(bool isPresaleActive_ ) external onlyDelegates{
    require( isPresaleActive != isPresaleActive_ , "invalid value" );
    isPresaleActive = isPresaleActive_;
  }


  function setBaseURI( string calldata baseURI ) external onlyDelegates {
    _tokenURI_Prefix = baseURI;
  }

  function setValues(uint _maxTokenMint, uint _maxTokenSupply, uint _price ) external onlyDelegates {
    require( maxTokenMint != _maxTokenMint || maxTokenSupply != _maxTokenSupply || mintPrice != _price, "Values are not valid" );
    require(_maxTokenSupply >= totalSupply(), "supply must be larger than previous supply" );

    maxTokenMint = _maxTokenMint;
    maxTokenSupply = _maxTokenSupply;
    mintPrice = _price;
  }

  function finalize() external onlyOwner {
    selfdestruct(payable(owner()));
  }

  function withdrawFailsafe() external onlyOwner {
      (bool status,) = devWallet.call{value: address(this).balance}("");
      require(status, "failed withdraw");
  }

  function withdrawBalance() external onlyOwner {
      require(address(this).balance > 0, "no eth in the contract");

      uint256 ethBalanceContract = address(this).balance;

      (bool withdraw1,) = devWallet.call{value: ethBalanceContract * 10 / 100}("");
      (bool withdraw2,) = communityWallet.call{value: ethBalanceContract * 25 / 100}("");
      (bool withdraw3,) = adminWallet.call{value: ethBalanceContract * 65 / 100}("");

      require(withdraw1 && withdraw2 && withdraw3, "Failed withdraw");
  }

  function withdrawFirst() external onlyOwner {
      require(address(this).balance > 10 ether, "Not enough ether to withdraw");

      (bool firstWithdraw,) = devWallet.call{value: 10 ether}("");

      require(firstWithdraw, "Failed withdrawing inital");
  }

  function addAddresses(address[] memory addressArray) public onlyOwner {
      for(uint256 i=0; i<addressArray.length;i++) {
        whitelist[addressArray[i]] = true;
      }
  }

  function isWhitelisted(address passedInAddress) public view returns(bool) {
      return whitelist[passedInAddress];
  }

  function _beforeTokenTransfer(address from, address to, uint tokenId) internal override {
    if( from != address(0) )
      --_balances[from];

    if( to != address(0) )
      ++_balances[to];
  }

  function _mint(address to, uint tokenId) internal override {
    _beforeTokenTransfer( address(0), to, tokenId );

    _owners.push(to);
    emit Transfer(address(0), to, tokenId);
  }
}

File 2 of 17 : 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 3 of 17 : Signed.sol
// SPDX-License-Identifier: BSD-3

pragma solidity ^0.8.0;

import './Delegated.sol';
import "./Strings.sol";
import "./ECDSA.sol";

contract Signed is Delegated{
  using Strings for uint256;
  using ECDSA for bytes32;

  string private _secret;
  address private _signer;

  function setSecret( string calldata secret ) external onlyOwner{
    _secret = secret;
  }

  function setSigner( address signer ) external onlyOwner{
    _signer = signer;
  }


  function createHash( string memory data ) internal view returns ( bytes32 ){
    return keccak256( abi.encodePacked( address(this), msg.sender, data, _secret ) );
  }

  function getSigner( bytes32 hash, bytes memory signature ) internal pure returns( address ){
    return hash.toEthSignedMessageHash().recover( signature );
  }

  function isAuthorizedSigner( address extracted ) internal view virtual returns( bool ){
    return extracted == _signer;
  }

  function verifySignature( string memory data, bytes calldata signature ) internal view {
    address extracted = getSigner( createHash( data ), signature );
    require( isAuthorizedSigner( extracted ), "Signature verification failed" );
  }


}

File 4 of 17 : ERC721EnumerableLite.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* gas optimization *
* credit squeebo_nft *
************************/

import "./ERC721B.sol";
import "./IERC721Batch.sol";
import "./IERC721Enumerable.sol";

abstract contract ERC721EnumerableLite is ERC721B, IERC721Batch, IERC721Enumerable {
    mapping(address => uint) internal _balances;

    function isOwnerOf( address account, uint[] calldata tokenIds ) external view virtual override returns( bool ){
        for(uint i; i < tokenIds.length; ++i ){
            if( _owners[ tokenIds[i] ] != account )
                return false;
        }

        return true;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) {
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }

    function tokenByIndex(uint index) external view virtual override returns (uint) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    function totalSupply() public view virtual override( ERC721B, IERC721Enumerable ) returns (uint) {
        return _owners.length - (_offset + _burned);
    }

    function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{
        for(uint i; i < tokenIds.length; ++i ){
            safeTransferFrom( from, to, tokenIds[i], data );
        }
    }

    function walletOfOwner( address account ) external view virtual override returns( uint[] memory ){
        uint quantity = balanceOf( account );
        uint[] memory wallet = new uint[]( quantity );
        for( uint i; i < quantity; ++i ){
            wallet[i] = tokenOfOwnerByIndex( account, i );
        }
        return wallet;
    }
}

File 5 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 17 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* gas optimization *
* credit squeebo_nft *
************************/

import "./Ownable.sol";

contract Delegated is Ownable{
  mapping(address => bool) internal _delegates;

  constructor(){
    _delegates[owner()] = true;
  }

  modifier onlyDelegates {
    require(_delegates[msg.sender], "Invalid delegate" );
    _;
  }

  //onlyOwner
  function isDelegate( address addr ) external view onlyOwner returns ( bool ){
    return _delegates[addr];
  }

  function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{
    _delegates[addr] = isDelegate_;
  }

  function transferOwnership(address newOwner) public virtual override onlyOwner {
    _delegates[newOwner] = true;
    super.transferOwnership( newOwner );
  }
}

File 7 of 17 : 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 8 of 17 : IERC721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

interface IERC721Batch {
  function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool );
  function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external;
  function walletOfOwner( address account ) external view returns( uint[] memory );
}

File 9 of 17 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* gas optimization *
* credit squeebo_nft *
************************/

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./ERC165.sol";

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    string private _name;
    string private _symbol;

    uint internal _burned;
    uint internal _offset;
    address[] internal _owners;

    mapping(uint => address) internal _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_, uint offset) {
        _name = name_;
        _symbol = symbol_;
        _offset = offset;
        for(uint i; i < _offset; ++i ){
            _owners.push(address(0));
        }
    }

    //public
    function balanceOf(address owner) public view virtual override returns (uint) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < _owners.length; ++i ){
          if( owner == _owners[i] )
            ++count;
        }
        return count;
    }

    function name() external view virtual override returns (string memory) {
        return _name;
    }

    function ownerOf(uint tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

    function symbol() external view virtual override returns (string memory) {
        return _symbol;
    }

    function totalSupply() public view virtual returns (uint) {
        return _owners.length - (_offset + _burned);
    }


    function approve(address to, uint tokenId) external virtual override {
        address owner = ERC721B.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    function getApproved(uint tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");
        return _tokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function setApprovalForAll(address operator, bool approved) external virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId
    ) external virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }


    //internal
    function _approve(address to, uint tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721B.ownerOf(tokenId), to, tokenId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {}

    function _burn(uint tokenId) internal virtual {
        address owner = ERC721B.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

    function _checkOnERC721Received(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    function _exists(uint tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721B.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    function _mint(address to, uint tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

    function _next() internal view virtual returns( uint ){
        return _owners.length;
    }

    function _safeMint(address to, uint tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    function _safeMint(
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _safeTransfer(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    function _transfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {
        require(ERC721B.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }
}

File 10 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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 11 of 17 : 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : 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 15 of 17 : 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 16 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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);
    }
}

File 17 of 17 : 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address[]","name":"addressArray","type":"address[]"}],"name":"addAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalize","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":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMainsaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"passedInAddress","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintMainsale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isMainsaleActive_","type":"bool"}],"name":"setMainsaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPresaleActive_","type":"bool"}],"name":"setPresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"secret","type":"string"}],"name":"setSecret","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokenMint","type":"uint256"},{"internalType":"uint256","name":"_maxTokenSupply","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFailsafe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFirst","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6005600c556103e8600d5566b1a2bc2ec50000600e55600f805461ffff1916905560a06040819052600060808190526200003c9160109162000246565b50601180546001600160a01b0319908116733463de769f20ef015f3dedd6dcabdc8521e8b0761790915560128054821673f50f19de005d6f64d64dcd76fc28540f15c19e2517905560138054909116738a2cea182c174bd242b3c02cf550c4d412c026fd179055348015620000b057600080fd5b50604080518082018252601181527021b7b637b9333ab61020b8329021b63ab160791b60208083019182528351808501909452600384526243414360e81b908401528151919291600091620001089183919062000246565b5081516200011e90600190602085019062000246565b50600381905560005b6003548110156200018557600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191690556200017d8162000329565b905062000127565b50505050620001a36200019d620001e160201b60201c565b620001e5565b600160096000620001b362000237565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905562000351565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b031690565b8280546200025490620002ec565b90600052602060002090601f016020900481019282620002785760008555620002c3565b82601f106200029357805160ff1916838001178555620002c3565b82800160010185558215620002c3579182015b82811115620002c3578251825591602001919060010190620002a6565b50620002d1929150620002d5565b5090565b5b80821115620002d15760008155600101620002d6565b6002810460018216806200030157607f821691505b602082108114156200032357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200034a57634e487b7160e01b81526011600452602481fd5b5060010190565b61311380620003616000396000f3fe60806040526004361061028c5760003560e01c806355f804b31161015a5780638ea5220f116100c1578063c75748391161007a578063c75748391461074d578063c87b56dd14610762578063e985e9c514610782578063f2fde38b146107a2578063f759867a146107c2578063ff655320146107d557610293565b80638ea5220f146106a357806395d89b41146106b85780639b19251a146106cd578063a22cb465146106ed578063b534a5c41461070d578063b88d4fde1461072d57610293565b806370a082311161011357806370a0823114610604578063715018a6146106245780637ed6c926146106395780637f75c315146106595780638895283f1461066e5780638da5cb5b1461068e57610293565b806355f804b3146105655780635fd8c7101461058557806360d938dc1461059a5780636352211e146105af5780636817c76c146105cf5780636c19e783146105e457610293565b806336b19cd7116101fe5780634a994eef116101b75780634a994eef146104c65780634bb278f3146104e65780634d44660c146104fb5780634f6ccce71461051b57806350f7c2041461053b578063535d7c551461055057610293565b806336b19cd71461041c5780633af03e8a146104315780633af32abf146104465780633f79c5c71461046657806342842e0e14610479578063438b63001461049957610293565b8063111be31611610250578063111be3161461035a57806318160ddd1461037a57806321f4697d1461039c57806323b872dd146103bc5780632f745c59146103dc5780633628731c146103fc57610293565b806301ffc9a71461029557806306fdde03146102cb57806307779627146102ed578063081812fc1461030d578063095ea7b31461033a57610293565b3661029357005b005b3480156102a157600080fd5b506102b56102b03660046125a3565b6107ea565b6040516102c291906127e4565b60405180910390f35b3480156102d757600080fd5b506102e0610817565b6040516102c291906127ef565b3480156102f957600080fd5b506102b561030836600461226b565b6108a9565b34801561031957600080fd5b5061032d61032836600461261b565b610912565b6040516102c2919061274f565b34801561034657600080fd5b506102936103553660046124b2565b610955565b34801561036657600080fd5b50610293610375366004612633565b6109ed565b34801561038657600080fd5b5061038f610a8d565b6040516102c29190612f37565b3480156103a857600080fd5b506102936103b7366004612589565b610ab1565b3480156103c857600080fd5b506102936103d7366004612345565b610b1c565b3480156103e857600080fd5b5061038f6103f73660046124b2565b610b54565b34801561040857600080fd5b506102936104173660046124db565b610bf0565b34801561042857600080fd5b5061032d610ca9565b34801561043d57600080fd5b50610293610cb8565b34801561045257600080fd5b506102b561046136600461226b565b610d7b565b61029361047436600461261b565b610d99565b34801561048557600080fd5b50610293610494366004612345565b610e72565b3480156104a557600080fd5b506104b96104b436600461226b565b610e8d565b6040516102c291906127a0565b3480156104d257600080fd5b506102936104e1366004612489565b610f49565b3480156104f257600080fd5b50610293610fb3565b34801561050757600080fd5b506102b5610516366004612438565b611005565b34801561052757600080fd5b5061038f61053636600461261b565b6110a3565b34801561054757600080fd5b5061038f6110cf565b34801561055c57600080fd5b5061038f6110d5565b34801561057157600080fd5b506102936105803660046125db565b6110db565b34801561059157600080fd5b50610293611116565b3480156105a657600080fd5b506102b5611316565b3480156105bb57600080fd5b5061032d6105ca36600461261b565b611324565b3480156105db57600080fd5b5061038f61137c565b3480156105f057600080fd5b506102936105ff36600461226b565b611382565b34801561061057600080fd5b5061038f61061f36600461226b565b6113e3565b34801561063057600080fd5b5061029361147c565b34801561064557600080fd5b506102936106543660046125db565b6114c7565b34801561066557600080fd5b506102b5611512565b34801561067a57600080fd5b50610293610689366004612589565b61151b565b34801561069a57600080fd5b5061032d611593565b3480156106af57600080fd5b5061032d6115a2565b3480156106c457600080fd5b506102e06115b1565b3480156106d957600080fd5b506102b56106e836600461226b565b6115c0565b3480156106f957600080fd5b50610293610708366004612489565b6115d5565b34801561071957600080fd5b506102936107283660046122b7565b6116a3565b34801561073957600080fd5b50610293610748366004612380565b61172f565b34801561075957600080fd5b5061032d611768565b34801561076e57600080fd5b506102e061077d36600461261b565b611777565b34801561078e57600080fd5b506102b561079d366004612285565b6117d0565b3480156107ae57600080fd5b506102936107bd36600461226b565b6117fe565b6102936107d036600461261b565b611869565b3480156107e157600080fd5b50610293611974565b60006001600160e01b0319821663780e9d6360e01b148061080f575061080f82611a63565b90505b919050565b6060600080546108269061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546108529061301b565b801561089f5780601f106108745761010080835404028352916020019161089f565b820191906000526020600020905b81548152906001019060200180831161088257829003601f168201915b5050505050905090565b60006108b3611aa3565b6001600160a01b03166108c4611593565b6001600160a01b0316146108f35760405162461bcd60e51b81526004016108ea90612cd9565b60405180910390fd5b506001600160a01b031660009081526009602052604090205460ff1690565b600061091d82611aa7565b6109395760405162461bcd60e51b81526004016108ea90612c8d565b506000908152600560205260409020546001600160a01b031690565b600061096082611324565b9050806001600160a01b0316836001600160a01b031614156109945760405162461bcd60e51b81526004016108ea90612e59565b806001600160a01b03166109a6611aa3565b6001600160a01b031614806109c257506109c28161079d611aa3565b6109de5760405162461bcd60e51b81526004016108ea90612acc565b6109e88383611aff565b505050565b3360009081526009602052604090205460ff16610a1c5760405162461bcd60e51b81526004016108ea9061282a565b82600c54141580610a2f575081600d5414155b80610a3c575080600e5414155b610a585760405162461bcd60e51b81526004016108ea90612937565b610a60610a8d565b821015610a7f5760405162461bcd60e51b81526004016108ea90612c1c565b600c92909255600d55600e55565b6000600254600354610a9f9190612f76565b600454610aac9190612fc1565b905090565b3360009081526009602052604090205460ff16610ae05760405162461bcd60e51b81526004016108ea9061282a565b600f5460ff1615158115151415610b095760405162461bcd60e51b81526004016108ea90612965565b600f805460ff1916911515919091179055565b610b2d610b27611aa3565b82611b6d565b610b495760405162461bcd60e51b81526004016108ea90612e9a565b6109e8838383611bf2565b60008060005b600454811015610bd15760048181548110610b8557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610bc15783821415610bb5579150610bea9050565b610bbe82613056565b91505b610bca81613056565b9050610b5a565b5060405162461bcd60e51b81526004016108ea90612854565b92915050565b610bf8611aa3565b6001600160a01b0316610c09611593565b6001600160a01b031614610c2f5760405162461bcd60e51b81526004016108ea90612cd9565b60005b8151811015610ca557600160146000848481518110610c6157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610c9d81613056565b915050610c32565b5050565b6013546001600160a01b031681565b610cc0611aa3565b6001600160a01b0316610cd1611593565b6001600160a01b031614610cf75760405162461bcd60e51b81526004016108ea90612cd9565b6011546040516000916001600160a01b0316904790610d159061274c565b60006040518083038185875af1925050503d8060008114610d52576040519150601f19603f3d011682016040523d82523d6000602084013e610d57565b606091505b5050905080610d785760405162461bcd60e51b81526004016108ea9061298c565b50565b6001600160a01b031660009081526014602052604090205460ff1690565b600f5460ff16610dbb5760405162461bcd60e51b81526004016108ea906129b5565b600c54811115610ddd5760405162461bcd60e51b81526004016108ea90612802565b80600e54610deb9190612fa2565b341015610e0a5760405162461bcd60e51b81526004016108ea90612dd6565b6000610e14610a8d565b600d54909150610e248383612f76565b1115610e425760405162461bcd60e51b81526004016108ea90612c66565b60005b828110156109e857610e623383610e5b81613056565b9450611ce3565b610e6b81613056565b9050610e45565b6109e88383836040518060200160405280600081525061172f565b60606000610e9a836113e3565b905060008167ffffffffffffffff811115610ec557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610eee578160200160208202803683370190505b50905060005b82811015610f4157610f068582610b54565b828281518110610f2657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610f3a81613056565b9050610ef4565b509392505050565b610f51611aa3565b6001600160a01b0316610f62611593565b6001600160a01b031614610f885760405162461bcd60e51b81526004016108ea90612cd9565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b610fbb611aa3565b6001600160a01b0316610fcc611593565b6001600160a01b031614610ff25760405162461bcd60e51b81526004016108ea90612cd9565b610ffa611593565b6001600160a01b0316ff5b6000805b8281101561109657846001600160a01b0316600485858481811061103d57634e487b7160e01b600052603260045260246000fd5b905060200201358154811061106257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161461108657600091505061109c565b61108f81613056565b9050611009565b50600190505b9392505050565b60006110ad610a8d565b82106110cb5760405162461bcd60e51b81526004016108ea90612eeb565b5090565b600d5481565b600c5481565b3360009081526009602052604090205460ff1661110a5760405162461bcd60e51b81526004016108ea9061282a565b6109e86010838361212b565b61111e611aa3565b6001600160a01b031661112f611593565b6001600160a01b0316146111555760405162461bcd60e51b81526004016108ea90612cd9565b600047116111755760405162461bcd60e51b81526004016108ea90612da6565b60115447906000906001600160a01b0316606461119384600a612fa2565b61119d9190612f8e565b6040516111a99061274c565b60006040518083038185875af1925050503d80600081146111e6576040519150601f19603f3d011682016040523d82523d6000602084013e6111eb565b606091505b50506012549091506000906001600160a01b0316606461120c856019612fa2565b6112169190612f8e565b6040516112229061274c565b60006040518083038185875af1925050503d806000811461125f576040519150601f19603f3d011682016040523d82523d6000602084013e611264565b606091505b50506013549091506000906001600160a01b03166064611285866041612fa2565b61128f9190612f8e565b60405161129b9061274c565b60006040518083038185875af1925050503d80600081146112d8576040519150601f19603f3d011682016040523d82523d6000602084013e6112dd565b606091505b505090508280156112eb5750815b80156112f45750805b6113105760405162461bcd60e51b81526004016108ea90612df9565b50505050565b600f54610100900460ff1681565b6000806004838154811061134857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031690508061080f5760405162461bcd60e51b81526004016108ea90612b73565b600e5481565b61138a611aa3565b6001600160a01b031661139b611593565b6001600160a01b0316146113c15760405162461bcd60e51b81526004016108ea90612cd9565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661140b5760405162461bcd60e51b81526004016108ea90612b29565b6000805b600454811015611475576004818154811061143a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03858116911614156114655761146282613056565b91505b61146e81613056565b905061140f565b5092915050565b611484611aa3565b6001600160a01b0316611495611593565b6001600160a01b0316146114bb5760405162461bcd60e51b81526004016108ea90612cd9565b6114c56000611d6b565b565b6114cf611aa3565b6001600160a01b03166114e0611593565b6001600160a01b0316146115065760405162461bcd60e51b81526004016108ea90612cd9565b6109e8600a838361212b565b600f5460ff1681565b3360009081526009602052604090205460ff1661154a5760405162461bcd60e51b81526004016108ea9061282a565b600f5460ff61010090910416151581151514156115795760405162461bcd60e51b81526004016108ea90612965565b600f80549115156101000261ff0019909216919091179055565b6008546001600160a01b031690565b6011546001600160a01b031681565b6060600180546108269061301b565b60146020526000908152604090205460ff1681565b6115dd611aa3565b6001600160a01b0316826001600160a01b0316141561160e5760405162461bcd60e51b81526004016108ea90612a22565b806006600061161b611aa3565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561165f611aa3565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161169791906127e4565b60405180910390a35050565b60005b838110156117265761171687878787858181106116d357634e487b7160e01b600052603260045260246000fd5b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061172f92505050565b61171f81613056565b90506116a6565b50505050505050565b61174061173a611aa3565b83611b6d565b61175c5760405162461bcd60e51b81526004016108ea90612e9a565b61131084848484611dbd565b6012546001600160a01b031681565b606061178282611aa7565b61179e5760405162461bcd60e51b81526004016108ea90612d57565b60106117a983611df0565b6040516020016117ba9291906126a6565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b611806611aa3565b6001600160a01b0316611817611593565b6001600160a01b03161461183d5760405162461bcd60e51b81526004016108ea90612cd9565b6001600160a01b0381166000908152600960205260409020805460ff19166001179055610d7881611f0b565b600f54610100900460ff166118905760405162461bcd60e51b81526004016108ea906129b5565b3360009081526014602052604090205460ff1615156001146118c45760405162461bcd60e51b81526004016108ea90612bbc565b600c548111156118e65760405162461bcd60e51b81526004016108ea90612aa5565b80600e546118f49190612fa2565b3410156119135760405162461bcd60e51b81526004016108ea90612dd6565b600061191d610a8d565b600d5490915061192d8383612f76565b111561194b5760405162461bcd60e51b81526004016108ea90612c66565b60005b828110156109e8576119643383610e5b81613056565b61196d81613056565b905061194e565b61197c611aa3565b6001600160a01b031661198d611593565b6001600160a01b0316146119b35760405162461bcd60e51b81526004016108ea90612cd9565b678ac7230489e8000047116119da5760405162461bcd60e51b81526004016108ea90612e22565b6011546040516000916001600160a01b031690678ac7230489e8000090611a009061274c565b60006040518083038185875af1925050503d8060008114611a3d576040519150601f19603f3d011682016040523d82523d6000602084013e611a42565b606091505b5050905080610d785760405162461bcd60e51b81526004016108ea90612be5565b60006001600160e01b031982166380ac58cd60e01b1480611a9457506001600160e01b03198216635b5e139f60e01b145b8061080f575061080f82611f79565b3390565b6004546000908210801561080f575060006001600160a01b031660048381548110611ae257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b3482611324565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b7882611aa7565b611b945760405162461bcd60e51b81526004016108ea90612a59565b6000611b9f83611324565b9050806001600160a01b0316846001600160a01b03161480611bda5750836001600160a01b0316611bcf84610912565b6001600160a01b0316145b80611bea5750611bea81856117d0565b949350505050565b826001600160a01b0316611c0582611324565b6001600160a01b031614611c2b5760405162461bcd60e51b81526004016108ea90612d0e565b6001600160a01b038216611c515760405162461bcd60e51b81526004016108ea906129de565b611c5c838383611f92565b611c67600082611aff565b8160048281548110611c8957634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611cef60008383611f92565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611dc8848484611bf2565b611dd48484848461200a565b6113105760405162461bcd60e51b81526004016108ea9061289f565b606081611e1557506040805180820190915260018152600360fc1b6020820152610812565b8160005b8115611e3f5780611e2981613056565b9150611e389050600a83612f8e565b9150611e19565b60008167ffffffffffffffff811115611e6857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e92576020820181803683370190505b5090505b8415611bea57611ea7600183612fc1565b9150611eb4600a86613071565b611ebf906030612f76565b60f81b818381518110611ee257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f04600a86612f8e565b9450611e96565b611f13611aa3565b6001600160a01b0316611f24611593565b6001600160a01b031614611f4a5760405162461bcd60e51b81526004016108ea90612cd9565b6001600160a01b038116611f705760405162461bcd60e51b81526004016108ea906128f1565b610d7881611d6b565b6001600160e01b031981166301ffc9a760e01b14919050565b6001600160a01b03831615611fcc576001600160a01b03831660009081526007602052604081208054909190611fc790613004565b909155505b6001600160a01b038216156109e8576001600160a01b0382166000908152600760205260408120805490919061200190613056565b90915550505050565b600061201e846001600160a01b0316612125565b1561211a57836001600160a01b031663150b7a0261203a611aa3565b8786866040518563ffffffff1660e01b815260040161205c9493929190612763565b602060405180830381600087803b15801561207657600080fd5b505af19250505080156120a6575060408051601f3d908101601f191682019092526120a3918101906125bf565b60015b612100573d8080156120d4576040519150601f19603f3d011682016040523d82523d6000602084013e6120d9565b606091505b5080516120f85760405162461bcd60e51b81526004016108ea9061289f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bea565b506001949350505050565b3b151590565b8280546121379061301b565b90600052602060002090601f016020900481019282612159576000855561219f565b82601f106121725782800160ff1982351617855561219f565b8280016001018555821561219f579182015b8281111561219f578235825591602001919060010190612184565b506110cb9291505b808211156110cb57600081556001016121a7565b80356001600160a01b038116811461081257600080fd5b60008083601f8401126121e3578182fd5b50813567ffffffffffffffff8111156121fa578182fd5b602083019150836020808302850101111561221457600080fd5b9250929050565b8035801515811461081257600080fd5b60008083601f84011261223c578182fd5b50813567ffffffffffffffff811115612253578182fd5b60208301915083602082850101111561221457600080fd5b60006020828403121561227c578081fd5b61109c826121bb565b60008060408385031215612297578081fd5b6122a0836121bb565b91506122ae602084016121bb565b90509250929050565b600080600080600080608087890312156122cf578182fd5b6122d8876121bb565b95506122e6602088016121bb565b9450604087013567ffffffffffffffff80821115612302578384fd5b61230e8a838b016121d2565b90965094506060890135915080821115612326578384fd5b5061233389828a0161222b565b979a9699509497509295939492505050565b600080600060608486031215612359578283fd5b612362846121bb565b9250612370602085016121bb565b9150604084013590509250925092565b60008060008060808587031215612395578384fd5b61239e856121bb565b935060206123ad8187016121bb565b935060408601359250606086013567ffffffffffffffff808211156123d0578384fd5b818801915088601f8301126123e3578384fd5b8135818111156123f5576123f56130b1565b612407601f8201601f19168501612f40565b9150808252898482850101111561241c578485fd5b8084840185840137810190920192909252939692955090935050565b60008060006040848603121561244c578283fd5b612455846121bb565b9250602084013567ffffffffffffffff811115612470578283fd5b61247c868287016121d2565b9497909650939450505050565b6000806040838503121561249b578182fd5b6124a4836121bb565b91506122ae6020840161221b565b600080604083850312156124c4578182fd5b6124cd836121bb565b946020939093013593505050565b600060208083850312156124ed578182fd5b823567ffffffffffffffff80821115612504578384fd5b818501915085601f830112612517578384fd5b813581811115612529576125296130b1565b8381029150612539848301612f40565b8181528481019084860184860187018a1015612553578788fd5b8795505b8386101561257c57612568816121bb565b835260019590950194918601918601612557565b5098975050505050505050565b60006020828403121561259a578081fd5b61109c8261221b565b6000602082840312156125b4578081fd5b813561109c816130c7565b6000602082840312156125d0578081fd5b815161109c816130c7565b600080602083850312156125ed578182fd5b823567ffffffffffffffff811115612603578283fd5b61260f8582860161222b565b90969095509350505050565b60006020828403121561262c578081fd5b5035919050565b600080600060608486031215612647578081fd5b505081359360208301359350604090920135919050565b60008151808452612676816020860160208601612fd8565b601f01601f19169290920160200192915050565b6000815161269c818560208601612fd8565b9290920192915050565b82546000908190600281046001808316806126c257607f831692505b60208084108214156126e257634e487b7160e01b87526022600452602487fd5b8180156126f6576001811461270757612733565b60ff19861689528489019650612733565b6127108b612f6a565b885b8681101561272b5781548b820152908501908301612712565b505084890196505b505050505050612743818561268a565b95945050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127969083018461265e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156127d8578351835292840192918401916001016127bc565b50909695505050505050565b901515815260200190565b60006020825261109c602083018461265e565b6020808252600e908201526d06d6178206d696e742069732031360941b604082015260600190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526014908201527315985b1d595cc8185c99481b9bdd081d985b1a5960621b604082015260600190565b6020808252600d908201526c696e76616c69642076616c756560981b604082015260600190565b6020808252600f908201526e6661696c656420776974686472617760881b604082015260600190565b6020808252600f908201526e73616c65206e6f742061637469766560881b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600d908201526c6d6178206d696e74206f66203560981b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252600f908201526e696e76616c6964206164647265737360881b604082015260600190565b60208082526019908201527f4661696c6564207769746864726177696e6720696e6974616c00000000000000604082015260600190565b6020808252602a908201527f737570706c79206d757374206265206c6172676572207468616e2070726576696040820152696f757320737570706c7960b01b606082015260800190565b6020808252600d908201526c1cdd5c1c1b1e4818d85c1c1959609a1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601690820152751b9bc8195d1a081a5b881d1a194818dbdb9d1c9858dd60521b604082015260600190565b6020808252600990820152681d5b99195c9c185a5960ba1b604082015260600190565b6020808252600f908201526e4661696c656420776974686472617760881b604082015260600190565b6020808252601c908201527f4e6f7420656e6f75676820657468657220746f20776974686472617700000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612f6257612f626130b1565b604052919050565b60009081526020902090565b60008219821115612f8957612f89613085565b500190565b600082612f9d57612f9d61309b565b500490565b6000816000190483118215151615612fbc57612fbc613085565b500290565b600082821015612fd357612fd3613085565b500390565b60005b83811015612ff3578181015183820152602001612fdb565b838111156113105750506000910152565b60008161301357613013613085565b506000190190565b60028104600182168061302f57607f821691505b6020821081141561305057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561306a5761306a613085565b5060010190565b6000826130805761308061309b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d7857600080fdfea2646970667358221220aedd1a19c9030599e9378c73f6ceb794779616b3f811a600976420d95b07b88464736f6c63430008000033

Deployed Bytecode

0x60806040526004361061028c5760003560e01c806355f804b31161015a5780638ea5220f116100c1578063c75748391161007a578063c75748391461074d578063c87b56dd14610762578063e985e9c514610782578063f2fde38b146107a2578063f759867a146107c2578063ff655320146107d557610293565b80638ea5220f146106a357806395d89b41146106b85780639b19251a146106cd578063a22cb465146106ed578063b534a5c41461070d578063b88d4fde1461072d57610293565b806370a082311161011357806370a0823114610604578063715018a6146106245780637ed6c926146106395780637f75c315146106595780638895283f1461066e5780638da5cb5b1461068e57610293565b806355f804b3146105655780635fd8c7101461058557806360d938dc1461059a5780636352211e146105af5780636817c76c146105cf5780636c19e783146105e457610293565b806336b19cd7116101fe5780634a994eef116101b75780634a994eef146104c65780634bb278f3146104e65780634d44660c146104fb5780634f6ccce71461051b57806350f7c2041461053b578063535d7c551461055057610293565b806336b19cd71461041c5780633af03e8a146104315780633af32abf146104465780633f79c5c71461046657806342842e0e14610479578063438b63001461049957610293565b8063111be31611610250578063111be3161461035a57806318160ddd1461037a57806321f4697d1461039c57806323b872dd146103bc5780632f745c59146103dc5780633628731c146103fc57610293565b806301ffc9a71461029557806306fdde03146102cb57806307779627146102ed578063081812fc1461030d578063095ea7b31461033a57610293565b3661029357005b005b3480156102a157600080fd5b506102b56102b03660046125a3565b6107ea565b6040516102c291906127e4565b60405180910390f35b3480156102d757600080fd5b506102e0610817565b6040516102c291906127ef565b3480156102f957600080fd5b506102b561030836600461226b565b6108a9565b34801561031957600080fd5b5061032d61032836600461261b565b610912565b6040516102c2919061274f565b34801561034657600080fd5b506102936103553660046124b2565b610955565b34801561036657600080fd5b50610293610375366004612633565b6109ed565b34801561038657600080fd5b5061038f610a8d565b6040516102c29190612f37565b3480156103a857600080fd5b506102936103b7366004612589565b610ab1565b3480156103c857600080fd5b506102936103d7366004612345565b610b1c565b3480156103e857600080fd5b5061038f6103f73660046124b2565b610b54565b34801561040857600080fd5b506102936104173660046124db565b610bf0565b34801561042857600080fd5b5061032d610ca9565b34801561043d57600080fd5b50610293610cb8565b34801561045257600080fd5b506102b561046136600461226b565b610d7b565b61029361047436600461261b565b610d99565b34801561048557600080fd5b50610293610494366004612345565b610e72565b3480156104a557600080fd5b506104b96104b436600461226b565b610e8d565b6040516102c291906127a0565b3480156104d257600080fd5b506102936104e1366004612489565b610f49565b3480156104f257600080fd5b50610293610fb3565b34801561050757600080fd5b506102b5610516366004612438565b611005565b34801561052757600080fd5b5061038f61053636600461261b565b6110a3565b34801561054757600080fd5b5061038f6110cf565b34801561055c57600080fd5b5061038f6110d5565b34801561057157600080fd5b506102936105803660046125db565b6110db565b34801561059157600080fd5b50610293611116565b3480156105a657600080fd5b506102b5611316565b3480156105bb57600080fd5b5061032d6105ca36600461261b565b611324565b3480156105db57600080fd5b5061038f61137c565b3480156105f057600080fd5b506102936105ff36600461226b565b611382565b34801561061057600080fd5b5061038f61061f36600461226b565b6113e3565b34801561063057600080fd5b5061029361147c565b34801561064557600080fd5b506102936106543660046125db565b6114c7565b34801561066557600080fd5b506102b5611512565b34801561067a57600080fd5b50610293610689366004612589565b61151b565b34801561069a57600080fd5b5061032d611593565b3480156106af57600080fd5b5061032d6115a2565b3480156106c457600080fd5b506102e06115b1565b3480156106d957600080fd5b506102b56106e836600461226b565b6115c0565b3480156106f957600080fd5b50610293610708366004612489565b6115d5565b34801561071957600080fd5b506102936107283660046122b7565b6116a3565b34801561073957600080fd5b50610293610748366004612380565b61172f565b34801561075957600080fd5b5061032d611768565b34801561076e57600080fd5b506102e061077d36600461261b565b611777565b34801561078e57600080fd5b506102b561079d366004612285565b6117d0565b3480156107ae57600080fd5b506102936107bd36600461226b565b6117fe565b6102936107d036600461261b565b611869565b3480156107e157600080fd5b50610293611974565b60006001600160e01b0319821663780e9d6360e01b148061080f575061080f82611a63565b90505b919050565b6060600080546108269061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546108529061301b565b801561089f5780601f106108745761010080835404028352916020019161089f565b820191906000526020600020905b81548152906001019060200180831161088257829003601f168201915b5050505050905090565b60006108b3611aa3565b6001600160a01b03166108c4611593565b6001600160a01b0316146108f35760405162461bcd60e51b81526004016108ea90612cd9565b60405180910390fd5b506001600160a01b031660009081526009602052604090205460ff1690565b600061091d82611aa7565b6109395760405162461bcd60e51b81526004016108ea90612c8d565b506000908152600560205260409020546001600160a01b031690565b600061096082611324565b9050806001600160a01b0316836001600160a01b031614156109945760405162461bcd60e51b81526004016108ea90612e59565b806001600160a01b03166109a6611aa3565b6001600160a01b031614806109c257506109c28161079d611aa3565b6109de5760405162461bcd60e51b81526004016108ea90612acc565b6109e88383611aff565b505050565b3360009081526009602052604090205460ff16610a1c5760405162461bcd60e51b81526004016108ea9061282a565b82600c54141580610a2f575081600d5414155b80610a3c575080600e5414155b610a585760405162461bcd60e51b81526004016108ea90612937565b610a60610a8d565b821015610a7f5760405162461bcd60e51b81526004016108ea90612c1c565b600c92909255600d55600e55565b6000600254600354610a9f9190612f76565b600454610aac9190612fc1565b905090565b3360009081526009602052604090205460ff16610ae05760405162461bcd60e51b81526004016108ea9061282a565b600f5460ff1615158115151415610b095760405162461bcd60e51b81526004016108ea90612965565b600f805460ff1916911515919091179055565b610b2d610b27611aa3565b82611b6d565b610b495760405162461bcd60e51b81526004016108ea90612e9a565b6109e8838383611bf2565b60008060005b600454811015610bd15760048181548110610b8557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610bc15783821415610bb5579150610bea9050565b610bbe82613056565b91505b610bca81613056565b9050610b5a565b5060405162461bcd60e51b81526004016108ea90612854565b92915050565b610bf8611aa3565b6001600160a01b0316610c09611593565b6001600160a01b031614610c2f5760405162461bcd60e51b81526004016108ea90612cd9565b60005b8151811015610ca557600160146000848481518110610c6157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610c9d81613056565b915050610c32565b5050565b6013546001600160a01b031681565b610cc0611aa3565b6001600160a01b0316610cd1611593565b6001600160a01b031614610cf75760405162461bcd60e51b81526004016108ea90612cd9565b6011546040516000916001600160a01b0316904790610d159061274c565b60006040518083038185875af1925050503d8060008114610d52576040519150601f19603f3d011682016040523d82523d6000602084013e610d57565b606091505b5050905080610d785760405162461bcd60e51b81526004016108ea9061298c565b50565b6001600160a01b031660009081526014602052604090205460ff1690565b600f5460ff16610dbb5760405162461bcd60e51b81526004016108ea906129b5565b600c54811115610ddd5760405162461bcd60e51b81526004016108ea90612802565b80600e54610deb9190612fa2565b341015610e0a5760405162461bcd60e51b81526004016108ea90612dd6565b6000610e14610a8d565b600d54909150610e248383612f76565b1115610e425760405162461bcd60e51b81526004016108ea90612c66565b60005b828110156109e857610e623383610e5b81613056565b9450611ce3565b610e6b81613056565b9050610e45565b6109e88383836040518060200160405280600081525061172f565b60606000610e9a836113e3565b905060008167ffffffffffffffff811115610ec557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610eee578160200160208202803683370190505b50905060005b82811015610f4157610f068582610b54565b828281518110610f2657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610f3a81613056565b9050610ef4565b509392505050565b610f51611aa3565b6001600160a01b0316610f62611593565b6001600160a01b031614610f885760405162461bcd60e51b81526004016108ea90612cd9565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b610fbb611aa3565b6001600160a01b0316610fcc611593565b6001600160a01b031614610ff25760405162461bcd60e51b81526004016108ea90612cd9565b610ffa611593565b6001600160a01b0316ff5b6000805b8281101561109657846001600160a01b0316600485858481811061103d57634e487b7160e01b600052603260045260246000fd5b905060200201358154811061106257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161461108657600091505061109c565b61108f81613056565b9050611009565b50600190505b9392505050565b60006110ad610a8d565b82106110cb5760405162461bcd60e51b81526004016108ea90612eeb565b5090565b600d5481565b600c5481565b3360009081526009602052604090205460ff1661110a5760405162461bcd60e51b81526004016108ea9061282a565b6109e86010838361212b565b61111e611aa3565b6001600160a01b031661112f611593565b6001600160a01b0316146111555760405162461bcd60e51b81526004016108ea90612cd9565b600047116111755760405162461bcd60e51b81526004016108ea90612da6565b60115447906000906001600160a01b0316606461119384600a612fa2565b61119d9190612f8e565b6040516111a99061274c565b60006040518083038185875af1925050503d80600081146111e6576040519150601f19603f3d011682016040523d82523d6000602084013e6111eb565b606091505b50506012549091506000906001600160a01b0316606461120c856019612fa2565b6112169190612f8e565b6040516112229061274c565b60006040518083038185875af1925050503d806000811461125f576040519150601f19603f3d011682016040523d82523d6000602084013e611264565b606091505b50506013549091506000906001600160a01b03166064611285866041612fa2565b61128f9190612f8e565b60405161129b9061274c565b60006040518083038185875af1925050503d80600081146112d8576040519150601f19603f3d011682016040523d82523d6000602084013e6112dd565b606091505b505090508280156112eb5750815b80156112f45750805b6113105760405162461bcd60e51b81526004016108ea90612df9565b50505050565b600f54610100900460ff1681565b6000806004838154811061134857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031690508061080f5760405162461bcd60e51b81526004016108ea90612b73565b600e5481565b61138a611aa3565b6001600160a01b031661139b611593565b6001600160a01b0316146113c15760405162461bcd60e51b81526004016108ea90612cd9565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661140b5760405162461bcd60e51b81526004016108ea90612b29565b6000805b600454811015611475576004818154811061143a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03858116911614156114655761146282613056565b91505b61146e81613056565b905061140f565b5092915050565b611484611aa3565b6001600160a01b0316611495611593565b6001600160a01b0316146114bb5760405162461bcd60e51b81526004016108ea90612cd9565b6114c56000611d6b565b565b6114cf611aa3565b6001600160a01b03166114e0611593565b6001600160a01b0316146115065760405162461bcd60e51b81526004016108ea90612cd9565b6109e8600a838361212b565b600f5460ff1681565b3360009081526009602052604090205460ff1661154a5760405162461bcd60e51b81526004016108ea9061282a565b600f5460ff61010090910416151581151514156115795760405162461bcd60e51b81526004016108ea90612965565b600f80549115156101000261ff0019909216919091179055565b6008546001600160a01b031690565b6011546001600160a01b031681565b6060600180546108269061301b565b60146020526000908152604090205460ff1681565b6115dd611aa3565b6001600160a01b0316826001600160a01b0316141561160e5760405162461bcd60e51b81526004016108ea90612a22565b806006600061161b611aa3565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561165f611aa3565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161169791906127e4565b60405180910390a35050565b60005b838110156117265761171687878787858181106116d357634e487b7160e01b600052603260045260246000fd5b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061172f92505050565b61171f81613056565b90506116a6565b50505050505050565b61174061173a611aa3565b83611b6d565b61175c5760405162461bcd60e51b81526004016108ea90612e9a565b61131084848484611dbd565b6012546001600160a01b031681565b606061178282611aa7565b61179e5760405162461bcd60e51b81526004016108ea90612d57565b60106117a983611df0565b6040516020016117ba9291906126a6565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b611806611aa3565b6001600160a01b0316611817611593565b6001600160a01b03161461183d5760405162461bcd60e51b81526004016108ea90612cd9565b6001600160a01b0381166000908152600960205260409020805460ff19166001179055610d7881611f0b565b600f54610100900460ff166118905760405162461bcd60e51b81526004016108ea906129b5565b3360009081526014602052604090205460ff1615156001146118c45760405162461bcd60e51b81526004016108ea90612bbc565b600c548111156118e65760405162461bcd60e51b81526004016108ea90612aa5565b80600e546118f49190612fa2565b3410156119135760405162461bcd60e51b81526004016108ea90612dd6565b600061191d610a8d565b600d5490915061192d8383612f76565b111561194b5760405162461bcd60e51b81526004016108ea90612c66565b60005b828110156109e8576119643383610e5b81613056565b61196d81613056565b905061194e565b61197c611aa3565b6001600160a01b031661198d611593565b6001600160a01b0316146119b35760405162461bcd60e51b81526004016108ea90612cd9565b678ac7230489e8000047116119da5760405162461bcd60e51b81526004016108ea90612e22565b6011546040516000916001600160a01b031690678ac7230489e8000090611a009061274c565b60006040518083038185875af1925050503d8060008114611a3d576040519150601f19603f3d011682016040523d82523d6000602084013e611a42565b606091505b5050905080610d785760405162461bcd60e51b81526004016108ea90612be5565b60006001600160e01b031982166380ac58cd60e01b1480611a9457506001600160e01b03198216635b5e139f60e01b145b8061080f575061080f82611f79565b3390565b6004546000908210801561080f575060006001600160a01b031660048381548110611ae257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b3482611324565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b7882611aa7565b611b945760405162461bcd60e51b81526004016108ea90612a59565b6000611b9f83611324565b9050806001600160a01b0316846001600160a01b03161480611bda5750836001600160a01b0316611bcf84610912565b6001600160a01b0316145b80611bea5750611bea81856117d0565b949350505050565b826001600160a01b0316611c0582611324565b6001600160a01b031614611c2b5760405162461bcd60e51b81526004016108ea90612d0e565b6001600160a01b038216611c515760405162461bcd60e51b81526004016108ea906129de565b611c5c838383611f92565b611c67600082611aff565b8160048281548110611c8957634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611cef60008383611f92565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611dc8848484611bf2565b611dd48484848461200a565b6113105760405162461bcd60e51b81526004016108ea9061289f565b606081611e1557506040805180820190915260018152600360fc1b6020820152610812565b8160005b8115611e3f5780611e2981613056565b9150611e389050600a83612f8e565b9150611e19565b60008167ffffffffffffffff811115611e6857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e92576020820181803683370190505b5090505b8415611bea57611ea7600183612fc1565b9150611eb4600a86613071565b611ebf906030612f76565b60f81b818381518110611ee257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f04600a86612f8e565b9450611e96565b611f13611aa3565b6001600160a01b0316611f24611593565b6001600160a01b031614611f4a5760405162461bcd60e51b81526004016108ea90612cd9565b6001600160a01b038116611f705760405162461bcd60e51b81526004016108ea906128f1565b610d7881611d6b565b6001600160e01b031981166301ffc9a760e01b14919050565b6001600160a01b03831615611fcc576001600160a01b03831660009081526007602052604081208054909190611fc790613004565b909155505b6001600160a01b038216156109e8576001600160a01b0382166000908152600760205260408120805490919061200190613056565b90915550505050565b600061201e846001600160a01b0316612125565b1561211a57836001600160a01b031663150b7a0261203a611aa3565b8786866040518563ffffffff1660e01b815260040161205c9493929190612763565b602060405180830381600087803b15801561207657600080fd5b505af19250505080156120a6575060408051601f3d908101601f191682019092526120a3918101906125bf565b60015b612100573d8080156120d4576040519150601f19603f3d011682016040523d82523d6000602084013e6120d9565b606091505b5080516120f85760405162461bcd60e51b81526004016108ea9061289f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bea565b506001949350505050565b3b151590565b8280546121379061301b565b90600052602060002090601f016020900481019282612159576000855561219f565b82601f106121725782800160ff1982351617855561219f565b8280016001018555821561219f579182015b8281111561219f578235825591602001919060010190612184565b506110cb9291505b808211156110cb57600081556001016121a7565b80356001600160a01b038116811461081257600080fd5b60008083601f8401126121e3578182fd5b50813567ffffffffffffffff8111156121fa578182fd5b602083019150836020808302850101111561221457600080fd5b9250929050565b8035801515811461081257600080fd5b60008083601f84011261223c578182fd5b50813567ffffffffffffffff811115612253578182fd5b60208301915083602082850101111561221457600080fd5b60006020828403121561227c578081fd5b61109c826121bb565b60008060408385031215612297578081fd5b6122a0836121bb565b91506122ae602084016121bb565b90509250929050565b600080600080600080608087890312156122cf578182fd5b6122d8876121bb565b95506122e6602088016121bb565b9450604087013567ffffffffffffffff80821115612302578384fd5b61230e8a838b016121d2565b90965094506060890135915080821115612326578384fd5b5061233389828a0161222b565b979a9699509497509295939492505050565b600080600060608486031215612359578283fd5b612362846121bb565b9250612370602085016121bb565b9150604084013590509250925092565b60008060008060808587031215612395578384fd5b61239e856121bb565b935060206123ad8187016121bb565b935060408601359250606086013567ffffffffffffffff808211156123d0578384fd5b818801915088601f8301126123e3578384fd5b8135818111156123f5576123f56130b1565b612407601f8201601f19168501612f40565b9150808252898482850101111561241c578485fd5b8084840185840137810190920192909252939692955090935050565b60008060006040848603121561244c578283fd5b612455846121bb565b9250602084013567ffffffffffffffff811115612470578283fd5b61247c868287016121d2565b9497909650939450505050565b6000806040838503121561249b578182fd5b6124a4836121bb565b91506122ae6020840161221b565b600080604083850312156124c4578182fd5b6124cd836121bb565b946020939093013593505050565b600060208083850312156124ed578182fd5b823567ffffffffffffffff80821115612504578384fd5b818501915085601f830112612517578384fd5b813581811115612529576125296130b1565b8381029150612539848301612f40565b8181528481019084860184860187018a1015612553578788fd5b8795505b8386101561257c57612568816121bb565b835260019590950194918601918601612557565b5098975050505050505050565b60006020828403121561259a578081fd5b61109c8261221b565b6000602082840312156125b4578081fd5b813561109c816130c7565b6000602082840312156125d0578081fd5b815161109c816130c7565b600080602083850312156125ed578182fd5b823567ffffffffffffffff811115612603578283fd5b61260f8582860161222b565b90969095509350505050565b60006020828403121561262c578081fd5b5035919050565b600080600060608486031215612647578081fd5b505081359360208301359350604090920135919050565b60008151808452612676816020860160208601612fd8565b601f01601f19169290920160200192915050565b6000815161269c818560208601612fd8565b9290920192915050565b82546000908190600281046001808316806126c257607f831692505b60208084108214156126e257634e487b7160e01b87526022600452602487fd5b8180156126f6576001811461270757612733565b60ff19861689528489019650612733565b6127108b612f6a565b885b8681101561272b5781548b820152908501908301612712565b505084890196505b505050505050612743818561268a565b95945050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127969083018461265e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156127d8578351835292840192918401916001016127bc565b50909695505050505050565b901515815260200190565b60006020825261109c602083018461265e565b6020808252600e908201526d06d6178206d696e742069732031360941b604082015260600190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526014908201527315985b1d595cc8185c99481b9bdd081d985b1a5960621b604082015260600190565b6020808252600d908201526c696e76616c69642076616c756560981b604082015260600190565b6020808252600f908201526e6661696c656420776974686472617760881b604082015260600190565b6020808252600f908201526e73616c65206e6f742061637469766560881b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600d908201526c6d6178206d696e74206f66203560981b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252600f908201526e696e76616c6964206164647265737360881b604082015260600190565b60208082526019908201527f4661696c6564207769746864726177696e6720696e6974616c00000000000000604082015260600190565b6020808252602a908201527f737570706c79206d757374206265206c6172676572207468616e2070726576696040820152696f757320737570706c7960b01b606082015260800190565b6020808252600d908201526c1cdd5c1c1b1e4818d85c1c1959609a1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601690820152751b9bc8195d1a081a5b881d1a194818dbdb9d1c9858dd60521b604082015260600190565b6020808252600990820152681d5b99195c9c185a5960ba1b604082015260600190565b6020808252600f908201526e4661696c656420776974686472617760881b604082015260600190565b6020808252601c908201527f4e6f7420656e6f75676820657468657220746f20776974686472617700000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612f6257612f626130b1565b604052919050565b60009081526020902090565b60008219821115612f8957612f89613085565b500190565b600082612f9d57612f9d61309b565b500490565b6000816000190483118215151615612fbc57612fbc613085565b500290565b600082821015612fd357612fd3613085565b500390565b60005b83811015612ff3578181015183820152602001612fdb565b838111156113105750506000910152565b60008161301357613013613085565b506000190190565b60028104600182168061302f57607f821691505b6020821081141561305057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561306a5761306a613085565b5060010190565b6000826130805761308061309b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d7857600080fdfea2646970667358221220aedd1a19c9030599e9378c73f6ceb794779616b3f811a600976420d95b07b88464736f6c63430008000033

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.