ETH Price: $2,506.46 (+0.19%)

InPeak Gen II (IPGENII)
 

Overview

TokenID

444

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
InPeakGen2

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : InPeakGen2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
// import "hardhat/console.sol";

error MaxSupplyExceeded();
error Overflow(uint256 z, uint256 x);
error MaxSupplyUnderflow(uint256 current, uint256 incoming);
error InvalidQuantity();

contract InPeakGen2 is ERC721, Ownable, ReentrancyGuard {
    using MerkleProof for bytes32[];

    event Received(address sender, uint256 amount);

    address public pledgeContractAddress;
    uint256 public maxSupply = 10000;
    uint256 public tokenCounter = 0;
    uint256 public pendingReservedSupply=500;

    mapping(uint8 => string) public tokenURIByLevel;
    mapping(uint256 => uint8) public tokenLevelOf;

     constructor(uint256 pMaxSupply, uint256 pPendingReservedSupply) ERC721("InPeak Gen II", "IPGENII") {
        maxSupply = pMaxSupply;
        pendingReservedSupply = pPendingReservedSupply;
     }

     function pledgeMint(address to, uint8 quantity) external payable {
        if(quantity != 1) revert InvalidQuantity();
        if(tokenCounter + 1 > maxSupply - pendingReservedSupply) revert MaxSupplyExceeded();
        require(pledgeContractAddress == msg.sender, "The caller is not PledgeMint");
        tokenCounter += 1;
        _mint(to, tokenCounter);
    }
    function setPledgeContractAddress(address _pledgeContractAddress) public onlyOwner {
        pledgeContractAddress = _pledgeContractAddress;
    }
    
    /// @dev Mint 1 token to each `recipient` of `recipients`.
    function mintReserved(address[] memory recipients) onlyOwner external {
        require(recipients.length > 0, "invalid number of recipients");
        require(pendingReservedSupply >= recipients.length, "not enough reserved supply");
        require(maxSupply -tokenCounter > 0, "max supply reached");

        for(uint256 i = 0; i < recipients.length; i++) {
            _mint(recipients[i], tokenCounter + i + 1);
        }
        tokenCounter += recipients.length;
        pendingReservedSupply -= recipients.length;
    }

    function withdraw() nonReentrant public {
        require(address(this).balance > 0, "no balance to withdraw");
        address payable to = payable(owner());
        to.transfer(address(this).balance);
    }

    /*** SETTERS ***/

    function setTokenURI(uint8 level, string memory pURI) onlyOwner public {
        tokenURIByLevel[level] = pURI;
    }

    function setTokenLevel(uint256 pTokenId, uint8 pLevel) onlyOwner public {
        tokenLevelOf[pTokenId] = pLevel;
    }

    function setTokensLevel(uint256[] calldata pTokenIds, uint8 pLevel) onlyOwner public {
        for(uint256 i; i < pTokenIds.length; i++) {
            tokenLevelOf[pTokenIds[i]] = pLevel;
        }
    }

    function setTokensLevels(uint256[] calldata pTokenIds, uint8[] calldata pLevels) onlyOwner public {
        require(pTokenIds.length == pLevels.length, "invalid array lengths");
        for(uint256 i; i < pTokenIds.length; i++) {
            tokenLevelOf[pTokenIds[i]] = pLevels[i];
        }
    }

    function setMaxSupply(uint256 pMaxSupply) onlyOwner public {
        require(pMaxSupply - tokenCounter - pendingReservedSupply > 0, "invalid max supply");
        maxSupply = pMaxSupply;
    }

    /// @dev Set the reserved supply for marketing.
    function setPendingReservedSupply(uint256 pPendingReservedSupply) onlyOwner public {
        require(tokenCounter + pPendingReservedSupply <= maxSupply, "cant reserve more than maximum supply");
        pendingReservedSupply = pPendingReservedSupply;
    }
    /*** VIEWS ***/

       /// @dev Returns the URI of a token.
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "invalid token id");
        return tokenURIByLevel[tokenLevelOf[tokenId]];
    }


    /// @dev Returns the remaining supply for public mints
    function getPublicRemainingSupply() public view returns (uint256) {
        return maxSupply - tokenCounter - pendingReservedSupply;
    }

    /// @dev Returns the remaining real remaining supply without considering pending reserved
    function getRemainingSupply() public view returns (uint256) {
        return maxSupply - tokenCounter;
    }

    receive() external payable {
        emit Received(msg.sender, msg.value);
    }
}

