ETH Price: $3,888.26 (+0.50%)

Token

Cyber Hornets Animus (ANIMUS)
 

Overview

Max Total Supply

1,715 ANIMUS

Holders

395

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
4 ANIMUS
0x6Bc49c3989E5cc149c6eDdE8E1D6cE66AFCE7807
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

6,666 Animus NFTs minted on the Ethereum Blockchain coming to invade The Hive in search of The Queen’s Precious $VENOM in a new play to earn strategy staking development.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CyberHornetsAnimus

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : CyberAnimus.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

import "./GDXERC721Batch.sol";
import "../Blimpie/Signed.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract CyberHornets {
	function balanceOf(address owner) external view returns (uint256 balance) {}
} 

contract CyberHornetsAnimus is GDXERC721Batch, Signed {

    using Strings for uint256;

	CyberHornets cyberHornets = CyberHornets(0x821043B51Bd384f2CaA0d09dc136181870B2beA2);

    uint256 public MAX_ORDER = 10;
    uint256 public MAX_SUPPLY = 6666;
    uint256 public PRICE = 0.06 ether;
	
	uint256 public MAX_PRESALE_AMOUNT = 4;
    uint256 public PRE_KNIGHT_PRICE = 0.05 ether;
    uint256 public PRE_COMMON_PRICE = 0.055 ether;

	enum SaleState {
		Paused,
		Presale,
		Public
	}
		
	bool isVerified;
	
    SaleState public saleState = SaleState.Paused;

    string private _baseTokenURI = "";
    string private _tokenURISuffix = "";

    mapping(address => uint256) public presaleMap;
	mapping(uint => uint) public hornetsMinted;

    address[] addresses = [
		0xB7edf3Cbb58ecb74BdE6298294c7AAb339F3cE4a,
		0x0ecAf65655901e0b1BabDb9d7A674De7c824853d,
		0x1f01ee624c646Bf9f510d004BdB90d53Bed24642,
		0x2669Ac0238c3f0Fd48ac5D5381A95B8689879843,
		0x8060ec8fFAEf3021d83bbc7F5D88b262A52e449e,
		0xb7bb98Bb5CF07F9B6d1528d0973979773a273288
    ];
    uint256[] splits = [7, 6, 6, 6, 4, 71];
	
	mapping(address => bool) public Knights;

    constructor() GDXERC721("Cyber Hornets Animus", "ANIMUS") {
        Knights[ 0x0ecAf65655901e0b1BabDb9d7A674De7c824853d ] = true;
		Knights[ 0x99044a1FEE6f24AAD3b0144fA52e03406F8EB1Ce ] = true;
		Knights[ 0xB7b74567850522fd84CFE8fef30762423987D9a8 ] = true;
		Knights[ 0x4d6Edc3579636b47Edfe405cBC443851DbB27474 ] = true;
		Knights[ 0x97e7C82cD52303bc6f60BB9366af081665229F64 ] = true;
		Knights[ 0xC1da309F85eD397A942f9bF212cdd63110E61515 ] = true;
		Knights[ 0x8060ec8fFAEf3021d83bbc7F5D88b262A52e449e ] = true;
		Knights[ 0x3d24F913036138D8CC2A6cb1Befc9c899709E89C ] = true;
		Knights[ 0xa251C3b888D77419d7104A90739493FFdF25FF7F ] = true;
		Knights[ 0x79F4F419EDa7769d5058e0d7De91fFe1f584CBD0 ] = true;
    }

    //safety first
    fallback() external payable {}

    receive() external payable {}

    function withdraw() external onlyDelegates {
        require(address(this).balance > 0);
        uint256 bal = address(this).balance;
        for (uint256 i; i < addresses.length; i++) {
            require(payable(addresses[i]).send((bal / 100) * splits[i]));
        }
    }

    //view
    function getTokensByOwner(address owner)
        external
        view
        returns (uint256[] memory)
    {
        return walletOfOwner(owner);
    }

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

    //payable
	function mintPresale(uint256 quantity, bytes calldata signature) external payable {
		require(saleState >= SaleState.Presale, "Presale not active");
		require(quantity + presaleMap[msg.sender] <= MAX_PRESALE_AMOUNT, "Order exceeds presale allowance");

        uint256 supply = totalSupply();
        require(supply + quantity <= MAX_SUPPLY, "Mint/order exceeds supply");
		
        if (Knights[ msg.sender ]) {
            require(msg.value >= PRE_KNIGHT_PRICE * quantity, "Not enough ETH sent");
			if (isVerified)
                verifySignature(quantity.toString(), signature);
		} else {
			require(msg.value >= PRE_COMMON_PRICE * quantity, "Not enough ETH sent");

            if( signature.length < 32 )
			    require( cyberHornets.balanceOf(msg.sender) > 0, "Address not authorized" );
            else if (isVerified)
                verifySignature(quantity.toString(), signature);
        }
		
		presaleMap[msg.sender] = presaleMap[msg.sender] + quantity;

        unchecked {
            for (uint256 i; i < quantity; i++) {
                _mint(msg.sender, supply++);
            }
        }
    }
	
	
    function mint(uint256 quantity) external payable {
        require(saleState == SaleState.Public, "Public sale not active");
        require(quantity <= MAX_ORDER, "Order too big");
        
		uint256 supply = totalSupply();
        require(supply + quantity <= MAX_SUPPLY, "Mint/order exceeds supply");
		require(msg.value >= PRICE * quantity, "Not enough ETH sent");
		
		unchecked {
            for (uint256 i; i < quantity; i++) {
                _mint(msg.sender, supply++);
            }
        }
    }

    //onlyDelegates
    function mintTo(uint256[] calldata quantity, address[] calldata recipient)
        external
        payable
        onlyDelegates
    {
        require(
            quantity.length == recipient.length,
            "Must provide equal quantities and recipients"
        );

        uint256 totalQuantity;
        uint256 supply = totalSupply();
        for (uint256 i; i < quantity.length; i++) {
            totalQuantity += quantity[i];
        }
        require(
            supply + totalQuantity <= MAX_SUPPLY,
            "Mint/order exceeds supply"
        );

        unchecked {
            for (uint256 i = 0; i < recipient.length; i++) {
                for (uint256 j = 0; j < quantity[i]; j++) {
                    _mint(recipient[i], supply++);
                }
            }
        }
    }

    // In case of emergency
    function setWithdrawalData(
        address[] calldata _addr,
        uint256[] calldata _splits
    ) external onlyDelegates {
        require(
            _addr.length == splits.length,
            "Mismatched number of addresses and splits."
        );
        addresses = _addr;
        splits = _splits;
    }

    function setActive(
        SaleState saleState_
    ) external onlyDelegates {

        if (saleState != saleState_)
            saleState = saleState_;

    }

	function setHornetAddress(address hornetAddress) public onlyDelegates {
		cyberHornets = CyberHornets(hornetAddress);
	}

    function setBaseURI(string calldata _newBaseURI, string calldata _newSuffix)
        external
        onlyDelegates
    {
        _baseTokenURI = _newBaseURI;
        _tokenURISuffix = _newSuffix;
    }

    function setMax(uint256 maxOrder, uint256 maxSupply)
        external
        onlyDelegates
    {
        require(
            maxSupply >= totalSupply(),
            "Specified supply is lower than current balance"
        );

        if (MAX_ORDER != maxOrder) MAX_ORDER = maxOrder;

        if (MAX_SUPPLY != maxSupply) MAX_SUPPLY = maxSupply;
    }

    function setVerified(bool verified_) external onlyDelegates {
        if (isVerified != verified_) isVerified = verified_;
    }

    function setPrice(uint256 price) external onlyDelegates {
        if (PRICE != price) PRICE = price;
    }

    //internal
    function _mint(address to, uint256 tokenId) internal override {
        _owners.push(to);
        emit Transfer(address(0), to, tokenId);
    }
}

