ETH Price: $3,095.86 (+0.92%)
Gas: 15 Gwei

Token

ape mfer comic (apemfercomic)
 

Overview

Max Total Supply

1,762 apemfercomic

Holders

692

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 apemfercomic
0xdf753d60dd9e4da3ccc8e7db86212eed5c545cdd
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

where ape mfers and adventures come together. ape mfer comics by apetoshi. free claim with your $JUNGLE and ape mfer.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
apemferscomic

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : apemferscomic.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "./ERC721Enumerable.sol";

contract apemferscomic is ERC721Enumerable, Ownable {
    string public baseURI;
    address public jungle;
    address public withdrawAddress;

    bool public publicSaleState = false;
    uint256 public MAX_SUPPLY = 8889;
    bytes32 public proofMerkleRoot = 0x0;

    mapping(address => bool) public projectProxy;
    mapping(uint16 => bool) public apeMfersClaimed;

    uint256 private price = 888 ether;

    constructor(string memory _baseURI, address _withdrawAddress)
        ERC721("ape mfer comic", "apemfercomic")
    {
        baseURI = _baseURI;
        withdrawAddress = _withdrawAddress;
    }

    function setJungleAddress(address _jungle ) public onlyOwner {
        jungle = _jungle;
        return;
    }

    function setBaseURI(string memory _baseURI) public onlyOwner {
        baseURI = _baseURI;
    }

    function flipProxyState(address proxyAddress) public onlyOwner {
        projectProxy[proxyAddress] = !projectProxy[proxyAddress];
    }

    function togglePublicSale() external onlyOwner {
        publicSaleState = true;
    }

    function setmRoot(bytes32 _root)
        external
        onlyOwner
    {
        proofMerkleRoot = _root;
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "Token does not exist.");
        return string(abi.encodePacked(baseURI, Strings.toString(_tokenId)));
    }

    function publicMint( uint16 apeMferId, bytes32 l_s , bytes32[] calldata proof) public payable {
        require(apeMfersClaimed[apeMferId] == false, "ape mfer already claimed"); 
        require(publicSaleState == true, "public sale not started");
        // require proof to exist in merkle root
        require(
            MerkleProof.verify(proof, proofMerkleRoot, l_s),
            "wrong proof"
        );
		ERC20Burnable(jungle).burnFrom(msg.sender, price);
        uint256 totalSupply = _owners.length;
        require(totalSupply + 1 < MAX_SUPPLY, "Exceeds max supply.");

        _mint(_msgSender(), totalSupply);
        apeMfersClaimed[apeMferId] = true;
    }

    function burn(uint256 tokenId) public {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "Not approved to burn."
        );
        _burn(tokenId);
    }

    function withdraw() external onlyOwner {
        (bool success, ) = withdrawAddress.call{value: address(this).balance}(
            ""
        );
        require(success, "Failed to send to apetoshi.");
    }

    function walletOfOwner(address _owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) return new uint256[](0);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }

    function batchTransferFrom(
        address _from,
        address _to,
        uint256[] memory _tokenIds
    ) public {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            transferFrom(_from, _to, _tokenIds[i]);
        }
    }

    function batchSafeTransferFrom(
        address _from,
        address _to,
        uint256[] memory _tokenIds,
        bytes memory data_
    ) public {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            safeTransferFrom(_from, _to, _tokenIds[i], data_);
        }
    }

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

        return true;
    }

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

    function setMintPrice(uint256 newPrice) external onlyOwner {
        price = newPrice;
    }
}

contract OwnableDelegateProxy {}

contract OpenSeaProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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

File 4 of 18 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 5 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/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 but rips out the core of the gas-wasting processing that comes from OpenZeppelin.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

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

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

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

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

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

File 6 of 18 : 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 7 of 18 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 8 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 9 of 18 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 10 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./Address.sol";

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    
    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 18 : 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 16 of 18 : 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 17 of 18 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