File 2 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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: caller is not token 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: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(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 from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @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.
     * - `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 tokenId
    ) internal virtual {}
}

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 14 : 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 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 14 : 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 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 13 of 14 : 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 14 of 14 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"pMaxSupply","type":"uint256"},{"internalType":"uint256","name":"pPendingReservedSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicRemainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingReservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pledgeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"pledgeMint","outputs":[],"stateMutability":"payable","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":"uint256","name":"pMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pPendingReservedSupply","type":"uint256"}],"name":"setPendingReservedSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pledgeContractAddress","type":"address"}],"name":"setPledgeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pTokenId","type":"uint256"},{"internalType":"uint8","name":"pLevel","type":"uint8"}],"name":"setTokenLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"string","name":"pURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pTokenIds","type":"uint256[]"},{"internalType":"uint8","name":"pLevel","type":"uint8"}],"name":"setTokensLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pTokenIds","type":"uint256[]"},{"internalType":"uint8[]","name":"pLevels","type":"uint8[]"}],"name":"setTokensLevels","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":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLevelOf","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tokenURIByLevel","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":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526127106009556000600a556101f4600b553480156200002257600080fd5b5060405162004052380380620040528339818101604052810190620000489190620002e4565b6040518060400160405280600d81526020017f496e5065616b2047656e204949000000000000000000000000000000000000008152506040518060400160405280600781526020017f495047454e4949000000000000000000000000000000000000000000000000008152508160009080519060200190620000cc929190620001f4565b508060019080519060200190620000e5929190620001f4565b50505062000108620000fc6200012660201b60201c565b6200012e60201b60201c565b60016007819055508160098190555080600b81905550505062000390565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000202906200035a565b90600052602060002090601f01602090048101928262000226576000855562000272565b82601f106200024157805160ff191683800117855562000272565b8280016001018555821562000272579182015b828111156200027157825182559160200191906001019062000254565b5b50905062000281919062000285565b5090565b5b80821115620002a057600081600090555060010162000286565b5090565b600080fd5b6000819050919050565b620002be81620002a9565b8114620002ca57600080fd5b50565b600081519050620002de81620002b3565b92915050565b60008060408385031215620002fe57620002fd620002a4565b5b60006200030e85828601620002cd565b92505060206200032185828601620002cd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200037357607f821691505b602082108114156200038a57620003896200032b565b5b50919050565b613cb280620003a06000396000f3fe6080604052600436106101fd5760003560e01c80638bde18051161010d578063c87b56dd116100a0578063d61d44361161006f578063d61d44361461075f578063e4b7fb7314610788578063e985e9c5146107b3578063f2fde38b146107f0578063fb0f4a7f146108195761023d565b8063c87b56dd146106a3578063cf3df230146106e0578063d082e38114610709578063d5abeb01146107345761023d565b80639c83aecc116100dc5780639c83aecc146105ff578063a22cb46514610628578063ad8c8a0414610651578063b88d4fde1461067a5761023d565b80638bde1805146105435780638da5cb5b1461056c57806395d89b411461059757806398de3209146105c25761023d565b806326a1610b116101905780636352211e1161015f5780636352211e146104605780636f8b44b01461049d57806370a08231146104c6578063715018a614610503578063850f3f3f1461051a5761023d565b806326a1610b146103b85780633c30abd7146103e35780633ccfd60b1461042057806342842e0e146104375761023d565b8063095ea7b3116101cc578063095ea7b3146103105780630f92ce1f146103395780631fba58ed1461036457806323b872dd1461038f5761023d565b806301ffc9a71461024257806306fdde031461027f578063081812fc146102aa57806308ad480b146102e75761023d565b3661023d577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433346040516102339291906124bb565b60405180910390a1005b600080fd5b34801561024e57600080fd5b5061026960048036038101906102649190612550565b610835565b6040516102769190612598565b60405180910390f35b34801561028b57600080fd5b50610294610917565b6040516102a1919061264c565b60405180910390f35b3480156102b657600080fd5b506102d160048036038101906102cc919061269a565b6109a9565b6040516102de91906126c7565b60405180910390f35b3480156102f357600080fd5b5061030e6004803603810190610309919061271b565b6109ef565b005b34801561031c57600080fd5b5061033760048036038101906103329190612787565b610a27565b005b34801561034557600080fd5b5061034e610b3f565b60405161035b91906127c7565b60405180910390f35b34801561037057600080fd5b50610379610b45565b60405161038691906126c7565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b191906127e2565b610b6b565b005b3480156103c457600080fd5b506103cd610bcb565b6040516103da91906127c7565b60405180910390f35b3480156103ef57600080fd5b5061040a60048036038101906104059190612835565b610bef565b604051610417919061264c565b60405180910390f35b34801561042c57600080fd5b50610435610c8f565b005b34801561044357600080fd5b5061045e600480360381019061045991906127e2565b610d7e565b005b34801561046c57600080fd5b506104876004803603810190610482919061269a565b610d9e565b60405161049491906126c7565b60405180910390f35b3480156104a957600080fd5b506104c460048036038101906104bf919061269a565b610e50565b005b3480156104d257600080fd5b506104ed60048036038101906104e89190612862565b610ebf565b6040516104fa91906127c7565b60405180910390f35b34801561050f57600080fd5b50610518610f77565b005b34801561052657600080fd5b50610541600480360381019061053c91906129d7565b610f8b565b005b34801561054f57600080fd5b5061056a60048036038101906105659190612a7b565b611103565b005b34801561057857600080fd5b50610581611177565b60405161058e91906126c7565b60405180910390f35b3480156105a357600080fd5b506105ac6111a1565b6040516105b9919061264c565b60405180910390f35b3480156105ce57600080fd5b506105e960048036038101906105e4919061269a565b611233565b6040516105f69190612aea565b60405180910390f35b34801561060b57600080fd5b5061062660048036038101906106219190612bba565b611253565b005b34801561063457600080fd5b5061064f600480360381019061064a9190612c42565b61128d565b005b34801561065d57600080fd5b506106786004803603810190610673919061269a565b6112a3565b005b34801561068657600080fd5b506106a1600480360381019061069c9190612d23565b611307565b005b3480156106af57600080fd5b506106ca60048036038101906106c5919061269a565b611369565b6040516106d7919061264c565b60405180910390f35b3480156106ec57600080fd5b5061070760048036038101906107029190612862565b61147c565b005b34801561071557600080fd5b5061071e6114c8565b60405161072b91906127c7565b60405180910390f35b34801561074057600080fd5b506107496114ce565b60405161075691906127c7565b60405180910390f35b34801561076b57600080fd5b5061078660048036038101906107819190612dfc565b6114d4565b005b34801561079457600080fd5b5061079d6115b8565b6040516107aa91906127c7565b60405180910390f35b3480156107bf57600080fd5b506107da60048036038101906107d59190612e7d565b6115cf565b6040516107e79190612598565b60405180910390f35b3480156107fc57600080fd5b5061081760048036038101906108129190612862565b611663565b005b610833600480360381019061082e9190612ebd565b6116e7565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610910575061090f82611835565b5b9050919050565b60606000805461092690612f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461095290612f2c565b801561099f5780601f106109745761010080835404028352916020019161099f565b820191906000526020600020905b81548152906001019060200180831161098257829003601f168201915b5050505050905090565b60006109b48261189f565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6109f76118ea565b80600d600084815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505050565b6000610a3282610d9e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9a90612fd0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ac2611968565b73ffffffffffffffffffffffffffffffffffffffff161480610af15750610af081610aeb611968565b6115cf565b5b610b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2790613062565b60405180910390fd5b610b3a8383611970565b505050565b600b5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b7c610b76611968565b82611a29565b610bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb2906130f4565b60405180910390fd5b610bc6838383611abe565b505050565b6000600b54600a54600954610be09190613143565b610bea9190613143565b905090565b600c6020528060005260406000206000915090508054610c0e90612f2c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90612f2c565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b505050505081565b60026007541415610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc906131c3565b60405180910390fd5b600260078190555060004711610d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d179061322f565b60405180910390fd5b6000610d2a611177565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d72573d6000803e3d6000fd5b50506001600781905550565b610d9983838360405180602001604052806000815250611307565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3e9061329b565b60405180910390fd5b80915050919050565b610e586118ea565b6000600b54600a5483610e6b9190613143565b610e759190613143565b11610eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eac90613307565b60405180910390fd5b8060098190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2790613399565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f7f6118ea565b610f896000611d25565b565b610f936118ea565b6000815111610fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fce90613405565b60405180910390fd5b8051600b54101561101d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101490613471565b60405180910390fd5b6000600a5460095461102f9190613143565b1161106f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611066906134dd565b60405180910390fd5b60005b81518110156110cb576110b8828281518110611091576110906134fd565b5b6020026020010151600183600a546110a9919061352c565b6110b3919061352c565b611deb565b80806110c390613582565b915050611072565b508051600a60008282546110df919061352c565b925050819055508051600b60008282546110f99190613143565b9250508190555050565b61110b6118ea565b60005b838390508110156111715781600d6000868685818110611131576111306134fd565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff160217905550808061116990613582565b91505061110e565b50505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546111b090612f2c565b80601f01602080910402602001604051908101604052809291908181526020018280546111dc90612f2c565b80156112295780601f106111fe57610100808354040283529160200191611229565b820191906000526020600020905b81548152906001019060200180831161120c57829003601f168201915b5050505050905090565b600d6020528060005260406000206000915054906101000a900460ff1681565b61125b6118ea565b80600c60008460ff1660ff16815260200190815260200160002090805190602001906112889291906123be565b505050565b61129f611298611968565b8383611fc5565b5050565b6112ab6118ea565b60095481600a546112bc919061352c565b11156112fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f49061363d565b60405180910390fd5b80600b8190555050565b611318611312611968565b83611a29565b611357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134e906130f4565b60405180910390fd5b61136384848484612132565b50505050565b60606113748261218e565b6113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906136a9565b60405180910390fd5b600c6000600d600085815260200190815260200160002060009054906101000a900460ff1660ff1660ff16815260200190815260200160002080546113f790612f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461142390612f2c565b80156114705780601f1061144557610100808354040283529160200191611470565b820191906000526020600020905b81548152906001019060200180831161145357829003601f168201915b50505050509050919050565b6114846118ea565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a5481565b60095481565b6114dc6118ea565b818190508484905014611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90613715565b60405180910390fd5b60005b848490508110156115b157828282818110611545576115446134fd565b5b905060200201602081019061155a9190612835565b600d6000878785818110611571576115706134fd565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806115a990613582565b915050611527565b5050505050565b6000600a546009546115ca9190613143565b905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61166b6118ea565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d2906137a7565b60405180910390fd5b6116e481611d25565b50565b60018160ff1614611724576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b546009546117349190613143565b6001600a54611743919061352c565b111561177b576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461180b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180290613813565b60405180910390fd5b6001600a600082825461181e919061352c565b9250508190555061183182600a54611deb565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6118a88161218e565b6118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de9061329b565b60405180910390fd5b50565b6118f2611968565b73ffffffffffffffffffffffffffffffffffffffff16611910611177565b73ffffffffffffffffffffffffffffffffffffffff1614611966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195d9061387f565b60405180910390fd5b565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166119e383610d9e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a3583610d9e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a775750611a7681856115cf565b5b80611ab557508373ffffffffffffffffffffffffffffffffffffffff16611a9d846109a9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ade82610d9e565b73ffffffffffffffffffffffffffffffffffffffff1614611b34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2b90613911565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9b906139a3565b60405180910390fd5b611baf8383836121fa565b611bba600082611970565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c0a9190613143565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c61919061352c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611d208383836121ff565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5290613a0f565b60405180910390fd5b611e648161218e565b15611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b90613a7b565b60405180910390fd5b611eb0600083836121fa565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f00919061352c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fc1600083836121ff565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b90613ae7565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121259190612598565b60405180910390a3505050565b61213d848484611abe565b61214984848484612204565b612188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217f90613b79565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b505050565b60006122258473ffffffffffffffffffffffffffffffffffffffff1661239b565b1561238e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261224e611968565b8786866040518563ffffffff1660e01b81526004016122709493929190613bee565b602060405180830381600087803b15801561228a57600080fd5b505af19250505080156122bb57506040513d601f19601f820116820180604052508101906122b89190613c4f565b60015b61233e573d80600081146122eb576040519150601f19603f3d011682016040523d82523d6000602084013e6122f0565b606091505b50600081511415612336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232d90613b79565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612393565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546123ca90612f2c565b90600052602060002090601f0160209004810192826123ec5760008555612433565b82601f1061240557805160ff1916838001178555612433565b82800160010185558215612433579182015b82811115612432578251825591602001919060010190612417565b5b5090506124409190612444565b5090565b5b8082111561245d576000816000905550600101612445565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061248c82612461565b9050919050565b61249c81612481565b82525050565b6000819050919050565b6124b5816124a2565b82525050565b60006040820190506124d06000830185612493565b6124dd60208301846124ac565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61252d816124f8565b811461253857600080fd5b50565b60008135905061254a81612524565b92915050565b600060208284031215612566576125656124ee565b5b60006125748482850161253b565b91505092915050565b60008115159050919050565b6125928161257d565b82525050565b60006020820190506125ad6000830184612589565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156125ed5780820151818401526020810190506125d2565b838111156125fc576000848401525b50505050565b6000601f19601f8301169050919050565b600061261e826125b3565b61262881856125be565b93506126388185602086016125cf565b61264181612602565b840191505092915050565b600060208201905081810360008301526126668184612613565b905092915050565b612677816124a2565b811461268257600080fd5b50565b6000813590506126948161266e565b92915050565b6000602082840312156126b0576126af6124ee565b5b60006126be84828501612685565b91505092915050565b60006020820190506126dc6000830184612493565b92915050565b600060ff82169050919050565b6126f8816126e2565b811461270357600080fd5b50565b600081359050612715816126ef565b92915050565b60008060408385031215612732576127316124ee565b5b600061274085828601612685565b925050602061275185828601612706565b9150509250929050565b61276481612481565b811461276f57600080fd5b50565b6000813590506127818161275b565b92915050565b6000806040838503121561279e5761279d6124ee565b5b60006127ac85828601612772565b92505060206127bd85828601612685565b9150509250929050565b60006020820190506127dc60008301846124ac565b92915050565b6000806000606084860312156127fb576127fa6124ee565b5b600061280986828701612772565b935050602061281a86828701612772565b925050604061282b86828701612685565b9150509250925092565b60006020828403121561284b5761284a6124ee565b5b600061285984828501612706565b91505092915050565b600060208284031215612878576128776124ee565b5b600061288684828501612772565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128cc82612602565b810181811067ffffffffffffffff821117156128eb576128ea612894565b5b80604052505050565b60006128fe6124e4565b905061290a82826128c3565b919050565b600067ffffffffffffffff82111561292a57612929612894565b5b602082029050602081019050919050565b600080fd5b600061295361294e8461290f565b6128f4565b905080838252602082019050602084028301858111156129765761297561293b565b5b835b8181101561299f578061298b8882612772565b845260208401935050602081019050612978565b5050509392505050565b600082601f8301126129be576129bd61288f565b5b81356129ce848260208601612940565b91505092915050565b6000602082840312156129ed576129ec6124ee565b5b600082013567ffffffffffffffff811115612a0b57612a0a6124f3565b5b612a17848285016129a9565b91505092915050565b600080fd5b60008083601f840112612a3b57612a3a61288f565b5b8235905067ffffffffffffffff811115612a5857612a57612a20565b5b602083019150836020820283011115612a7457612a7361293b565b5b9250929050565b600080600060408486031215612a9457612a936124ee565b5b600084013567ffffffffffffffff811115612ab257612ab16124f3565b5b612abe86828701612a25565b93509350506020612ad186828701612706565b9150509250925092565b612ae4816126e2565b82525050565b6000602082019050612aff6000830184612adb565b92915050565b600080fd5b600067ffffffffffffffff821115612b2557612b24612894565b5b612b2e82612602565b9050602081019050919050565b82818337600083830152505050565b6000612b5d612b5884612b0a565b6128f4565b905082815260208101848484011115612b7957612b78612b05565b5b612b84848285612b3b565b509392505050565b600082601f830112612ba157612ba061288f565b5b8135612bb1848260208601612b4a565b91505092915050565b60008060408385031215612bd157612bd06124ee565b5b6000612bdf85828601612706565b925050602083013567ffffffffffffffff811115612c0057612bff6124f3565b5b612c0c85828601612b8c565b9150509250929050565b612c1f8161257d565b8114612c2a57600080fd5b50565b600081359050612c3c81612c16565b92915050565b60008060408385031215612c5957612c586124ee565b5b6000612c6785828601612772565b9250506020612c7885828601612c2d565b9150509250929050565b600067ffffffffffffffff821115612c9d57612c9c612894565b5b612ca682612602565b9050602081019050919050565b6000612cc6612cc184612c82565b6128f4565b905082815260208101848484011115612ce257612ce1612b05565b5b612ced848285612b3b565b509392505050565b600082601f830112612d0a57612d0961288f565b5b8135612d1a848260208601612cb3565b91505092915050565b60008060008060808587031215612d3d57612d3c6124ee565b5b6000612d4b87828801612772565b9450506020612d5c87828801612772565b9350506040612d6d87828801612685565b925050606085013567ffffffffffffffff811115612d8e57612d8d6124f3565b5b612d9a87828801612cf5565b91505092959194509250565b60008083601f840112612dbc57612dbb61288f565b5b8235905067ffffffffffffffff811115612dd957612dd8612a20565b5b602083019150836020820283011115612df557612df461293b565b5b9250929050565b60008060008060408587031215612e1657612e156124ee565b5b600085013567ffffffffffffffff811115612e3457612e336124f3565b5b612e4087828801612a25565b9450945050602085013567ffffffffffffffff811115612e6357612e626124f3565b5b612e6f87828801612da6565b925092505092959194509250565b60008060408385031215612e9457612e936124ee565b5b6000612ea285828601612772565b9250506020612eb385828601612772565b9150509250929050565b60008060408385031215612ed457612ed36124ee565b5b6000612ee285828601612772565b9250506020612ef385828601612706565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612f4457607f821691505b60208210811415612f5857612f57612efd565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612fba6021836125be565b9150612fc582612f5e565b604082019050919050565b60006020820190508181036000830152612fe981612fad565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061304c603e836125be565b915061305782612ff0565b604082019050919050565b6000602082019050818103600083015261307b8161303f565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006130de602e836125be565b91506130e982613082565b604082019050919050565b6000602082019050818103600083015261310d816130d1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061314e826124a2565b9150613159836124a2565b92508282101561316c5761316b613114565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006131ad601f836125be565b91506131b882613177565b602082019050919050565b600060208201905081810360008301526131dc816131a0565b9050919050565b7f6e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b60006132196016836125be565b9150613224826131e3565b602082019050919050565b600060208201905081810360008301526132488161320c565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006132856018836125be565b91506132908261324f565b602082019050919050565b600060208201905081810360008301526132b481613278565b9050919050565b7f696e76616c6964206d617820737570706c790000000000000000000000000000600082015250565b60006132f16012836125be565b91506132fc826132bb565b602082019050919050565b60006020820190508181036000830152613320816132e4565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006133836029836125be565b915061338e82613327565b604082019050919050565b600060208201905081810360008301526133b281613376565b9050919050565b7f696e76616c6964206e756d626572206f6620726563697069656e747300000000600082015250565b60006133ef601c836125be565b91506133fa826133b9565b602082019050919050565b6000602082019050818103600083015261341e816133e2565b9050919050565b7f6e6f7420656e6f75676820726573657276656420737570706c79000000000000600082015250565b600061345b601a836125be565b915061346682613425565b602082019050919050565b6000602082019050818103600083015261348a8161344e565b9050919050565b7f6d617820737570706c7920726561636865640000000000000000000000000000600082015250565b60006134c76012836125be565b91506134d282613491565b602082019050919050565b600060208201905081810360008301526134f6816134ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613537826124a2565b9150613542836124a2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561357757613576613114565b5b828201905092915050565b600061358d826124a2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135c0576135bf613114565b5b600182019050919050565b7f63616e742072657365727665206d6f7265207468616e206d6178696d756d207360008201527f7570706c79000000000000000000000000000000000000000000000000000000602082015250565b60006136276025836125be565b9150613632826135cb565b604082019050919050565b600060208201905081810360008301526136568161361a565b9050919050565b7f696e76616c696420746f6b656e20696400000000000000000000000000000000600082015250565b60006136936010836125be565b915061369e8261365d565b602082019050919050565b600060208201905081810360008301526136c281613686565b9050919050565b7f696e76616c6964206172726179206c656e677468730000000000000000000000600082015250565b60006136ff6015836125be565b915061370a826136c9565b602082019050919050565b6000602082019050818103600083015261372e816136f2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006137916026836125be565b915061379c82613735565b604082019050919050565b600060208201905081810360008301526137c081613784565b9050919050565b7f5468652063616c6c6572206973206e6f7420506c656467654d696e7400000000600082015250565b60006137fd601c836125be565b9150613808826137c7565b602082019050919050565b6000602082019050818103600083015261382c816137f0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006138696020836125be565b915061387482613833565b602082019050919050565b600060208201905081810360008301526138988161385c565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006138fb6025836125be565b91506139068261389f565b604082019050919050565b6000602082019050818103600083015261392a816138ee565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061398d6024836125be565b915061399882613931565b604082019050919050565b600060208201905081810360008301526139bc81613980565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006139f96020836125be565b9150613a04826139c3565b602082019050919050565b60006020820190508181036000830152613a28816139ec565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613a65601c836125be565b9150613a7082613a2f565b602082019050919050565b60006020820190508181036000830152613a9481613a58565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613ad16019836125be565b9150613adc82613a9b565b602082019050919050565b60006020820190508181036000830152613b0081613ac4565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613b636032836125be565b9150613b6e82613b07565b604082019050919050565b60006020820190508181036000830152613b9281613b56565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613bc082613b99565b613bca8185613ba4565b9350613bda8185602086016125cf565b613be381612602565b840191505092915050565b6000608082019050613c036000830187612493565b613c106020830186612493565b613c1d60408301856124ac565b8181036060830152613c2f8184613bb5565b905095945050505050565b600081519050613c4981612524565b92915050565b600060208284031215613c6557613c646124ee565b5b6000613c7384828501613c3a565b9150509291505056fea264697066735822122052850b648cc6c3983d3a3a8acd0e1edb19edb1f801163207a2035cd99ba874d964736f6c63430008090033000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e8

Deployed Bytecode

0x6080604052600436106101fd5760003560e01c80638bde18051161010d578063c87b56dd116100a0578063d61d44361161006f578063d61d44361461075f578063e4b7fb7314610788578063e985e9c5146107b3578063f2fde38b146107f0578063fb0f4a7f146108195761023d565b8063c87b56dd146106a3578063cf3df230146106e0578063d082e38114610709578063d5abeb01146107345761023d565b80639c83aecc116100dc5780639c83aecc146105ff578063a22cb46514610628578063ad8c8a0414610651578063b88d4fde1461067a5761023d565b80638bde1805146105435780638da5cb5b1461056c57806395d89b411461059757806398de3209146105c25761023d565b806326a1610b116101905780636352211e1161015f5780636352211e146104605780636f8b44b01461049d57806370a08231146104c6578063715018a614610503578063850f3f3f1461051a5761023d565b806326a1610b146103b85780633c30abd7146103e35780633ccfd60b1461042057806342842e0e146104375761023d565b8063095ea7b3116101cc578063095ea7b3146103105780630f92ce1f146103395780631fba58ed1461036457806323b872dd1461038f5761023d565b806301ffc9a71461024257806306fdde031461027f578063081812fc146102aa57806308ad480b146102e75761023d565b3661023d577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433346040516102339291906124bb565b60405180910390a1005b600080fd5b34801561024e57600080fd5b5061026960048036038101906102649190612550565b610835565b6040516102769190612598565b60405180910390f35b34801561028b57600080fd5b50610294610917565b6040516102a1919061264c565b60405180910390f35b3480156102b657600080fd5b506102d160048036038101906102cc919061269a565b6109a9565b6040516102de91906126c7565b60405180910390f35b3480156102f357600080fd5b5061030e6004803603810190610309919061271b565b6109ef565b005b34801561031c57600080fd5b5061033760048036038101906103329190612787565b610a27565b005b34801561034557600080fd5b5061034e610b3f565b60405161035b91906127c7565b60405180910390f35b34801561037057600080fd5b50610379610b45565b60405161038691906126c7565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b191906127e2565b610b6b565b005b3480156103c457600080fd5b506103cd610bcb565b6040516103da91906127c7565b60405180910390f35b3480156103ef57600080fd5b5061040a60048036038101906104059190612835565b610bef565b604051610417919061264c565b60405180910390f35b34801561042c57600080fd5b50610435610c8f565b005b34801561044357600080fd5b5061045e600480360381019061045991906127e2565b610d7e565b005b34801561046c57600080fd5b506104876004803603810190610482919061269a565b610d9e565b60405161049491906126c7565b60405180910390f35b3480156104a957600080fd5b506104c460048036038101906104bf919061269a565b610e50565b005b3480156104d257600080fd5b506104ed60048036038101906104e89190612862565b610ebf565b6040516104fa91906127c7565b60405180910390f35b34801561050f57600080fd5b50610518610f77565b005b34801561052657600080fd5b50610541600480360381019061053c91906129d7565b610f8b565b005b34801561054f57600080fd5b5061056a60048036038101906105659190612a7b565b611103565b005b34801561057857600080fd5b50610581611177565b60405161058e91906126c7565b60405180910390f35b3480156105a357600080fd5b506105ac6111a1565b6040516105b9919061264c565b60405180910390f35b3480156105ce57600080fd5b506105e960048036038101906105e4919061269a565b611233565b6040516105f69190612aea565b60405180910390f35b34801561060b57600080fd5b5061062660048036038101906106219190612bba565b611253565b005b34801561063457600080fd5b5061064f600480360381019061064a9190612c42565b61128d565b005b34801561065d57600080fd5b506106786004803603810190610673919061269a565b6112a3565b005b34801561068657600080fd5b506106a1600480360381019061069c9190612d23565b611307565b005b3480156106af57600080fd5b506106ca60048036038101906106c5919061269a565b611369565b6040516106d7919061264c565b60405180910390f35b3480156106ec57600080fd5b5061070760048036038101906107029190612862565b61147c565b005b34801561071557600080fd5b5061071e6114c8565b60405161072b91906127c7565b60405180910390f35b34801561074057600080fd5b506107496114ce565b60405161075691906127c7565b60405180910390f35b34801561076b57600080fd5b5061078660048036038101906107819190612dfc565b6114d4565b005b34801561079457600080fd5b5061079d6115b8565b6040516107aa91906127c7565b60405180910390f35b3480156107bf57600080fd5b506107da60048036038101906107d59190612e7d565b6115cf565b6040516107e79190612598565b60405180910390f35b3480156107fc57600080fd5b5061081760048036038101906108129190612862565b611663565b005b610833600480360381019061082e9190612ebd565b6116e7565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610910575061090f82611835565b5b9050919050565b60606000805461092690612f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461095290612f2c565b801561099f5780601f106109745761010080835404028352916020019161099f565b820191906000526020600020905b81548152906001019060200180831161098257829003601f168201915b5050505050905090565b60006109b48261189f565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6109f76118ea565b80600d600084815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505050565b6000610a3282610d9e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9a90612fd0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ac2611968565b73ffffffffffffffffffffffffffffffffffffffff161480610af15750610af081610aeb611968565b6115cf565b5b610b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2790613062565b60405180910390fd5b610b3a8383611970565b505050565b600b5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b7c610b76611968565b82611a29565b610bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb2906130f4565b60405180910390fd5b610bc6838383611abe565b505050565b6000600b54600a54600954610be09190613143565b610bea9190613143565b905090565b600c6020528060005260406000206000915090508054610c0e90612f2c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90612f2c565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b505050505081565b60026007541415610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc906131c3565b60405180910390fd5b600260078190555060004711610d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d179061322f565b60405180910390fd5b6000610d2a611177565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d72573d6000803e3d6000fd5b50506001600781905550565b610d9983838360405180602001604052806000815250611307565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3e9061329b565b60405180910390fd5b80915050919050565b610e586118ea565b6000600b54600a5483610e6b9190613143565b610e759190613143565b11610eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eac90613307565b60405180910390fd5b8060098190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2790613399565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f7f6118ea565b610f896000611d25565b565b610f936118ea565b6000815111610fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fce90613405565b60405180910390fd5b8051600b54101561101d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101490613471565b60405180910390fd5b6000600a5460095461102f9190613143565b1161106f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611066906134dd565b60405180910390fd5b60005b81518110156110cb576110b8828281518110611091576110906134fd565b5b6020026020010151600183600a546110a9919061352c565b6110b3919061352c565b611deb565b80806110c390613582565b915050611072565b508051600a60008282546110df919061352c565b925050819055508051600b60008282546110f99190613143565b9250508190555050565b61110b6118ea565b60005b838390508110156111715781600d6000868685818110611131576111306134fd565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff160217905550808061116990613582565b91505061110e565b50505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546111b090612f2c565b80601f01602080910402602001604051908101604052809291908181526020018280546111dc90612f2c565b80156112295780601f106111fe57610100808354040283529160200191611229565b820191906000526020600020905b81548152906001019060200180831161120c57829003601f168201915b5050505050905090565b600d6020528060005260406000206000915054906101000a900460ff1681565b61125b6118ea565b80600c60008460ff1660ff16815260200190815260200160002090805190602001906112889291906123be565b505050565b61129f611298611968565b8383611fc5565b5050565b6112ab6118ea565b60095481600a546112bc919061352c565b11156112fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f49061363d565b60405180910390fd5b80600b8190555050565b611318611312611968565b83611a29565b611357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134e906130f4565b60405180910390fd5b61136384848484612132565b50505050565b60606113748261218e565b6113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906136a9565b60405180910390fd5b600c6000600d600085815260200190815260200160002060009054906101000a900460ff1660ff1660ff16815260200190815260200160002080546113f790612f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461142390612f2c565b80156114705780601f1061144557610100808354040283529160200191611470565b820191906000526020600020905b81548152906001019060200180831161145357829003601f168201915b50505050509050919050565b6114846118ea565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a5481565b60095481565b6114dc6118ea565b818190508484905014611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90613715565b60405180910390fd5b60005b848490508110156115b157828282818110611545576115446134fd565b5b905060200201602081019061155a9190612835565b600d6000878785818110611571576115706134fd565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806115a990613582565b915050611527565b5050505050565b6000600a546009546115ca9190613143565b905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61166b6118ea565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d2906137a7565b60405180910390fd5b6116e481611d25565b50565b60018160ff1614611724576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b546009546117349190613143565b6001600a54611743919061352c565b111561177b576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461180b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180290613813565b60405180910390fd5b6001600a600082825461181e919061352c565b9250508190555061183182600a54611deb565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6118a88161218e565b6118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de9061329b565b60405180910390fd5b50565b6118f2611968565b73ffffffffffffffffffffffffffffffffffffffff16611910611177565b73ffffffffffffffffffffffffffffffffffffffff1614611966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195d9061387f565b60405180910390fd5b565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166119e383610d9e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a3583610d9e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a775750611a7681856115cf565b5b80611ab557508373ffffffffffffffffffffffffffffffffffffffff16611a9d846109a9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ade82610d9e565b73ffffffffffffffffffffffffffffffffffffffff1614611b34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2b90613911565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9b906139a3565b60405180910390fd5b611baf8383836121fa565b611bba600082611970565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c0a9190613143565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c61919061352c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611d208383836121ff565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5290613a0f565b60405180910390fd5b611e648161218e565b15611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b90613a7b565b60405180910390fd5b611eb0600083836121fa565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f00919061352c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fc1600083836121ff565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b90613ae7565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121259190612598565b60405180910390a3505050565b61213d848484611abe565b61214984848484612204565b612188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217f90613b79565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b505050565b60006122258473ffffffffffffffffffffffffffffffffffffffff1661239b565b1561238e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261224e611968565b8786866040518563ffffffff1660e01b81526004016122709493929190613bee565b602060405180830381600087803b15801561228a57600080fd5b505af19250505080156122bb57506040513d601f19601f820116820180604052508101906122b89190613c4f565b60015b61233e573d80600081146122eb576040519150601f19603f3d011682016040523d82523d6000602084013e6122f0565b606091505b50600081511415612336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232d90613b79565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612393565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546123ca90612f2c565b90600052602060002090601f0160209004810192826123ec5760008555612433565b82601f1061240557805160ff1916838001178555612433565b82800160010185558215612433579182015b82811115612432578251825591602001919060010190612417565b5b5090506124409190612444565b5090565b5b8082111561245d576000816000905550600101612445565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061248c82612461565b9050919050565b61249c81612481565b82525050565b6000819050919050565b6124b5816124a2565b82525050565b60006040820190506124d06000830185612493565b6124dd60208301846124ac565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61252d816124f8565b811461253857600080fd5b50565b60008135905061254a81612524565b92915050565b600060208284031215612566576125656124ee565b5b60006125748482850161253b565b91505092915050565b60008115159050919050565b6125928161257d565b82525050565b60006020820190506125ad6000830184612589565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156125ed5780820151818401526020810190506125d2565b838111156125fc576000848401525b50505050565b6000601f19601f8301169050919050565b600061261e826125b3565b61262881856125be565b93506126388185602086016125cf565b61264181612602565b840191505092915050565b600060208201905081810360008301526126668184612613565b905092915050565b612677816124a2565b811461268257600080fd5b50565b6000813590506126948161266e565b92915050565b6000602082840312156126b0576126af6124ee565b5b60006126be84828501612685565b91505092915050565b60006020820190506126dc6000830184612493565b92915050565b600060ff82169050919050565b6126f8816126e2565b811461270357600080fd5b50565b600081359050612715816126ef565b92915050565b60008060408385031215612732576127316124ee565b5b600061274085828601612685565b925050602061275185828601612706565b9150509250929050565b61276481612481565b811461276f57600080fd5b50565b6000813590506127818161275b565b92915050565b6000806040838503121561279e5761279d6124ee565b5b60006127ac85828601612772565b92505060206127bd85828601612685565b9150509250929050565b60006020820190506127dc60008301846124ac565b92915050565b6000806000606084860312156127fb576127fa6124ee565b5b600061280986828701612772565b935050602061281a86828701612772565b925050604061282b86828701612685565b9150509250925092565b60006020828403121561284b5761284a6124ee565b5b600061285984828501612706565b91505092915050565b600060208284031215612878576128776124ee565b5b600061288684828501612772565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128cc82612602565b810181811067ffffffffffffffff821117156128eb576128ea612894565b5b80604052505050565b60006128fe6124e4565b905061290a82826128c3565b919050565b600067ffffffffffffffff82111561292a57612929612894565b5b602082029050602081019050919050565b600080fd5b600061295361294e8461290f565b6128f4565b905080838252602082019050602084028301858111156129765761297561293b565b5b835b8181101561299f578061298b8882612772565b845260208401935050602081019050612978565b5050509392505050565b600082601f8301126129be576129bd61288f565b5b81356129ce848260208601612940565b91505092915050565b6000602082840312156129ed576129ec6124ee565b5b600082013567ffffffffffffffff811115612a0b57612a0a6124f3565b5b612a17848285016129a9565b91505092915050565b600080fd5b60008083601f840112612a3b57612a3a61288f565b5b8235905067ffffffffffffffff811115612a5857612a57612a20565b5b602083019150836020820283011115612a7457612a7361293b565b5b9250929050565b600080600060408486031215612a9457612a936124ee565b5b600084013567ffffffffffffffff811115612ab257612ab16124f3565b5b612abe86828701612a25565b93509350506020612ad186828701612706565b9150509250925092565b612ae4816126e2565b82525050565b6000602082019050612aff6000830184612adb565b92915050565b600080fd5b600067ffffffffffffffff821115612b2557612b24612894565b5b612b2e82612602565b9050602081019050919050565b82818337600083830152505050565b6000612b5d612b5884612b0a565b6128f4565b905082815260208101848484011115612b7957612b78612b05565b5b612b84848285612b3b565b509392505050565b600082601f830112612ba157612ba061288f565b5b8135612bb1848260208601612b4a565b91505092915050565b60008060408385031215612bd157612bd06124ee565b5b6000612bdf85828601612706565b925050602083013567ffffffffffffffff811115612c0057612bff6124f3565b5b612c0c85828601612b8c565b9150509250929050565b612c1f8161257d565b8114612c2a57600080fd5b50565b600081359050612c3c81612c16565b92915050565b60008060408385031215612c5957612c586124ee565b5b6000612c6785828601612772565b9250506020612c7885828601612c2d565b9150509250929050565b600067ffffffffffffffff821115612c9d57612c9c612894565b5b612ca682612602565b9050602081019050919050565b6000612cc6612cc184612c82565b6128f4565b905082815260208101848484011115612ce257612ce1612b05565b5b612ced848285612b3b565b509392505050565b600082601f830112612d0a57612d0961288f565b5b8135612d1a848260208601612cb3565b91505092915050565b60008060008060808587031215612d3d57612d3c6124ee565b5b6000612d4b87828801612772565b9450506020612d5c87828801612772565b9350506040612d6d87828801612685565b925050606085013567ffffffffffffffff811115612d8e57612d8d6124f3565b5b612d9a87828801612cf5565b91505092959194509250565b60008083601f840112612dbc57612dbb61288f565b5b8235905067ffffffffffffffff811115612dd957612dd8612a20565b5b602083019150836020820283011115612df557612df461293b565b5b9250929050565b60008060008060408587031215612e1657612e156124ee565b5b600085013567ffffffffffffffff811115612e3457612e336124f3565b5b612e4087828801612a25565b9450945050602085013567ffffffffffffffff811115612e6357612e626124f3565b5b612e6f87828801612da6565b925092505092959194509250565b60008060408385031215612e9457612e936124ee565b5b6000612ea285828601612772565b9250506020612eb385828601612772565b9150509250929050565b60008060408385031215612ed457612ed36124ee565b5b6000612ee285828601612772565b9250506020612ef385828601612706565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612f4457607f821691505b60208210811415612f5857612f57612efd565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612fba6021836125be565b9150612fc582612f5e565b604082019050919050565b60006020820190508181036000830152612fe981612fad565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061304c603e836125be565b915061305782612ff0565b604082019050919050565b6000602082019050818103600083015261307b8161303f565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006130de602e836125be565b91506130e982613082565b604082019050919050565b6000602082019050818103600083015261310d816130d1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061314e826124a2565b9150613159836124a2565b92508282101561316c5761316b613114565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006131ad601f836125be565b91506131b882613177565b602082019050919050565b600060208201905081810360008301526131dc816131a0565b9050919050565b7f6e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b60006132196016836125be565b9150613224826131e3565b602082019050919050565b600060208201905081810360008301526132488161320c565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006132856018836125be565b91506132908261324f565b602082019050919050565b600060208201905081810360008301526132b481613278565b9050919050565b7f696e76616c6964206d617820737570706c790000000000000000000000000000600082015250565b60006132f16012836125be565b91506132fc826132bb565b602082019050919050565b60006020820190508181036000830152613320816132e4565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006133836029836125be565b915061338e82613327565b604082019050919050565b600060208201905081810360008301526133b281613376565b9050919050565b7f696e76616c6964206e756d626572206f6620726563697069656e747300000000600082015250565b60006133ef601c836125be565b91506133fa826133b9565b602082019050919050565b6000602082019050818103600083015261341e816133e2565b9050919050565b7f6e6f7420656e6f75676820726573657276656420737570706c79000000000000600082015250565b600061345b601a836125be565b915061346682613425565b602082019050919050565b6000602082019050818103600083015261348a8161344e565b9050919050565b7f6d617820737570706c7920726561636865640000000000000000000000000000600082015250565b60006134c76012836125be565b91506134d282613491565b602082019050919050565b600060208201905081810360008301526134f6816134ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613537826124a2565b9150613542836124a2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561357757613576613114565b5b828201905092915050565b600061358d826124a2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135c0576135bf613114565b5b600182019050919050565b7f63616e742072657365727665206d6f7265207468616e206d6178696d756d207360008201527f7570706c79000000000000000000000000000000000000000000000000000000602082015250565b60006136276025836125be565b9150613632826135cb565b604082019050919050565b600060208201905081810360008301526136568161361a565b9050919050565b7f696e76616c696420746f6b656e20696400000000000000000000000000000000600082015250565b60006136936010836125be565b915061369e8261365d565b602082019050919050565b600060208201905081810360008301526136c281613686565b9050919050565b7f696e76616c6964206172726179206c656e677468730000000000000000000000600082015250565b60006136ff6015836125be565b915061370a826136c9565b602082019050919050565b6000602082019050818103600083015261372e816136f2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006137916026836125be565b915061379c82613735565b604082019050919050565b600060208201905081810360008301526137c081613784565b9050919050565b7f5468652063616c6c6572206973206e6f7420506c656467654d696e7400000000600082015250565b60006137fd601c836125be565b9150613808826137c7565b602082019050919050565b6000602082019050818103600083015261382c816137f0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006138696020836125be565b915061387482613833565b602082019050919050565b600060208201905081810360008301526138988161385c565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006138fb6025836125be565b91506139068261389f565b604082019050919050565b6000602082019050818103600083015261392a816138ee565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061398d6024836125be565b915061399882613931565b604082019050919050565b600060208201905081810360008301526139bc81613980565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006139f96020836125be565b9150613a04826139c3565b602082019050919050565b60006020820190508181036000830152613a28816139ec565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613a65601c836125be565b9150613a7082613a2f565b602082019050919050565b60006020820190508181036000830152613a9481613a58565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613ad16019836125be565b9150613adc82613a9b565b602082019050919050565b60006020820190508181036000830152613b0081613ac4565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613b636032836125be565b9150613b6e82613b07565b604082019050919050565b60006020820190508181036000830152613b9281613b56565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613bc082613b99565b613bca8185613ba4565b9350613bda8185602086016125cf565b613be381612602565b840191505092915050565b6000608082019050613c036000830187612493565b613c106020830186612493565b613c1d60408301856124ac565b8181036060830152613c2f8184613bb5565b905095945050505050565b600081519050613c4981612524565b92915050565b600060208284031215613c6557613c646124ee565b5b6000613c7384828501613c3a565b9150509291505056fea264697066735822122052850b648cc6c3983d3a3a8acd0e1edb19edb1f801163207a2035cd99ba874d964736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e8

-----Decoded View---------------
Arg [0] : pMaxSupply (uint256): 10000
Arg [1] : pPendingReservedSupply (uint256): 1000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8


Loading...
Loading
Loading...
Loading
[ 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.