File 2 of 22 : GDXERC721Enumerable.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

import "./GDXERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract GDXERC721Enumerable is GDXERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, GDXERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view override returns (uint256 tokenId) {
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        require(false, "ERC721Enumerable: owner index out of bounds");
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) external view override returns (uint256) {
        require(index < _owners.length, "ERC721: query for nonexistent token");
        return index;
    }
}

File 3 of 22 : GDXERC721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenXNFT                     *
 ****************************************/

import "./GDXERC721Enumerable.sol";
import "../Blimpie/IERC721Batch.sol";

abstract contract GDXERC721Batch is GDXERC721Enumerable, IERC721Batch {
    function isOwnerOf(address account, uint256[] calldata tokenIds)
        external
        view
        override
        returns (bool)
    {
        for (uint256 i; i < tokenIds.length; ++i) {
            if (_owners[tokenIds[i]] != account) return false;
        }

        return true;
    }

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

    function walletOfOwner(address account)
        public
        view
        override
        returns (uint256[] memory)
    {
        uint256 quantity = balanceOf(account);

        uint256 count;
        uint256[] memory wallet = new uint256[](quantity);
        for (uint256 i; i < _owners.length; ++i) {
            if (account == _owners[i]) {
                wallet[count++] = i;
                if (count == quantity) break;
            }
        }
        return wallet;
    }
}