library Address {
    function isContract(address account) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_withdrawAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"apeMfersClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jungle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proofMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"apeMferId","type":"uint16"},{"internalType":"bytes32","name":"l_s","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_jungle","type":"address"}],"name":"setJungleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setmRoot","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":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","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":"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":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526008805460ff60a01b191690556122b96009556000600a5568302379bf2ca2e00000600d553480156200003657600080fd5b5060405162002b0a38038062002b0a833981016040819052620000599162000252565b604080518082018252600e81526d617065206d66657220636f6d696360901b60208083019182528351808501909452600c84526b6170656d666572636f6d696360a01b908401528151919291620000b39160009162000179565b508051620000c990600190602084019062000179565b505050620000e6620000e06200012360201b60201c565b62000127565b8151620000fb90600690602085019062000179565b50600880546001600160a01b0319166001600160a01b03929092169190911790555062000380565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001879062000343565b90600052602060002090601f016020900481019282620001ab5760008555620001f6565b82601f10620001c657805160ff1916838001178555620001f6565b82800160010185558215620001f6579182015b82811115620001f6578251825591602001919060010190620001d9565b506200020492915062000208565b5090565b5b8082111562000204576000815560010162000209565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200024d57600080fd5b919050565b600080604083850312156200026657600080fd5b82516001600160401b03808211156200027e57600080fd5b818501915085601f8301126200029357600080fd5b815181811115620002a857620002a86200021f565b604051601f8201601f19908116603f01168101908382118183101715620002d357620002d36200021f565b81604052828152602093508884848701011115620002f057600080fd5b600091505b82821015620003145784820184015181830185015290830190620002f5565b82821115620003265760008484830101525b95506200033891505085820162000235565b925050509250929050565b600181811c908216806200035857607f821691505b602082108114156200037a57634e487b7160e01b600052602260045260246000fd5b50919050565b61277a80620003906000396000f3fe60806040526004361061023b5760003560e01c80636352211e1161012e578063a22cb465116100ab578063e985e9c51161006f578063e985e9c5146106a4578063f2fde38b146106ed578063f3993d111461070d578063f4a0a5281461072d578063f73c814b1461074d57600080fd5b8063a22cb465146105ff578063b88d4fde1461061f578063c87b56dd1461063f578063e222c7f91461065f578063e9491f171461067457600080fd5b8063715018a6116100f2578063715018a61461057657806371adc02a1461058b57806379245578146105ac5780638da5cb5b146105cc57806395d89b41146105ea57600080fd5b80636352211e146104ee57806367de06d31461050e578063696406c5146105215780636c0360eb1461054157806370a082311461055657600080fd5b80633ccfd60b116101bc5780634d44660c116101805780634d44660c1461043e5780634f6ccce71461045e57806355f804b31461047e5780635a4fee301461049e5780635bab26e2146104be57600080fd5b80633ccfd60b1461039c57806342842e0e146103b157806342966c68146103d1578063438b6300146103f1578063493a5f8e1461041e57600080fd5b806318160ddd1161020357806318160ddd1461031157806323b872dd146103305780632f745c591461035057806332cb6b0c1461037057806339a4dd991461038657600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf5780631581b600146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611e37565b61076d565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610798565b60405161026c9190611eac565b3480156102a357600080fd5b506102b76102b2366004611ebf565b61082a565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611ef4565b6108b7565b005b3480156102fd57600080fd5b506008546102b7906001600160a01b031681565b34801561031d57600080fd5b506002545b60405190815260200161026c565b34801561033c57600080fd5b506102ef61034b366004611f1e565b6109cd565b34801561035c57600080fd5b5061032261036b366004611ef4565b6109ff565b34801561037c57600080fd5b5061032260095481565b34801561039257600080fd5b50610322600a5481565b3480156103a857600080fd5b506102ef610ab2565b3480156103bd57600080fd5b506102ef6103cc366004611f1e565b610b82565b3480156103dd57600080fd5b506102ef6103ec366004611ebf565b610b9d565b3480156103fd57600080fd5b5061041161040c366004611f5a565b610bf3565b60405161026c9190611f75565b34801561042a57600080fd5b506007546102b7906001600160a01b031681565b34801561044a57600080fd5b50610260610459366004612005565b610cac565b34801561046a57600080fd5b50610322610479366004611ebf565b610d2e565b34801561048a57600080fd5b506102ef6104993660046120f7565b610d9b565b3480156104aa57600080fd5b506102ef6104b93660046121e0565b610ddc565b3480156104ca57600080fd5b506102606104d9366004611f5a565b600b6020526000908152604090205460ff1681565b3480156104fa57600080fd5b506102b7610509366004611ebf565b610e26565b6102ef61051c366004612277565b610eb2565b34801561052d57600080fd5b506102ef61053c366004611ebf565b6110dd565b34801561054d57600080fd5b5061028a61110c565b34801561056257600080fd5b50610322610571366004611f5a565b61119a565b34801561058257600080fd5b506102ef611268565b34801561059757600080fd5b5060085461026090600160a01b900460ff1681565b3480156105b857600080fd5b506102ef6105c7366004611f5a565b61129e565b3480156105d857600080fd5b506005546001600160a01b03166102b7565b3480156105f657600080fd5b5061028a6112e8565b34801561060b57600080fd5b506102ef61061a3660046122d1565b6112f7565b34801561062b57600080fd5b506102ef61063a36600461230d565b6113bc565b34801561064b57600080fd5b5061028a61065a366004611ebf565b6113f4565b34801561066b57600080fd5b506102ef611475565b34801561068057600080fd5b5061026061068f366004612369565b600c6020526000908152604090205460ff1681565b3480156106b057600080fd5b506102606106bf366004612384565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156106f957600080fd5b506102ef610708366004611f5a565b6114b4565b34801561071957600080fd5b506102ef6107283660046123b7565b61154c565b34801561073957600080fd5b506102ef610748366004611ebf565b61158e565b34801561075957600080fd5b506102ef610768366004611f5a565b6115bd565b60006001600160e01b0319821663780e9d6360e01b1480610792575061079282611610565b92915050565b6060600080546107a790612415565b80601f01602080910402602001604051908101604052809291908181526020018280546107d390612415565b80156108205780601f106107f557610100808354040283529160200191610820565b820191906000526020600020905b81548152906001019060200180831161080357829003601f168201915b5050505050905090565b600061083582611660565b61089b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006108c282610e26565b9050806001600160a01b0316836001600160a01b031614156109305760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610892565b336001600160a01b038216148061094c575061094c81336106bf565b6109be5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610892565b6109c883836116aa565b505050565b6109d8335b82611718565b6109f45760405162461bcd60e51b815260040161089290612450565b6109c8838383611802565b6000610a0a8361119a565b8210610a285760405162461bcd60e51b8152600401610892906124a1565b6000805b600254811015610a995760028181548110610a4957610a496124ec565b6000918252602090912001546001600160a01b0386811691161415610a875783821415610a795791506107929050565b81610a8381612518565b9250505b80610a9181612518565b915050610a2c565b5060405162461bcd60e51b8152600401610892906124a1565b6005546001600160a01b03163314610adc5760405162461bcd60e51b815260040161089290612533565b6008546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b29576040519150601f19603f3d011682016040523d82523d6000602084013e610b2e565b606091505b5050905080610b7f5760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f2073656e6420746f20617065746f7368692e00000000006044820152606401610892565b50565b6109c8838383604051806020016040528060008152506113bc565b610ba6336109d2565b610bea5760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b6044820152606401610892565b610b7f81611958565b60606000610c008361119a565b905080610c215760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610c3c57610c3c612058565b604051908082528060200260200182016040528015610c65578160200160208202803683370190505b50905060005b82811015610c1957610c7d85826109ff565b828281518110610c8f57610c8f6124ec565b602090810291909101015280610ca481612518565b915050610c6b565b6000805b82811015610d2157846001600160a01b03166002858584818110610cd657610cd66124ec565b9050602002013581548110610ced57610ced6124ec565b6000918252602090912001546001600160a01b031614610d11576000915050610d27565b610d1a81612518565b9050610cb0565b50600190505b9392505050565b6002546000908210610d975760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610892565b5090565b6005546001600160a01b03163314610dc55760405162461bcd60e51b815260040161089290612533565b8051610dd8906006906020840190611d91565b5050565b60005b8251811015610e1f57610e0d8585858481518110610dff57610dff6124ec565b6020026020010151856113bc565b80610e1781612518565b915050610ddf565b5050505050565b60008060028381548110610e3c57610e3c6124ec565b6000918252602090912001546001600160a01b03169050806107925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610892565b61ffff84166000908152600c602052604090205460ff1615610f165760405162461bcd60e51b815260206004820152601860248201527f617065206d66657220616c726561647920636c61696d656400000000000000006044820152606401610892565b600854600160a01b900460ff161515600114610f745760405162461bcd60e51b815260206004820152601760248201527f7075626c69632073616c65206e6f7420737461727465640000000000000000006044820152606401610892565b610fb582828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508690506119da565b610fef5760405162461bcd60e51b815260206004820152600b60248201526a3bb937b73390383937b7b360a91b6044820152606401610892565b600754600d5460405163079cc67960e41b815233600482015260248101919091526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561103f57600080fd5b505af1158015611053573d6000803e3d6000fd5b5050600254600954909250905061106b826001612568565b106110ae5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610892565b6110b833826119f0565b50505061ffff9091166000908152600c60205260409020805460ff1916600117905550565b6005546001600160a01b031633146111075760405162461bcd60e51b815260040161089290612533565b600a55565b6006805461111990612415565b80601f016020809104026020016040519081016040528092919081815260200182805461114590612415565b80156111925780601f1061116757610100808354040283529160200191611192565b820191906000526020600020905b81548152906001019060200180831161117557829003601f168201915b505050505081565b60006001600160a01b0382166112055760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610892565b6000805b6002548110156112615760028181548110611226576112266124ec565b6000918252602090912001546001600160a01b03858116911614156112515761124e82612518565b91505b61125a81612518565b9050611209565b5092915050565b6005546001600160a01b031633146112925760405162461bcd60e51b815260040161089290612533565b61129c6000611a6c565b565b6005546001600160a01b031633146112c85760405162461bcd60e51b815260040161089290612533565b600780546001600160a01b0383166001600160a01b031990911617905550565b6060600180546107a790612415565b6001600160a01b0382163314156113505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610892565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113c63383611718565b6113e25760405162461bcd60e51b815260040161089290612450565b6113ee84848484611abe565b50505050565b60606113ff82611660565b6114435760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610892565b600661144e83611af1565b60405160200161145f92919061259c565b6040516020818303038152906040529050919050565b6005546001600160a01b0316331461149f5760405162461bcd60e51b815260040161089290612533565b6008805460ff60a01b1916600160a01b179055565b6005546001600160a01b031633146114de5760405162461bcd60e51b815260040161089290612533565b6001600160a01b0381166115435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610892565b610b7f81611a6c565b60005b81518110156113ee5761157c848484848151811061156f5761156f6124ec565b60200260200101516109cd565b8061158681612518565b91505061154f565b6005546001600160a01b031633146115b85760405162461bcd60e51b815260040161089290612533565b600d55565b6005546001600160a01b031633146115e75760405162461bcd60e51b815260040161089290612533565b6001600160a01b03166000908152600b60205260409020805460ff19811660ff90911615179055565b60006001600160e01b031982166380ac58cd60e01b148061164157506001600160e01b03198216635b5e139f60e01b145b8061079257506301ffc9a760e01b6001600160e01b0319831614610792565b60025460009082108015610792575060006001600160a01b03166002838154811061168d5761168d6124ec565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116df82610e26565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061172382611660565b6117845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610892565b600061178f83610e26565b9050806001600160a01b0316846001600160a01b031614806117ca5750836001600160a01b03166117bf8461082a565b6001600160a01b0316145b806117fa57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661181582610e26565b6001600160a01b03161461187d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610892565b6001600160a01b0382166118df5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610892565b6118ea6000826116aa565b81600282815481106118fe576118fe6124ec565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061196382610e26565b90506119706000836116aa565b600060028381548110611985576119856124ec565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000826119e78584611bef565b14949350505050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ac9848484611802565b611ad584848484611c93565b6113ee5760405162461bcd60e51b815260040161089290612643565b606081611b155750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b3f5780611b2981612518565b9150611b389050600a836126ab565b9150611b19565b60008167ffffffffffffffff811115611b5a57611b5a612058565b6040519080825280601f01601f191660200182016040528015611b84576020820181803683370190505b5090505b84156117fa57611b996001836126bf565b9150611ba6600a866126d6565b611bb1906030612568565b60f81b818381518110611bc657611bc66124ec565b60200101906001600160f81b031916908160001a905350611be8600a866126ab565b9450611b88565b600081815b8451811015610c19576000858281518110611c1157611c116124ec565b60200260200101519050808311611c53576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611c80565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611c8b81612518565b915050611bf4565b60006001600160a01b0384163b15611d8657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cd79033908990889088906004016126ea565b6020604051808303816000875af1925050508015611d12575060408051601f3d908101601f19168201909252611d0f91810190612727565b60015b611d6c573d808015611d40576040519150601f19603f3d011682016040523d82523d6000602084013e611d45565b606091505b508051611d645760405162461bcd60e51b815260040161089290612643565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117fa565b506001949350505050565b828054611d9d90612415565b90600052602060002090601f016020900481019282611dbf5760008555611e05565b82601f10611dd857805160ff1916838001178555611e05565b82800160010185558215611e05579182015b82811115611e05578251825591602001919060010190611dea565b50610d979291505b80821115610d975760008155600101611e0d565b6001600160e01b031981168114610b7f57600080fd5b600060208284031215611e4957600080fd5b8135610d2781611e21565b60005b83811015611e6f578181015183820152602001611e57565b838111156113ee5750506000910152565b60008151808452611e98816020860160208601611e54565b601f01601f19169290920160200192915050565b602081526000610d276020830184611e80565b600060208284031215611ed157600080fd5b5035919050565b80356001600160a01b0381168114611eef57600080fd5b919050565b60008060408385031215611f0757600080fd5b611f1083611ed8565b946020939093013593505050565b600080600060608486031215611f3357600080fd5b611f3c84611ed8565b9250611f4a60208501611ed8565b9150604084013590509250925092565b600060208284031215611f6c57600080fd5b610d2782611ed8565b6020808252825182820181905260009190848201906040850190845b81811015611fad57835183529284019291840191600101611f91565b50909695505050505050565b60008083601f840112611fcb57600080fd5b50813567ffffffffffffffff811115611fe357600080fd5b6020830191508360208260051b8501011115611ffe57600080fd5b9250929050565b60008060006040848603121561201a57600080fd5b61202384611ed8565b9250602084013567ffffffffffffffff81111561203f57600080fd5b61204b86828701611fb9565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561209757612097612058565b604052919050565b600067ffffffffffffffff8311156120b9576120b9612058565b6120cc601f8401601f191660200161206e565b90508281528383830111156120e057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561210957600080fd5b813567ffffffffffffffff81111561212057600080fd5b8201601f8101841361213157600080fd5b6117fa8482356020840161209f565b600082601f83011261215157600080fd5b8135602067ffffffffffffffff82111561216d5761216d612058565b8160051b61217c82820161206e565b928352848101820192828101908785111561219657600080fd5b83870192505b848310156121b55782358252918301919083019061219c565b979650505050505050565b600082601f8301126121d157600080fd5b610d278383356020850161209f565b600080600080608085870312156121f657600080fd5b6121ff85611ed8565b935061220d60208601611ed8565b9250604085013567ffffffffffffffff8082111561222a57600080fd5b61223688838901612140565b9350606087013591508082111561224c57600080fd5b50612259878288016121c0565b91505092959194509250565b803561ffff81168114611eef57600080fd5b6000806000806060858703121561228d57600080fd5b61229685612265565b935060208501359250604085013567ffffffffffffffff8111156122b957600080fd5b6122c587828801611fb9565b95989497509550505050565b600080604083850312156122e457600080fd5b6122ed83611ed8565b91506020830135801515811461230257600080fd5b809150509250929050565b6000806000806080858703121561232357600080fd5b61232c85611ed8565b935061233a60208601611ed8565b925060408501359150606085013567ffffffffffffffff81111561235d57600080fd5b612259878288016121c0565b60006020828403121561237b57600080fd5b610d2782612265565b6000806040838503121561239757600080fd5b6123a083611ed8565b91506123ae60208401611ed8565b90509250929050565b6000806000606084860312156123cc57600080fd5b6123d584611ed8565b92506123e360208501611ed8565b9150604084013567ffffffffffffffff8111156123ff57600080fd5b61240b86828701612140565b9150509250925092565b600181811c9082168061242957607f821691505b6020821081141561244a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561252c5761252c612502565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561257b5761257b612502565b500190565b60008151612592818560208601611e54565b9290920192915050565b600080845481600182811c9150808316806125b857607f831692505b60208084108214156125d857634e487b7160e01b86526022600452602486fd5b8180156125ec57600181146125fd5761262a565b60ff1986168952848901965061262a565b60008b81526020902060005b868110156126225781548b820152908501908301612609565b505084890196505b50505050505061263a8185612580565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826126ba576126ba612695565b500490565b6000828210156126d1576126d1612502565b500390565b6000826126e5576126e5612695565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061271d90830184611e80565b9695505050505050565b60006020828403121561273957600080fd5b8151610d2781611e2156fea26469706673582212201ec7bd4f50bd0db4e870fee437e33b292909c5e0c62ba10fe4f3e87f379361d264736f6c634300080b00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a05123b49c1094a83f7a3032eb43c3bd1d61d21d0000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061023b5760003560e01c80636352211e1161012e578063a22cb465116100ab578063e985e9c51161006f578063e985e9c5146106a4578063f2fde38b146106ed578063f3993d111461070d578063f4a0a5281461072d578063f73c814b1461074d57600080fd5b8063a22cb465146105ff578063b88d4fde1461061f578063c87b56dd1461063f578063e222c7f91461065f578063e9491f171461067457600080fd5b8063715018a6116100f2578063715018a61461057657806371adc02a1461058b57806379245578146105ac5780638da5cb5b146105cc57806395d89b41146105ea57600080fd5b80636352211e146104ee57806367de06d31461050e578063696406c5146105215780636c0360eb1461054157806370a082311461055657600080fd5b80633ccfd60b116101bc5780634d44660c116101805780634d44660c1461043e5780634f6ccce71461045e57806355f804b31461047e5780635a4fee301461049e5780635bab26e2146104be57600080fd5b80633ccfd60b1461039c57806342842e0e146103b157806342966c68146103d1578063438b6300146103f1578063493a5f8e1461041e57600080fd5b806318160ddd1161020357806318160ddd1461031157806323b872dd146103305780632f745c591461035057806332cb6b0c1461037057806339a4dd991461038657600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf5780631581b600146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611e37565b61076d565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610798565b60405161026c9190611eac565b3480156102a357600080fd5b506102b76102b2366004611ebf565b61082a565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611ef4565b6108b7565b005b3480156102fd57600080fd5b506008546102b7906001600160a01b031681565b34801561031d57600080fd5b506002545b60405190815260200161026c565b34801561033c57600080fd5b506102ef61034b366004611f1e565b6109cd565b34801561035c57600080fd5b5061032261036b366004611ef4565b6109ff565b34801561037c57600080fd5b5061032260095481565b34801561039257600080fd5b50610322600a5481565b3480156103a857600080fd5b506102ef610ab2565b3480156103bd57600080fd5b506102ef6103cc366004611f1e565b610b82565b3480156103dd57600080fd5b506102ef6103ec366004611ebf565b610b9d565b3480156103fd57600080fd5b5061041161040c366004611f5a565b610bf3565b60405161026c9190611f75565b34801561042a57600080fd5b506007546102b7906001600160a01b031681565b34801561044a57600080fd5b50610260610459366004612005565b610cac565b34801561046a57600080fd5b50610322610479366004611ebf565b610d2e565b34801561048a57600080fd5b506102ef6104993660046120f7565b610d9b565b3480156104aa57600080fd5b506102ef6104b93660046121e0565b610ddc565b3480156104ca57600080fd5b506102606104d9366004611f5a565b600b6020526000908152604090205460ff1681565b3480156104fa57600080fd5b506102b7610509366004611ebf565b610e26565b6102ef61051c366004612277565b610eb2565b34801561052d57600080fd5b506102ef61053c366004611ebf565b6110dd565b34801561054d57600080fd5b5061028a61110c565b34801561056257600080fd5b50610322610571366004611f5a565b61119a565b34801561058257600080fd5b506102ef611268565b34801561059757600080fd5b5060085461026090600160a01b900460ff1681565b3480156105b857600080fd5b506102ef6105c7366004611f5a565b61129e565b3480156105d857600080fd5b506005546001600160a01b03166102b7565b3480156105f657600080fd5b5061028a6112e8565b34801561060b57600080fd5b506102ef61061a3660046122d1565b6112f7565b34801561062b57600080fd5b506102ef61063a36600461230d565b6113bc565b34801561064b57600080fd5b5061028a61065a366004611ebf565b6113f4565b34801561066b57600080fd5b506102ef611475565b34801561068057600080fd5b5061026061068f366004612369565b600c6020526000908152604090205460ff1681565b3480156106b057600080fd5b506102606106bf366004612384565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156106f957600080fd5b506102ef610708366004611f5a565b6114b4565b34801561071957600080fd5b506102ef6107283660046123b7565b61154c565b34801561073957600080fd5b506102ef610748366004611ebf565b61158e565b34801561075957600080fd5b506102ef610768366004611f5a565b6115bd565b60006001600160e01b0319821663780e9d6360e01b1480610792575061079282611610565b92915050565b6060600080546107a790612415565b80601f01602080910402602001604051908101604052809291908181526020018280546107d390612415565b80156108205780601f106107f557610100808354040283529160200191610820565b820191906000526020600020905b81548152906001019060200180831161080357829003601f168201915b5050505050905090565b600061083582611660565b61089b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006108c282610e26565b9050806001600160a01b0316836001600160a01b031614156109305760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610892565b336001600160a01b038216148061094c575061094c81336106bf565b6109be5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610892565b6109c883836116aa565b505050565b6109d8335b82611718565b6109f45760405162461bcd60e51b815260040161089290612450565b6109c8838383611802565b6000610a0a8361119a565b8210610a285760405162461bcd60e51b8152600401610892906124a1565b6000805b600254811015610a995760028181548110610a4957610a496124ec565b6000918252602090912001546001600160a01b0386811691161415610a875783821415610a795791506107929050565b81610a8381612518565b9250505b80610a9181612518565b915050610a2c565b5060405162461bcd60e51b8152600401610892906124a1565b6005546001600160a01b03163314610adc5760405162461bcd60e51b815260040161089290612533565b6008546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b29576040519150601f19603f3d011682016040523d82523d6000602084013e610b2e565b606091505b5050905080610b7f5760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f2073656e6420746f20617065746f7368692e00000000006044820152606401610892565b50565b6109c8838383604051806020016040528060008152506113bc565b610ba6336109d2565b610bea5760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b6044820152606401610892565b610b7f81611958565b60606000610c008361119a565b905080610c215760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610c3c57610c3c612058565b604051908082528060200260200182016040528015610c65578160200160208202803683370190505b50905060005b82811015610c1957610c7d85826109ff565b828281518110610c8f57610c8f6124ec565b602090810291909101015280610ca481612518565b915050610c6b565b6000805b82811015610d2157846001600160a01b03166002858584818110610cd657610cd66124ec565b9050602002013581548110610ced57610ced6124ec565b6000918252602090912001546001600160a01b031614610d11576000915050610d27565b610d1a81612518565b9050610cb0565b50600190505b9392505050565b6002546000908210610d975760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610892565b5090565b6005546001600160a01b03163314610dc55760405162461bcd60e51b815260040161089290612533565b8051610dd8906006906020840190611d91565b5050565b60005b8251811015610e1f57610e0d8585858481518110610dff57610dff6124ec565b6020026020010151856113bc565b80610e1781612518565b915050610ddf565b5050505050565b60008060028381548110610e3c57610e3c6124ec565b6000918252602090912001546001600160a01b03169050806107925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610892565b61ffff84166000908152600c602052604090205460ff1615610f165760405162461bcd60e51b815260206004820152601860248201527f617065206d66657220616c726561647920636c61696d656400000000000000006044820152606401610892565b600854600160a01b900460ff161515600114610f745760405162461bcd60e51b815260206004820152601760248201527f7075626c69632073616c65206e6f7420737461727465640000000000000000006044820152606401610892565b610fb582828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508690506119da565b610fef5760405162461bcd60e51b815260206004820152600b60248201526a3bb937b73390383937b7b360a91b6044820152606401610892565b600754600d5460405163079cc67960e41b815233600482015260248101919091526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561103f57600080fd5b505af1158015611053573d6000803e3d6000fd5b5050600254600954909250905061106b826001612568565b106110ae5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610892565b6110b833826119f0565b50505061ffff9091166000908152600c60205260409020805460ff1916600117905550565b6005546001600160a01b031633146111075760405162461bcd60e51b815260040161089290612533565b600a55565b6006805461111990612415565b80601f016020809104026020016040519081016040528092919081815260200182805461114590612415565b80156111925780601f1061116757610100808354040283529160200191611192565b820191906000526020600020905b81548152906001019060200180831161117557829003601f168201915b505050505081565b60006001600160a01b0382166112055760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610892565b6000805b6002548110156112615760028181548110611226576112266124ec565b6000918252602090912001546001600160a01b03858116911614156112515761124e82612518565b91505b61125a81612518565b9050611209565b5092915050565b6005546001600160a01b031633146112925760405162461bcd60e51b815260040161089290612533565b61129c6000611a6c565b565b6005546001600160a01b031633146112c85760405162461bcd60e51b815260040161089290612533565b600780546001600160a01b0383166001600160a01b031990911617905550565b6060600180546107a790612415565b6001600160a01b0382163314156113505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610892565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113c63383611718565b6113e25760405162461bcd60e51b815260040161089290612450565b6113ee84848484611abe565b50505050565b60606113ff82611660565b6114435760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610892565b600661144e83611af1565b60405160200161145f92919061259c565b6040516020818303038152906040529050919050565b6005546001600160a01b0316331461149f5760405162461bcd60e51b815260040161089290612533565b6008805460ff60a01b1916600160a01b179055565b6005546001600160a01b031633146114de5760405162461bcd60e51b815260040161089290612533565b6001600160a01b0381166115435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610892565b610b7f81611a6c565b60005b81518110156113ee5761157c848484848151811061156f5761156f6124ec565b60200260200101516109cd565b8061158681612518565b91505061154f565b6005546001600160a01b031633146115b85760405162461bcd60e51b815260040161089290612533565b600d55565b6005546001600160a01b031633146115e75760405162461bcd60e51b815260040161089290612533565b6001600160a01b03166000908152600b60205260409020805460ff19811660ff90911615179055565b60006001600160e01b031982166380ac58cd60e01b148061164157506001600160e01b03198216635b5e139f60e01b145b8061079257506301ffc9a760e01b6001600160e01b0319831614610792565b60025460009082108015610792575060006001600160a01b03166002838154811061168d5761168d6124ec565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116df82610e26565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061172382611660565b6117845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610892565b600061178f83610e26565b9050806001600160a01b0316846001600160a01b031614806117ca5750836001600160a01b03166117bf8461082a565b6001600160a01b0316145b806117fa57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661181582610e26565b6001600160a01b03161461187d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610892565b6001600160a01b0382166118df5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610892565b6118ea6000826116aa565b81600282815481106118fe576118fe6124ec565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061196382610e26565b90506119706000836116aa565b600060028381548110611985576119856124ec565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000826119e78584611bef565b14949350505050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ac9848484611802565b611ad584848484611c93565b6113ee5760405162461bcd60e51b815260040161089290612643565b606081611b155750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b3f5780611b2981612518565b9150611b389050600a836126ab565b9150611b19565b60008167ffffffffffffffff811115611b5a57611b5a612058565b6040519080825280601f01601f191660200182016040528015611b84576020820181803683370190505b5090505b84156117fa57611b996001836126bf565b9150611ba6600a866126d6565b611bb1906030612568565b60f81b818381518110611bc657611bc66124ec565b60200101906001600160f81b031916908160001a905350611be8600a866126ab565b9450611b88565b600081815b8451811015610c19576000858281518110611c1157611c116124ec565b60200260200101519050808311611c53576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611c80565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611c8b81612518565b915050611bf4565b60006001600160a01b0384163b15611d8657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cd79033908990889088906004016126ea565b6020604051808303816000875af1925050508015611d12575060408051601f3d908101601f19168201909252611d0f91810190612727565b60015b611d6c573d808015611d40576040519150601f19603f3d011682016040523d82523d6000602084013e611d45565b606091505b508051611d645760405162461bcd60e51b815260040161089290612643565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117fa565b506001949350505050565b828054611d9d90612415565b90600052602060002090601f016020900481019282611dbf5760008555611e05565b82601f10611dd857805160ff1916838001178555611e05565b82800160010185558215611e05579182015b82811115611e05578251825591602001919060010190611dea565b50610d979291505b80821115610d975760008155600101611e0d565b6001600160e01b031981168114610b7f57600080fd5b600060208284031215611e4957600080fd5b8135610d2781611e21565b60005b83811015611e6f578181015183820152602001611e57565b838111156113ee5750506000910152565b60008151808452611e98816020860160208601611e54565b601f01601f19169290920160200192915050565b602081526000610d276020830184611e80565b600060208284031215611ed157600080fd5b5035919050565b80356001600160a01b0381168114611eef57600080fd5b919050565b60008060408385031215611f0757600080fd5b611f1083611ed8565b946020939093013593505050565b600080600060608486031215611f3357600080fd5b611f3c84611ed8565b9250611f4a60208501611ed8565b9150604084013590509250925092565b600060208284031215611f6c57600080fd5b610d2782611ed8565b6020808252825182820181905260009190848201906040850190845b81811015611fad57835183529284019291840191600101611f91565b50909695505050505050565b60008083601f840112611fcb57600080fd5b50813567ffffffffffffffff811115611fe357600080fd5b6020830191508360208260051b8501011115611ffe57600080fd5b9250929050565b60008060006040848603121561201a57600080fd5b61202384611ed8565b9250602084013567ffffffffffffffff81111561203f57600080fd5b61204b86828701611fb9565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561209757612097612058565b604052919050565b600067ffffffffffffffff8311156120b9576120b9612058565b6120cc601f8401601f191660200161206e565b90508281528383830111156120e057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561210957600080fd5b813567ffffffffffffffff81111561212057600080fd5b8201601f8101841361213157600080fd5b6117fa8482356020840161209f565b600082601f83011261215157600080fd5b8135602067ffffffffffffffff82111561216d5761216d612058565b8160051b61217c82820161206e565b928352848101820192828101908785111561219657600080fd5b83870192505b848310156121b55782358252918301919083019061219c565b979650505050505050565b600082601f8301126121d157600080fd5b610d278383356020850161209f565b600080600080608085870312156121f657600080fd5b6121ff85611ed8565b935061220d60208601611ed8565b9250604085013567ffffffffffffffff8082111561222a57600080fd5b61223688838901612140565b9350606087013591508082111561224c57600080fd5b50612259878288016121c0565b91505092959194509250565b803561ffff81168114611eef57600080fd5b6000806000806060858703121561228d57600080fd5b61229685612265565b935060208501359250604085013567ffffffffffffffff8111156122b957600080fd5b6122c587828801611fb9565b95989497509550505050565b600080604083850312156122e457600080fd5b6122ed83611ed8565b91506020830135801515811461230257600080fd5b809150509250929050565b6000806000806080858703121561232357600080fd5b61232c85611ed8565b935061233a60208601611ed8565b925060408501359150606085013567ffffffffffffffff81111561235d57600080fd5b612259878288016121c0565b60006020828403121561237b57600080fd5b610d2782612265565b6000806040838503121561239757600080fd5b6123a083611ed8565b91506123ae60208401611ed8565b90509250929050565b6000806000606084860312156123cc57600080fd5b6123d584611ed8565b92506123e360208501611ed8565b9150604084013567ffffffffffffffff8111156123ff57600080fd5b61240b86828701612140565b9150509250925092565b600181811c9082168061242957607f821691505b6020821081141561244a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561252c5761252c612502565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561257b5761257b612502565b500190565b60008151612592818560208601611e54565b9290920192915050565b600080845481600182811c9150808316806125b857607f831692505b60208084108214156125d857634e487b7160e01b86526022600452602486fd5b8180156125ec57600181146125fd5761262a565b60ff1986168952848901965061262a565b60008b81526020902060005b868110156126225781548b820152908501908301612609565b505084890196505b50505050505061263a8185612580565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826126ba576126ba612695565b500490565b6000828210156126d1576126d1612502565b500390565b6000826126e5576126e5612695565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061271d90830184611e80565b9695505050505050565b60006020828403121561273957600080fd5b8151610d2781611e2156fea26469706673582212201ec7bd4f50bd0db4e870fee437e33b292909c5e0c62ba10fe4f3e87f379361d264736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a05123b49c1094a83f7a3032eb43c3bd1d61d21d0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string):
Arg [1] : _withdrawAddress (address): 0xa05123B49c1094a83F7A3032EB43C3bd1D61D21d

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000a05123b49c1094a83f7a3032eb43c3bd1d61d21d
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


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.