File 4 of 22 : GDXERC721.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenXNFT                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import "../Blimpie/Delegated.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/interfaces/IERC721Receiver.sol";

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

    string private _name;
    string private _symbol;
    address[] internal _owners;

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

    constructor(string memory name_, string memory symbol_) Delegated() {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

    function ownerOf(uint256 tokenId) public view override returns (address) {
        require(_exists(tokenId), "ERC721: query for nonexistent token");
        return _owners[tokenId];
    }

    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 override returns (string memory) {
        return _symbol;
    }

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

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

        _approve(to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

    function _mint(address to, uint256 tokenId) internal virtual;

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

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

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

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

File 5 of 22 : Signed.sol
// SPDX-License-Identifier: BSD-3

pragma solidity ^0.8.0;

import './Delegated.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

//TODO: IERC1271

contract Signed is Delegated{
  using ECDSA for bytes32;

  string internal _secret;
  address internal _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 6 of 22 : 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 7 of 22 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* @author: squeebo_nft *
************************/

import "@openzeppelin/contracts/access/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 8 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 9 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 10 of 22 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @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 11 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 22 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 13 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

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 16 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 17 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Receiver.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721Receiver.sol";

File 19 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/extensions/IERC721Metadata.sol";

File 20 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

File 21 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 22 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "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":"","type":"address"}],"name":"Knights","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ORDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_COMMON_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_KNIGHT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}],"name":"getTokensByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hornetsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"saleState","outputs":[{"internalType":"enum CyberHornetsAnimus.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum CyberHornetsAnimus.SaleState","name":"saleState_","type":"uint8"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"},{"internalType":"string","name":"_newSuffix","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":"address","name":"hornetAddress","type":"address"}],"name":"setHornetAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxOrder","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","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":"bool","name":"verified_","type":"bool"}],"name":"setVerified","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint256[]","name":"_splits","type":"uint256[]"}],"name":"setWithdrawalData","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600980546001600160a01b03191673821043b51bd384f2caa0d09dc136181870b2bea2179055600a8055611a0a600b5566d529ae9e860000600c556004600d5566b1a2bc2ec50000600e5566c3663566a58000600f556010805461ff001916905560a06040819052600060808190526200007c916011916200049c565b506040805160208101918290526000908190526200009d916012916200049c565b506040805160c08101825273b7edf3cbb58ecb74bde6298294c7aab339f3ce4a8152730ecaf65655901e0b1babdb9d7a674de7c824853d6020820152731f01ee624c646bf9f510d004bdb90d53bed2464291810191909152732669ac0238c3f0fd48ac5d5381a95b86898798436060820152738060ec8ffaef3021d83bbc7f5d88b262a52e449e608082015273b7bb98bb5cf07f9b6d1528d0973979773a27328860a0820152620001539060159060066200052b565b506040805160c081018252600781526006602082018190529181018290526060810182905260046080820152604760a082015262000195916016919062000583565b50348015620001a357600080fd5b506040518060400160405280601481526020017f437962657220486f726e65747320416e696d757300000000000000000000000081525060405180604001604052806006815260200165414e494d555360d01b815250620002136200020d6200044860201b60201c565b6200044c565b60018060006200022b6000546001600160a01b031690565b6001600160a01b03168152602080820192909252604001600020805460ff19169215159290921790915582516200026991600291908501906200049c565b5080516200027f9060039060208401906200049c565b50506017602052507f8dcde7024be181e5ba37fb22bc6e9bb612c431902991ebacb646fe6c9797bfd78054600160ff1991821681179092557f214fe6651646c1f97c6a85a32ba32859fab0a47232c016d10ffed13d29037ffb80548216831790557ffea8d648993ab7519f9ca295f7fdfef49706b3f17cd6c9b0d4f920ce64326c1880548216831790557f5d741bbdf2650979a792817f9df450fc7c385a8b7ae1f50ab998b5307c8ea7da80548216831790557f85ac3afa434d07371957f4e68dfdc568474c94130e771107f08258dc4bc4f8cc80548216831790557f9e43aacd12da8d782bde121bdbe6bf9f1ca0bfeab615696303a8866729a9f1b380548216831790557f37754e7e690255cf34f94b722fbc87f85633f3eedca73196a38306606c232ef980548216831790557f6aa68f3ed5add0ea01518cb883e4cc935848ed0c45711ef2e5a8cb936245f3ab80548216831790557f666be1127c898ed5a6c6ec11963de609d821fa09d99f5841469a6b7bea29f57380548216831790557379f4f419eda7769d5058e0d7de91ffe1f584cbd06000527f63599ea3b25aa2cf6ad6f3102d43fc4548d592c6ce29ab2ee794a57fb3bc1ac2805490911690911790556200061a565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620004aa90620005dd565b90600052602060002090601f016020900481019282620004ce576000855562000519565b82601f10620004e957805160ff191683800117855562000519565b8280016001018555821562000519579182015b8281111562000519578251825591602001919060010190620004fc565b5062000527929150620005c6565b5090565b82805482825590600052602060002090810192821562000519579160200282015b828111156200051957825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200054c565b82805482825590600052602060002090810192821562000519579160200282015b8281111562000519578251829060ff16905591602001919060010190620005a4565b5b80821115620005275760008155600101620005c7565b600181811c90821680620005f257607f821691505b602082108114156200061457634e487b7160e01b600052602260045260246000fd5b50919050565b6132ff806200062a6000396000f3fe60806040526004361061027f5760003560e01c806350c5a00c1161014e5780638da5cb5b116100bb578063b534a5c411610077578063b534a5c4146107c4578063b88d4fde146107e4578063c87b56dd14610804578063e966d51214610824578063e985e9c514610837578063f2fde38b1461088057005b80638da5cb5b1461072857806391b7f5ed1461074657806395d89b4114610766578063a0712d681461077b578063a22cb4651461078e578063b0923277146107ae57005b80636c19e7831161010a5780636c19e7831461067d57806370a082311461069d578063715018a6146106bd57806372f10ff4146106d25780637ed6c926146106f25780638d859f3e1461071257005b806350c5a00c146105ae5780635ed26cc7146105c4578063603f4d52146105e45780636352211e1461061057806367273c3e146106305780636790a9de1461065d57005b80632f745c59116101ec578063438b6300116101a8578063438b6300146104ee57806349231c4e1461050e5780634a994eef1461052e5780634cb6be451461054e5780634d44660c1461056e5780634f6ccce71461058e57005b80632f745c591461043657806332cb6b0c146104565780633b91ceef1461046c5780633ccfd60b1461048c57806340398d67146104a157806342842e0e146104ce57005b80630d36b5321161023b5780630d36b5321461036a5780630f7596ad1461038e57806318160ddd146103be57806319d5398e146103d357806323b872dd146104005780632c6904bc1461042057005b806301ffc9a71461028857806306fdde03146102bd57806307779627146102df578063081812fc146102ff578063095ea7b3146103375780630d06ed721461035757005b3661028657005b005b34801561029457600080fd5b506102a86102a336600461285c565b6108a0565b60405190151581526020015b60405180910390f35b3480156102c957600080fd5b506102d26108cb565b6040516102b491906128d1565b3480156102eb57600080fd5b506102a86102fa3660046128fb565b61095d565b34801561030b57600080fd5b5061031f61031a366004612916565b6109b4565b6040516001600160a01b0390911681526020016102b4565b34801561034357600080fd5b5061028661035236600461292f565b6109f7565b61028661036536600461299b565b610b0d565b34801561037657600080fd5b50610380600e5481565b6040519081526020016102b4565b34801561039a57600080fd5b506102a86103a93660046128fb565b60176020526000908152604090205460ff1681565b3480156103ca57600080fd5b50600454610380565b3480156103df57600080fd5b506103806103ee3660046128fb565b60136020526000908152604090205481565b34801561040c57600080fd5b5061028661041b3660046129e7565b610dd0565b34801561042c57600080fd5b50610380600d5481565b34801561044257600080fd5b5061038061045136600461292f565b610e01565b34801561046257600080fd5b50610380600b5481565b34801561047857600080fd5b50610286610487366004612a23565b610ecd565b34801561049857600080fd5b50610286610f87565b3480156104ad57600080fd5b506104c16104bc3660046128fb565b611069565b6040516102b49190612a45565b3480156104da57600080fd5b506102866104e93660046129e7565b611074565b3480156104fa57600080fd5b506104c16105093660046128fb565b61108f565b34801561051a57600080fd5b50610286610529366004612ace565b611175565b34801561053a57600080fd5b50610286610549366004612b4a565b611221565b34801561055a57600080fd5b506102866105693660046128fb565b611276565b34801561057a57600080fd5b506102a8610589366004612b7d565b6112c7565b34801561059a57600080fd5b506103806105a9366004612916565b611349565b3480156105ba57600080fd5b50610380600a5481565b3480156105d057600080fd5b506102866105df366004612bc3565b611371565b3480156105f057600080fd5b5060105461060390610100900460ff1681565b6040516102b49190612bfa565b34801561061c57600080fd5b5061031f61062b366004612916565b6113fd565b34801561063c57600080fd5b5061038061064b366004612916565b60146020526000908152604090205481565b34801561066957600080fd5b50610286610678366004612c22565b611452565b34801561068957600080fd5b506102866106983660046128fb565b61149a565b3480156106a957600080fd5b506103806106b83660046128fb565b6114e6565b3480156106c957600080fd5b506102866115b4565b3480156106de57600080fd5b506102866106ed366004612c82565b6115ea565b3480156106fe57600080fd5b5061028661070d366004612c9d565b61163c565b34801561071e57600080fd5b50610380600c5481565b34801561073457600080fd5b506000546001600160a01b031661031f565b34801561075257600080fd5b50610286610761366004612916565b611672565b34801561077257600080fd5b506102d26116af565b610286610789366004612916565b6116be565b34801561079a57600080fd5b506102866107a9366004612b4a565b6117ed565b3480156107ba57600080fd5b50610380600f5481565b3480156107d057600080fd5b506102866107df366004612cdf565b6118b2565b3480156107f057600080fd5b506102866107ff366004612d86565b611930565b34801561081057600080fd5b506102d261081f366004612916565b611968565b610286610832366004612ace565b611a0c565b34801561084357600080fd5b506102a8610852366004612e62565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561088c57600080fd5b5061028661089b3660046128fb565b611b8f565b60006001600160e01b0319821663780e9d6360e01b14806108c557506108c582611be8565b92915050565b6060600280546108da90612e8c565b80601f016020809104026020016040519081016040528092919081815260200182805461090690612e8c565b80156109535780601f1061092857610100808354040283529160200191610953565b820191906000526020600020905b81548152906001019060200180831161093657829003601f168201915b5050505050905090565b600080546001600160a01b031633146109915760405162461bcd60e51b815260040161098890612ec7565b60405180910390fd5b506001600160a01b03811660009081526001602052604090205460ff165b919050565b60006109bf82611c38565b6109db5760405162461bcd60e51b815260040161098890612efc565b506000908152600560205260409020546001600160a01b031690565b6000610a02826113fd565b9050806001600160a01b0316836001600160a01b03161415610a705760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610988565b336001600160a01b0382161480610a8c5750610a8c8133610852565b610afe5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610988565b610b088383611c82565b505050565b6001601054610100900460ff166002811115610b2b57610b2b612be4565b1015610b6e5760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610988565b600d5433600090815260136020526040902054610b8b9085612f55565b1115610bd95760405162461bcd60e51b815260206004820152601f60248201527f4f7264657220657863656564732070726573616c6520616c6c6f77616e6365006044820152606401610988565b6000610be460045490565b600b54909150610bf48583612f55565b1115610c125760405162461bcd60e51b815260040161098890612f6d565b3360009081526017602052604090205460ff1615610c7a5783600e54610c389190612fa4565b341015610c575760405162461bcd60e51b815260040161098890612fc3565b60105460ff1615610c7557610c75610c6e85611cf0565b8484611df6565b610d7a565b83600f54610c889190612fa4565b341015610ca75760405162461bcd60e51b815260040161098890612fc3565b6020821015610d63576009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cf9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1d9190612ff0565b11610c755760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81b9bdd08185d5d1a1bdc9a5e995960521b6044820152606401610988565b60105460ff1615610d7a57610d7a610c6e85611cf0565b33600090815260136020526040902054610d95908590612f55565b336000908152601360205260408120919091555b84811015610dc957610dc13383806001019450611ea6565b600101610da9565b5050505050565b610dda3382611f22565b610df65760405162461bcd60e51b815260040161098890613009565b610b08838383611fc3565b60008060005b600454811015610e705760048181548110610e2457610e2461305a565b6000918252602090912001546001600160a01b0386811691161415610e605783821415610e545791506108c59050565b610e5d82613070565b91505b610e6981613070565b9050610e07565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610988565b3360009081526001602052604090205460ff16610efc5760405162461bcd60e51b81526004016109889061308b565b600454811015610f655760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b6064820152608401610988565b81600a5414610f7457600a8290555b80600b5414610f8357600b8190555b5050565b3360009081526001602052604090205460ff16610fb65760405162461bcd60e51b81526004016109889061308b565b60004711610fc357600080fd5b4760005b601554811015610f835760158181548110610fe457610fe461305a565b600091825260209091200154601680546001600160a01b03909216916108fc9190849081106110155761101561305a565b906000526020600020015460648561102d91906130cb565b6110379190612fa4565b6040518115909202916000818181858888f1935050505061105757600080fd5b8061106181613070565b915050610fc7565b60606108c58261108f565b610b0883838360405180602001604052806000815250611930565b6060600061109c836114e6565b90506000808267ffffffffffffffff8111156110ba576110ba612d70565b6040519080825280602002602001820160405280156110e3578160200160208202803683370190505b50905060005b60045481101561116c57600481815481106111065761110661305a565b6000918252602090912001546001600160a01b038781169116141561115c5780828461113181613070565b9550815181106111435761114361305a565b6020026020010181815250508383141561115c5761116c565b61116581613070565b90506110e9565b50949350505050565b3360009081526001602052604090205460ff166111a45760405162461bcd60e51b81526004016109889061308b565b60165483146112085760405162461bcd60e51b815260206004820152602a60248201527f4d69736d617463686564206e756d626572206f6620616464726573736573206160448201526937321039b83634ba399760b11b6064820152608401610988565b61121460158585612724565b50610dc960168383612783565b6000546001600160a01b0316331461124b5760405162461bcd60e51b815260040161098890612ec7565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b3360009081526001602052604090205460ff166112a55760405162461bcd60e51b81526004016109889061308b565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b8281101561133c57846001600160a01b031660048585848181106112f1576112f161305a565b90506020020135815481106113085761130861305a565b6000918252602090912001546001600160a01b03161461132c576000915050611342565b61133581613070565b90506112cb565b50600190505b9392505050565b600454600090821061136d5760405162461bcd60e51b815260040161098890612efc565b5090565b3360009081526001602052604090205460ff166113a05760405162461bcd60e51b81526004016109889061308b565b8060028111156113b2576113b2612be4565b601054610100900460ff1660028111156113ce576113ce612be4565b146113fa576010805482919061ff0019166101008360028111156113f4576113f4612be4565b02179055505b50565b600061140882611c38565b6114245760405162461bcd60e51b815260040161098890612efc565b600482815481106114375761143761305a565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff166114815760405162461bcd60e51b81526004016109889061308b565b61148d601185856127be565b50610dc9601283836127be565b6000546001600160a01b031633146114c45760405162461bcd60e51b815260040161098890612ec7565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166115515760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610988565b6000805b6004548110156115ad57600481815481106115725761157261305a565b6000918252602090912001546001600160a01b038581169116141561159d5761159a82613070565b91505b6115a681613070565b9050611555565b5092915050565b6000546001600160a01b031633146115de5760405162461bcd60e51b815260040161098890612ec7565b6115e86000612119565b565b3360009081526001602052604090205460ff166116195760405162461bcd60e51b81526004016109889061308b565b60105460ff161515811515146113fa576010805482151560ff1990911617905550565b6000546001600160a01b031633146116665760405162461bcd60e51b815260040161098890612ec7565b610b08600783836127be565b3360009081526001602052604090205460ff166116a15760405162461bcd60e51b81526004016109889061308b565b80600c54146113fa57600c55565b6060600380546108da90612e8c565b6002601054610100900460ff1660028111156116dc576116dc612be4565b146117225760405162461bcd60e51b81526020600482015260166024820152755075626c69632073616c65206e6f742061637469766560501b6044820152606401610988565b600a548111156117645760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610988565b600061176f60045490565b600b5490915061177f8383612f55565b111561179d5760405162461bcd60e51b815260040161098890612f6d565b81600c546117ab9190612fa4565b3410156117ca5760405162461bcd60e51b815260040161098890612fc3565b60005b82811015610b08576117e53383806001019450611ea6565b6001016117cd565b6001600160a01b0382163314156118465760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610988565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b838110156119275761191787878787858181106118d4576118d461305a565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061193092505050565b61192081613070565b90506118b5565b50505050505050565b61193a3383611f22565b6119565760405162461bcd60e51b815260040161098890613009565b61196284848484612169565b50505050565b606061197382611c38565b6119d75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610988565b60116119e283611cf0565b60126040516020016119f693929190613179565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff16611a3b5760405162461bcd60e51b81526004016109889061308b565b828114611a9f5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610988565b600080611aab60045490565b905060005b85811015611af057868682818110611aca57611aca61305a565b9050602002013583611adc9190612f55565b925080611ae881613070565b915050611ab0565b50600b54611afe8383612f55565b1115611b1c5760405162461bcd60e51b815260040161098890612f6d565b60005b838110156119275760005b878783818110611b3c57611b3c61305a565b90506020020135811015611b8657611b7e868684818110611b5f57611b5f61305a565b9050602002016020810190611b7491906128fb565b6001850194611ea6565b600101611b2a565b50600101611b1f565b6000546001600160a01b03163314611bb95760405162461bcd60e51b815260040161098890612ec7565b6001600160a01b0381166000908152600160208190526040909120805460ff191690911790556113fa8161219c565b60006001600160e01b031982166380ac58cd60e01b1480611c1957506001600160e01b03198216635b5e139f60e01b145b806108c557506301ffc9a760e01b6001600160e01b03198316146108c5565b600454600090821080156108c5575060006001600160a01b031660048381548110611c6557611c6561305a565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cb7826113fd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606081611d145750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d3e5780611d2881613070565b9150611d379050600a836130cb565b9150611d18565b60008167ffffffffffffffff811115611d5957611d59612d70565b6040519080825280601f01601f191660200182016040528015611d83576020820181803683370190505b5090505b8415611dee57611d986001836131ac565b9150611da5600a866131c3565b611db0906030612f55565b60f81b818381518110611dc557611dc561305a565b60200101906001600160f81b031916908160001a905350611de7600a866130cb565b9450611d87565b949350505050565b6000611e40611e0485612234565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061226b92505050565b9050611e5a816008546001600160a01b0391821691161490565b6119625760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610988565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611f2d82611c38565b611f495760405162461bcd60e51b815260040161098890612efc565b6000611f54836113fd565b9050806001600160a01b0316846001600160a01b03161480611f8f5750836001600160a01b0316611f84846109b4565b6001600160a01b0316145b80611dee57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16611dee565b826001600160a01b0316611fd6826113fd565b6001600160a01b03161461203e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610988565b6001600160a01b0382166120a05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610988565b6120ab600082611c82565b81600482815481106120bf576120bf61305a565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612174848484611fc3565b61218084848484612280565b6119625760405162461bcd60e51b8152600401610988906131d7565b6000546001600160a01b031633146121c65760405162461bcd60e51b815260040161098890612ec7565b6001600160a01b03811661222b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610988565b6113fa81612119565b6000303383600760405160200161224e9493929190613229565b604051602081830303815290604052805190602001209050919050565b60006113428261227a8561237e565b906123b9565b60006001600160a01b0384163b1561237357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122c490339089908890889060040161326f565b6020604051808303816000875af19250505080156122ff575060408051601f3d908101601f191682019092526122fc918101906132ac565b60015b612359573d80801561232d576040519150601f19603f3d011682016040523d82523d6000602084013e612332565b606091505b5080516123515760405162461bcd60e51b8152600401610988906131d7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611dee565b506001949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0161224e565b60008060006123c885856123dd565b915091506123d58161244d565b509392505050565b6000808251604114156124145760208301516040840151606085015160001a61240887828585612608565b94509450505050612446565b82516040141561243e57602083015160408401516124338683836126f5565b935093505050612446565b506000905060025b9250929050565b600081600481111561246157612461612be4565b141561246a5750565b600181600481111561247e5761247e612be4565b14156124cc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610988565b60028160048111156124e0576124e0612be4565b141561252e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610988565b600381600481111561254257612542612be4565b141561259b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610988565b60048160048111156125af576125af612be4565b14156113fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610988565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561263f57506000905060036126ec565b8460ff16601b1415801561265757508460ff16601c14155b1561266857506000905060046126ec565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126bc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126e5576000600192509250506126ec565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161271687828885612608565b935093505050935093915050565b828054828255906000526020600020908101928215612777579160200282015b828111156127775781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612744565b5061136d929150612831565b828054828255906000526020600020908101928215612777579160200282015b828111156127775782358255916020019190600101906127a3565b8280546127ca90612e8c565b90600052602060002090601f0160209004810192826127ec5760008555612777565b82601f106128055782800160ff19823516178555612777565b8280016001018555821561277757918201828111156127775782358255916020019190600101906127a3565b5b8082111561136d5760008155600101612832565b6001600160e01b0319811681146113fa57600080fd5b60006020828403121561286e57600080fd5b813561134281612846565b60005b8381101561289457818101518382015260200161287c565b838111156119625750506000910152565b600081518084526128bd816020860160208601612879565b601f01601f19169290920160200192915050565b60208152600061134260208301846128a5565b80356001600160a01b03811681146109af57600080fd5b60006020828403121561290d57600080fd5b611342826128e4565b60006020828403121561292857600080fd5b5035919050565b6000806040838503121561294257600080fd5b61294b836128e4565b946020939093013593505050565b60008083601f84011261296b57600080fd5b50813567ffffffffffffffff81111561298357600080fd5b60208301915083602082850101111561244657600080fd5b6000806000604084860312156129b057600080fd5b83359250602084013567ffffffffffffffff8111156129ce57600080fd5b6129da86828701612959565b9497909650939450505050565b6000806000606084860312156129fc57600080fd5b612a05846128e4565b9250612a13602085016128e4565b9150604084013590509250925092565b60008060408385031215612a3657600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015612a7d57835183529284019291840191600101612a61565b50909695505050505050565b60008083601f840112612a9b57600080fd5b50813567ffffffffffffffff811115612ab357600080fd5b6020830191508360208260051b850101111561244657600080fd5b60008060008060408587031215612ae457600080fd5b843567ffffffffffffffff80821115612afc57600080fd5b612b0888838901612a89565b90965094506020870135915080821115612b2157600080fd5b50612b2e87828801612a89565b95989497509550505050565b803580151581146109af57600080fd5b60008060408385031215612b5d57600080fd5b612b66836128e4565b9150612b7460208401612b3a565b90509250929050565b600080600060408486031215612b9257600080fd5b612b9b846128e4565b9250602084013567ffffffffffffffff811115612bb757600080fd5b6129da86828701612a89565b600060208284031215612bd557600080fd5b81356003811061134257600080fd5b634e487b7160e01b600052602160045260246000fd5b6020810160038310612c1c57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060008060408587031215612c3857600080fd5b843567ffffffffffffffff80821115612c5057600080fd5b612c5c88838901612959565b90965094506020870135915080821115612c7557600080fd5b50612b2e87828801612959565b600060208284031215612c9457600080fd5b61134282612b3a565b60008060208385031215612cb057600080fd5b823567ffffffffffffffff811115612cc757600080fd5b612cd385828601612959565b90969095509350505050565b60008060008060008060808789031215612cf857600080fd5b612d01876128e4565b9550612d0f602088016128e4565b9450604087013567ffffffffffffffff80821115612d2c57600080fd5b612d388a838b01612a89565b90965094506060890135915080821115612d5157600080fd5b50612d5e89828a01612959565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612d9c57600080fd5b612da5856128e4565b9350612db3602086016128e4565b925060408501359150606085013567ffffffffffffffff80821115612dd757600080fd5b818701915087601f830112612deb57600080fd5b813581811115612dfd57612dfd612d70565b604051601f8201601f19908116603f01168101908382118183101715612e2557612e25612d70565b816040528281528a6020848701011115612e3e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612e7557600080fd5b612e7e836128e4565b9150612b74602084016128e4565b600181811c90821680612ea057607f821691505b60208210811415612ec157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60408201526235b2b760e91b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f6857612f68612f3f565b500190565b60208082526019908201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604082015260600190565b6000816000190483118215151615612fbe57612fbe612f3f565b500290565b602080825260139082015272139bdd08195b9bdd59da08115512081cd95b9d606a1b604082015260600190565b60006020828403121561300257600080fd5b5051919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561308457613084612f3f565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826130da576130da6130b5565b500490565b8054600090600181811c90808316806130f957607f831692505b602080841082141561311b57634e487b7160e01b600052602260045260246000fd5b81801561312f57600181146131405761316d565b60ff1986168952848901965061316d565b60008881526020902060005b868110156131655781548b82015290850190830161314c565b505084890196505b50505050505092915050565b600061318582866130df565b8451613195818360208901612879565b6131a1818301866130df565b979650505050505050565b6000828210156131be576131be612f3f565b500390565b6000826131d2576131d26130b5565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006bffffffffffffffffffffffff19808760601b168352808660601b166014840152508351613260816028850160208801612879565b6131a1602882850101856130df565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132a2908301846128a5565b9695505050505050565b6000602082840312156132be57600080fd5b81516113428161284656fea2646970667358221220be5f50a5d54c1894b0ffb4d2fd5d295672d95a6685f669062b7405f44b01d56964736f6c634300080c0033

Deployed Bytecode

0x60806040526004361061027f5760003560e01c806350c5a00c1161014e5780638da5cb5b116100bb578063b534a5c411610077578063b534a5c4146107c4578063b88d4fde146107e4578063c87b56dd14610804578063e966d51214610824578063e985e9c514610837578063f2fde38b1461088057005b80638da5cb5b1461072857806391b7f5ed1461074657806395d89b4114610766578063a0712d681461077b578063a22cb4651461078e578063b0923277146107ae57005b80636c19e7831161010a5780636c19e7831461067d57806370a082311461069d578063715018a6146106bd57806372f10ff4146106d25780637ed6c926146106f25780638d859f3e1461071257005b806350c5a00c146105ae5780635ed26cc7146105c4578063603f4d52146105e45780636352211e1461061057806367273c3e146106305780636790a9de1461065d57005b80632f745c59116101ec578063438b6300116101a8578063438b6300146104ee57806349231c4e1461050e5780634a994eef1461052e5780634cb6be451461054e5780634d44660c1461056e5780634f6ccce71461058e57005b80632f745c591461043657806332cb6b0c146104565780633b91ceef1461046c5780633ccfd60b1461048c57806340398d67146104a157806342842e0e146104ce57005b80630d36b5321161023b5780630d36b5321461036a5780630f7596ad1461038e57806318160ddd146103be57806319d5398e146103d357806323b872dd146104005780632c6904bc1461042057005b806301ffc9a71461028857806306fdde03146102bd57806307779627146102df578063081812fc146102ff578063095ea7b3146103375780630d06ed721461035757005b3661028657005b005b34801561029457600080fd5b506102a86102a336600461285c565b6108a0565b60405190151581526020015b60405180910390f35b3480156102c957600080fd5b506102d26108cb565b6040516102b491906128d1565b3480156102eb57600080fd5b506102a86102fa3660046128fb565b61095d565b34801561030b57600080fd5b5061031f61031a366004612916565b6109b4565b6040516001600160a01b0390911681526020016102b4565b34801561034357600080fd5b5061028661035236600461292f565b6109f7565b61028661036536600461299b565b610b0d565b34801561037657600080fd5b50610380600e5481565b6040519081526020016102b4565b34801561039a57600080fd5b506102a86103a93660046128fb565b60176020526000908152604090205460ff1681565b3480156103ca57600080fd5b50600454610380565b3480156103df57600080fd5b506103806103ee3660046128fb565b60136020526000908152604090205481565b34801561040c57600080fd5b5061028661041b3660046129e7565b610dd0565b34801561042c57600080fd5b50610380600d5481565b34801561044257600080fd5b5061038061045136600461292f565b610e01565b34801561046257600080fd5b50610380600b5481565b34801561047857600080fd5b50610286610487366004612a23565b610ecd565b34801561049857600080fd5b50610286610f87565b3480156104ad57600080fd5b506104c16104bc3660046128fb565b611069565b6040516102b49190612a45565b3480156104da57600080fd5b506102866104e93660046129e7565b611074565b3480156104fa57600080fd5b506104c16105093660046128fb565b61108f565b34801561051a57600080fd5b50610286610529366004612ace565b611175565b34801561053a57600080fd5b50610286610549366004612b4a565b611221565b34801561055a57600080fd5b506102866105693660046128fb565b611276565b34801561057a57600080fd5b506102a8610589366004612b7d565b6112c7565b34801561059a57600080fd5b506103806105a9366004612916565b611349565b3480156105ba57600080fd5b50610380600a5481565b3480156105d057600080fd5b506102866105df366004612bc3565b611371565b3480156105f057600080fd5b5060105461060390610100900460ff1681565b6040516102b49190612bfa565b34801561061c57600080fd5b5061031f61062b366004612916565b6113fd565b34801561063c57600080fd5b5061038061064b366004612916565b60146020526000908152604090205481565b34801561066957600080fd5b50610286610678366004612c22565b611452565b34801561068957600080fd5b506102866106983660046128fb565b61149a565b3480156106a957600080fd5b506103806106b83660046128fb565b6114e6565b3480156106c957600080fd5b506102866115b4565b3480156106de57600080fd5b506102866106ed366004612c82565b6115ea565b3480156106fe57600080fd5b5061028661070d366004612c9d565b61163c565b34801561071e57600080fd5b50610380600c5481565b34801561073457600080fd5b506000546001600160a01b031661031f565b34801561075257600080fd5b50610286610761366004612916565b611672565b34801561077257600080fd5b506102d26116af565b610286610789366004612916565b6116be565b34801561079a57600080fd5b506102866107a9366004612b4a565b6117ed565b3480156107ba57600080fd5b50610380600f5481565b3480156107d057600080fd5b506102866107df366004612cdf565b6118b2565b3480156107f057600080fd5b506102866107ff366004612d86565b611930565b34801561081057600080fd5b506102d261081f366004612916565b611968565b610286610832366004612ace565b611a0c565b34801561084357600080fd5b506102a8610852366004612e62565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561088c57600080fd5b5061028661089b3660046128fb565b611b8f565b60006001600160e01b0319821663780e9d6360e01b14806108c557506108c582611be8565b92915050565b6060600280546108da90612e8c565b80601f016020809104026020016040519081016040528092919081815260200182805461090690612e8c565b80156109535780601f1061092857610100808354040283529160200191610953565b820191906000526020600020905b81548152906001019060200180831161093657829003601f168201915b5050505050905090565b600080546001600160a01b031633146109915760405162461bcd60e51b815260040161098890612ec7565b60405180910390fd5b506001600160a01b03811660009081526001602052604090205460ff165b919050565b60006109bf82611c38565b6109db5760405162461bcd60e51b815260040161098890612efc565b506000908152600560205260409020546001600160a01b031690565b6000610a02826113fd565b9050806001600160a01b0316836001600160a01b03161415610a705760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610988565b336001600160a01b0382161480610a8c5750610a8c8133610852565b610afe5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610988565b610b088383611c82565b505050565b6001601054610100900460ff166002811115610b2b57610b2b612be4565b1015610b6e5760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610988565b600d5433600090815260136020526040902054610b8b9085612f55565b1115610bd95760405162461bcd60e51b815260206004820152601f60248201527f4f7264657220657863656564732070726573616c6520616c6c6f77616e6365006044820152606401610988565b6000610be460045490565b600b54909150610bf48583612f55565b1115610c125760405162461bcd60e51b815260040161098890612f6d565b3360009081526017602052604090205460ff1615610c7a5783600e54610c389190612fa4565b341015610c575760405162461bcd60e51b815260040161098890612fc3565b60105460ff1615610c7557610c75610c6e85611cf0565b8484611df6565b610d7a565b83600f54610c889190612fa4565b341015610ca75760405162461bcd60e51b815260040161098890612fc3565b6020821015610d63576009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cf9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1d9190612ff0565b11610c755760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81b9bdd08185d5d1a1bdc9a5e995960521b6044820152606401610988565b60105460ff1615610d7a57610d7a610c6e85611cf0565b33600090815260136020526040902054610d95908590612f55565b336000908152601360205260408120919091555b84811015610dc957610dc13383806001019450611ea6565b600101610da9565b5050505050565b610dda3382611f22565b610df65760405162461bcd60e51b815260040161098890613009565b610b08838383611fc3565b60008060005b600454811015610e705760048181548110610e2457610e2461305a565b6000918252602090912001546001600160a01b0386811691161415610e605783821415610e545791506108c59050565b610e5d82613070565b91505b610e6981613070565b9050610e07565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610988565b3360009081526001602052604090205460ff16610efc5760405162461bcd60e51b81526004016109889061308b565b600454811015610f655760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b6064820152608401610988565b81600a5414610f7457600a8290555b80600b5414610f8357600b8190555b5050565b3360009081526001602052604090205460ff16610fb65760405162461bcd60e51b81526004016109889061308b565b60004711610fc357600080fd5b4760005b601554811015610f835760158181548110610fe457610fe461305a565b600091825260209091200154601680546001600160a01b03909216916108fc9190849081106110155761101561305a565b906000526020600020015460648561102d91906130cb565b6110379190612fa4565b6040518115909202916000818181858888f1935050505061105757600080fd5b8061106181613070565b915050610fc7565b60606108c58261108f565b610b0883838360405180602001604052806000815250611930565b6060600061109c836114e6565b90506000808267ffffffffffffffff8111156110ba576110ba612d70565b6040519080825280602002602001820160405280156110e3578160200160208202803683370190505b50905060005b60045481101561116c57600481815481106111065761110661305a565b6000918252602090912001546001600160a01b038781169116141561115c5780828461113181613070565b9550815181106111435761114361305a565b6020026020010181815250508383141561115c5761116c565b61116581613070565b90506110e9565b50949350505050565b3360009081526001602052604090205460ff166111a45760405162461bcd60e51b81526004016109889061308b565b60165483146112085760405162461bcd60e51b815260206004820152602a60248201527f4d69736d617463686564206e756d626572206f6620616464726573736573206160448201526937321039b83634ba399760b11b6064820152608401610988565b61121460158585612724565b50610dc960168383612783565b6000546001600160a01b0316331461124b5760405162461bcd60e51b815260040161098890612ec7565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b3360009081526001602052604090205460ff166112a55760405162461bcd60e51b81526004016109889061308b565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b8281101561133c57846001600160a01b031660048585848181106112f1576112f161305a565b90506020020135815481106113085761130861305a565b6000918252602090912001546001600160a01b03161461132c576000915050611342565b61133581613070565b90506112cb565b50600190505b9392505050565b600454600090821061136d5760405162461bcd60e51b815260040161098890612efc565b5090565b3360009081526001602052604090205460ff166113a05760405162461bcd60e51b81526004016109889061308b565b8060028111156113b2576113b2612be4565b601054610100900460ff1660028111156113ce576113ce612be4565b146113fa576010805482919061ff0019166101008360028111156113f4576113f4612be4565b02179055505b50565b600061140882611c38565b6114245760405162461bcd60e51b815260040161098890612efc565b600482815481106114375761143761305a565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff166114815760405162461bcd60e51b81526004016109889061308b565b61148d601185856127be565b50610dc9601283836127be565b6000546001600160a01b031633146114c45760405162461bcd60e51b815260040161098890612ec7565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166115515760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610988565b6000805b6004548110156115ad57600481815481106115725761157261305a565b6000918252602090912001546001600160a01b038581169116141561159d5761159a82613070565b91505b6115a681613070565b9050611555565b5092915050565b6000546001600160a01b031633146115de5760405162461bcd60e51b815260040161098890612ec7565b6115e86000612119565b565b3360009081526001602052604090205460ff166116195760405162461bcd60e51b81526004016109889061308b565b60105460ff161515811515146113fa576010805482151560ff1990911617905550565b6000546001600160a01b031633146116665760405162461bcd60e51b815260040161098890612ec7565b610b08600783836127be565b3360009081526001602052604090205460ff166116a15760405162461bcd60e51b81526004016109889061308b565b80600c54146113fa57600c55565b6060600380546108da90612e8c565b6002601054610100900460ff1660028111156116dc576116dc612be4565b146117225760405162461bcd60e51b81526020600482015260166024820152755075626c69632073616c65206e6f742061637469766560501b6044820152606401610988565b600a548111156117645760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610988565b600061176f60045490565b600b5490915061177f8383612f55565b111561179d5760405162461bcd60e51b815260040161098890612f6d565b81600c546117ab9190612fa4565b3410156117ca5760405162461bcd60e51b815260040161098890612fc3565b60005b82811015610b08576117e53383806001019450611ea6565b6001016117cd565b6001600160a01b0382163314156118465760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610988565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b838110156119275761191787878787858181106118d4576118d461305a565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061193092505050565b61192081613070565b90506118b5565b50505050505050565b61193a3383611f22565b6119565760405162461bcd60e51b815260040161098890613009565b61196284848484612169565b50505050565b606061197382611c38565b6119d75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610988565b60116119e283611cf0565b60126040516020016119f693929190613179565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff16611a3b5760405162461bcd60e51b81526004016109889061308b565b828114611a9f5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610988565b600080611aab60045490565b905060005b85811015611af057868682818110611aca57611aca61305a565b9050602002013583611adc9190612f55565b925080611ae881613070565b915050611ab0565b50600b54611afe8383612f55565b1115611b1c5760405162461bcd60e51b815260040161098890612f6d565b60005b838110156119275760005b878783818110611b3c57611b3c61305a565b90506020020135811015611b8657611b7e868684818110611b5f57611b5f61305a565b9050602002016020810190611b7491906128fb565b6001850194611ea6565b600101611b2a565b50600101611b1f565b6000546001600160a01b03163314611bb95760405162461bcd60e51b815260040161098890612ec7565b6001600160a01b0381166000908152600160208190526040909120805460ff191690911790556113fa8161219c565b60006001600160e01b031982166380ac58cd60e01b1480611c1957506001600160e01b03198216635b5e139f60e01b145b806108c557506301ffc9a760e01b6001600160e01b03198316146108c5565b600454600090821080156108c5575060006001600160a01b031660048381548110611c6557611c6561305a565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cb7826113fd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606081611d145750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d3e5780611d2881613070565b9150611d379050600a836130cb565b9150611d18565b60008167ffffffffffffffff811115611d5957611d59612d70565b6040519080825280601f01601f191660200182016040528015611d83576020820181803683370190505b5090505b8415611dee57611d986001836131ac565b9150611da5600a866131c3565b611db0906030612f55565b60f81b818381518110611dc557611dc561305a565b60200101906001600160f81b031916908160001a905350611de7600a866130cb565b9450611d87565b949350505050565b6000611e40611e0485612234565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061226b92505050565b9050611e5a816008546001600160a01b0391821691161490565b6119625760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610988565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611f2d82611c38565b611f495760405162461bcd60e51b815260040161098890612efc565b6000611f54836113fd565b9050806001600160a01b0316846001600160a01b03161480611f8f5750836001600160a01b0316611f84846109b4565b6001600160a01b0316145b80611dee57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16611dee565b826001600160a01b0316611fd6826113fd565b6001600160a01b03161461203e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610988565b6001600160a01b0382166120a05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610988565b6120ab600082611c82565b81600482815481106120bf576120bf61305a565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612174848484611fc3565b61218084848484612280565b6119625760405162461bcd60e51b8152600401610988906131d7565b6000546001600160a01b031633146121c65760405162461bcd60e51b815260040161098890612ec7565b6001600160a01b03811661222b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610988565b6113fa81612119565b6000303383600760405160200161224e9493929190613229565b604051602081830303815290604052805190602001209050919050565b60006113428261227a8561237e565b906123b9565b60006001600160a01b0384163b1561237357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122c490339089908890889060040161326f565b6020604051808303816000875af19250505080156122ff575060408051601f3d908101601f191682019092526122fc918101906132ac565b60015b612359573d80801561232d576040519150601f19603f3d011682016040523d82523d6000602084013e612332565b606091505b5080516123515760405162461bcd60e51b8152600401610988906131d7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611dee565b506001949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0161224e565b60008060006123c885856123dd565b915091506123d58161244d565b509392505050565b6000808251604114156124145760208301516040840151606085015160001a61240887828585612608565b94509450505050612446565b82516040141561243e57602083015160408401516124338683836126f5565b935093505050612446565b506000905060025b9250929050565b600081600481111561246157612461612be4565b141561246a5750565b600181600481111561247e5761247e612be4565b14156124cc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610988565b60028160048111156124e0576124e0612be4565b141561252e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610988565b600381600481111561254257612542612be4565b141561259b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610988565b60048160048111156125af576125af612be4565b14156113fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610988565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561263f57506000905060036126ec565b8460ff16601b1415801561265757508460ff16601c14155b1561266857506000905060046126ec565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126bc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126e5576000600192509250506126ec565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161271687828885612608565b935093505050935093915050565b828054828255906000526020600020908101928215612777579160200282015b828111156127775781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612744565b5061136d929150612831565b828054828255906000526020600020908101928215612777579160200282015b828111156127775782358255916020019190600101906127a3565b8280546127ca90612e8c565b90600052602060002090601f0160209004810192826127ec5760008555612777565b82601f106128055782800160ff19823516178555612777565b8280016001018555821561277757918201828111156127775782358255916020019190600101906127a3565b5b8082111561136d5760008155600101612832565b6001600160e01b0319811681146113fa57600080fd5b60006020828403121561286e57600080fd5b813561134281612846565b60005b8381101561289457818101518382015260200161287c565b838111156119625750506000910152565b600081518084526128bd816020860160208601612879565b601f01601f19169290920160200192915050565b60208152600061134260208301846128a5565b80356001600160a01b03811681146109af57600080fd5b60006020828403121561290d57600080fd5b611342826128e4565b60006020828403121561292857600080fd5b5035919050565b6000806040838503121561294257600080fd5b61294b836128e4565b946020939093013593505050565b60008083601f84011261296b57600080fd5b50813567ffffffffffffffff81111561298357600080fd5b60208301915083602082850101111561244657600080fd5b6000806000604084860312156129b057600080fd5b83359250602084013567ffffffffffffffff8111156129ce57600080fd5b6129da86828701612959565b9497909650939450505050565b6000806000606084860312156129fc57600080fd5b612a05846128e4565b9250612a13602085016128e4565b9150604084013590509250925092565b60008060408385031215612a3657600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015612a7d57835183529284019291840191600101612a61565b50909695505050505050565b60008083601f840112612a9b57600080fd5b50813567ffffffffffffffff811115612ab357600080fd5b6020830191508360208260051b850101111561244657600080fd5b60008060008060408587031215612ae457600080fd5b843567ffffffffffffffff80821115612afc57600080fd5b612b0888838901612a89565b90965094506020870135915080821115612b2157600080fd5b50612b2e87828801612a89565b95989497509550505050565b803580151581146109af57600080fd5b60008060408385031215612b5d57600080fd5b612b66836128e4565b9150612b7460208401612b3a565b90509250929050565b600080600060408486031215612b9257600080fd5b612b9b846128e4565b9250602084013567ffffffffffffffff811115612bb757600080fd5b6129da86828701612a89565b600060208284031215612bd557600080fd5b81356003811061134257600080fd5b634e487b7160e01b600052602160045260246000fd5b6020810160038310612c1c57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060008060408587031215612c3857600080fd5b843567ffffffffffffffff80821115612c5057600080fd5b612c5c88838901612959565b90965094506020870135915080821115612c7557600080fd5b50612b2e87828801612959565b600060208284031215612c9457600080fd5b61134282612b3a565b60008060208385031215612cb057600080fd5b823567ffffffffffffffff811115612cc757600080fd5b612cd385828601612959565b90969095509350505050565b60008060008060008060808789031215612cf857600080fd5b612d01876128e4565b9550612d0f602088016128e4565b9450604087013567ffffffffffffffff80821115612d2c57600080fd5b612d388a838b01612a89565b90965094506060890135915080821115612d5157600080fd5b50612d5e89828a01612959565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612d9c57600080fd5b612da5856128e4565b9350612db3602086016128e4565b925060408501359150606085013567ffffffffffffffff80821115612dd757600080fd5b818701915087601f830112612deb57600080fd5b813581811115612dfd57612dfd612d70565b604051601f8201601f19908116603f01168101908382118183101715612e2557612e25612d70565b816040528281528a6020848701011115612e3e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612e7557600080fd5b612e7e836128e4565b9150612b74602084016128e4565b600181811c90821680612ea057607f821691505b60208210811415612ec157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60408201526235b2b760e91b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f6857612f68612f3f565b500190565b60208082526019908201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604082015260600190565b6000816000190483118215151615612fbe57612fbe612f3f565b500290565b602080825260139082015272139bdd08195b9bdd59da08115512081cd95b9d606a1b604082015260600190565b60006020828403121561300257600080fd5b5051919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561308457613084612f3f565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826130da576130da6130b5565b500490565b8054600090600181811c90808316806130f957607f831692505b602080841082141561311b57634e487b7160e01b600052602260045260246000fd5b81801561312f57600181146131405761316d565b60ff1986168952848901965061316d565b60008881526020902060005b868110156131655781548b82015290850190830161314c565b505084890196505b50505050505092915050565b600061318582866130df565b8451613195818360208901612879565b6131a1818301866130df565b979650505050505050565b6000828210156131be576131be612f3f565b500390565b6000826131d2576131d26130b5565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006bffffffffffffffffffffffff19808760601b168352808660601b166014840152508351613260816028850160208801612879565b6131a1602882850101856130df565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132a2908301846128a5565b9695505050505050565b6000602082840312156132be57600080fd5b81516113428161284656fea2646970667358221220be5f50a5d54c1894b0ffb4d2fd5d295672d95a6685f669062b7405f44b01d56964736f6c634300080c0033

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.